/*
 Theme Name:   DAND Child Theme
 Theme URI:    https://dandagency.com
 Description:  Child theme de Divi para el blog de DAND
 Author:       DAND
 Author URI:   https://dandagency.com
 Template:     Divi
 Version:      1.2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── RESET Y BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif !important;
  background: #f5f5f7 !important;
  color: #0d0d0d !important;
  font-size: 16px;
  line-height: 1.7;
}

a { color: #4E35F2; }
a:hover { color: #f60c9d; }

/* ── HEADER ── */
#main-header {
  background: #fff !important;
  border-bottom: 1px solid #e8e8ec !important;
  box-shadow: none !important;
  height: 68px !important;
}

#main-header .container {
  max-width: 1100px !important;
  padding: 0 40px !important;
  display: flex;
  align-items: center;
  height: 68px;
}

#logo {
  height: 30px !important;
  width: auto !important;
  max-height: 30px !important;
}

#top-menu > li > a {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #555 !important;
  text-decoration: none !important;
}

#top-menu > li > a:hover {
  color: #4E35F2 !important;
  opacity: 1 !important;
}

#top-menu li.menu-item:last-child > a {
  background: #f60c9d !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}

/* ── CONTENEDOR PRINCIPAL ── */
#main-content {
  background: #f5f5f7 !important;
}

.container {
  max-width: 1100px !important;
  padding: 0 40px !important;
}

/* ── CABECERA DEL BLOG (clara) ── */
.blog-header {
  background: #fff;
  border-bottom: 1px solid #e8e8ec;
  padding: 52px 0;
  width: 100%;
}

.blog-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.blog-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f60c9d;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #f60c9d;
}

.blog-header h1 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 42px !important;
  letter-spacing: -1px !important;
  color: #0d0d0d !important;
  line-height: 1.1 !important;
  padding-bottom: 0 !important;
}

.blog-header h1 span { color: #4E35F2; }

/* ── GRILLA DE POSTS ── */
#left-area {
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

.et_pb_pagebuilder_layout #main-content .container,
body:not(.et_pb_pagebuilder_layout) #main-content .container {
  padding-top: 0 !important;
}

.blog-posts-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Post card */
.post-card {
  background: #fff;
  border: 1px solid #e8e8ec;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: #4E35F2;
  box-shadow: 0 4px 16px rgba(78,53,242,0.08);
}

.post-card-link { display: block; line-height: 0; }

.post-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #f0eeff;
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #4E35F2 0%, #f60c9d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
}

.post-card-body { padding: 20px; }

.post-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4E35F2;
  margin-bottom: 8px;
  display: block;
}

.post-card-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.post-card-title a {
  color: #0d0d0d !important;
  text-decoration: none;
}

.post-card-title a:hover { color: #4E35F2 !important; }

.post-card-meta {
  font-size: 11px;
  color: #aaa;
  margin: 0;
}

/* ── POST INDIVIDUAL ── */
.single-post-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 40px;
}

.single-post-header { margin-bottom: 36px; }

.single-post-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f60c9d;
  margin-bottom: 12px;
  display: block;
}

.single-post-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 36px !important;
  letter-spacing: -1px !important;
  color: #0d0d0d !important;
  line-height: 1.15 !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

.single-post-meta {
  font-size: 13px;
  color: #aaa;
  display: flex;
  gap: 16px;
  align-items: center;
}

.single-post-meta span { display: flex; align-items: center; gap: 4px; }

.single-post-featured {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
  display: block;
}

/* Contenido del post */
.single-post-content {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

.single-post-content h2 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  font-size: 24px !important;
  color: #0d0d0d !important;
  margin: 40px 0 16px !important;
  padding: 0 !important;
  letter-spacing: -0.3px;
}

.single-post-content h3 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  color: #0d0d0d !important;
  margin: 32px 0 12px !important;
  padding: 0 !important;
}

.single-post-content p { margin-bottom: 20px; color: #444; }

.single-post-content a { color: #4E35F2; text-decoration: underline; }

.single-post-content ul, .single-post-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.single-post-content li { margin-bottom: 8px; color: #444; }

.single-post-content blockquote {
  border-left: 3px solid #f60c9d;
  padding: 16px 24px;
  margin: 32px 0;
  background: #f9f9fb;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #555;
}

.single-post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 24px 0;
}

/* Volver al blog */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4E35F2;
  text-decoration: none;
  margin-bottom: 32px;
}

.back-to-blog:hover { color: #f60c9d; }

/* ── PAGINACIÓN ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 0;
}

.blog-pagination ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }

.blog-pagination a, .blog-pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #e8e8ec;
  color: #555;
  text-decoration: none;
  background: #fff;
  padding: 0 10px;
}

.blog-pagination .current, .blog-pagination a:hover {
  background: #4E35F2;
  border-color: #4E35F2;
  color: #fff;
}

/* ── FOOTER ── */
#main-footer {
  background: #0d0d0d !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
}

#main-footer .container {
  max-width: 1100px !important;
  padding: 32px 40px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

#footer-info {
  font-size: 11px !important;
  color: rgba(255,255,255,.25) !important;
  font-family: 'Inter', sans-serif !important;
}

#footer-widgets { display: none !important; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .container { padding: 0 20px !important; }
  .blog-header-inner, .blog-posts-wrap, .single-post-wrap { padding-left: 20px; padding-right: 20px; }
  .blog-header { padding: 36px 0; }
  .blog-header h1 { font-size: 28px !important; }
  .blog-posts-grid { grid-template-columns: 1fr; }
  .single-post-title { font-size: 26px !important; }
  .single-post-content { font-size: 16px; }
}

@media (max-width: 480px) {
  .blog-posts-grid { grid-template-columns: 1fr; }
}

/* ── NAV DAND (responsive) ── */
.dand-nav { background: #fff; border-bottom: 1px solid #e8e8ec; position: sticky; top: 0; z-index: 100; width: 100%; }
.dand-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.dand-nav-logo { height: 30px; width: auto; display: block; }
.dand-nav-links { display: flex; gap: 26px; list-style: none; align-items: center; margin: 0; padding: 0; }
.dand-nav-links li { margin: 0; padding: 0; list-style: none; }
.dand-nav-links a { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: #555; text-decoration: none; }
.dand-nav-links a:hover, .dand-nav-links a.is-active { color: #4E35F2; }
.dand-nav-cta { background: #f60c9d; color: #fff !important; padding: 9px 20px; border-radius: 4px; font-weight: 600 !important; }
.dand-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.dand-nav-toggle span { display: block; width: 22px; height: 2px; background: #0d0d0d; margin: 5px 0; }

@media (max-width: 860px) {
  .dand-nav-inner { padding: 0 20px; }
  .dand-nav-toggle { display: block; }
  .dand-nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e8e8ec; padding: 16px 20px; gap: 16px; z-index: 99; }
  .dand-nav-links.open { display: flex; }
}

/* ── FOOTER DAND ── */
.dand-footer { background: #0d0d0d; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.06); width: 100%; }
.dand-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.dand-footer-logo { height: 22px; width: auto; display: block; filter: brightness(0) invert(1); }
.dand-footer-social { display: flex; gap: 14px; align-items: center; }
.dand-footer-social a { color: rgba(255,255,255,.4); display: flex; transition: color 0.2s; }
.dand-footer-social a:hover { color: #f60c9d; }
.dand-footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dand-footer-access { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); text-decoration: none; }
.dand-footer-access:hover { color: #f60c9d; }
.dand-footer-copy { font-size: 11px; color: rgba(255,255,255,.25); margin: 0; }
@media (max-width: 860px) {
  .dand-footer-inner { padding: 0 20px; }
  .dand-footer-right { align-items: flex-start; }
}
