/* ============================================================
   layout.css — Header, nav, hero, secciones, footer y responsive
   ============================================================ */

/* --- Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74,45,138,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--purple-deep);
}
.logo-icon-wrap { width: 38px; height: 38px; flex-shrink: 0; }
.logo-icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.logo-text {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-family: var(--font-b);
  font-size: .68rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Desktop nav */
.desktop-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.desktop-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: .86rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.desktop-nav a:hover { color: var(--purple-mid); background: rgba(74,45,138,.06); }
.desktop-nav a:focus-visible { outline: 2px solid var(--purple-mid); outline-offset: 2px; }

/* Nav CTA button */
.nav-cta {
  background: var(--green-wa) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-cta svg { width: 16px; height: 16px; fill: currentColor; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--purple-deep);
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Mobile nav overlay */
.mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(19,9,41,.97);
  backdrop-filter: blur(12px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  color: var(--cream);
  font-family: var(--font-d);
  font-size: 1.4rem;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 8px;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.mob-nav a:hover { color: var(--purple-pale); background: rgba(255,255,255,.05); }
.mob-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(237,231,246,.65);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.mob-close:hover { color: var(--cream); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, #E8E0F5 50%, var(--cream) 100%);
  padding: 96px 0 112px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(139,107,177,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--purple-deep);
  line-height: 1.18;
  margin-bottom: 20px;
}
.hero-title em { color: var(--purple-mid); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo-col { display: flex; justify-content: center; }
.hero-logo-col img { max-width: 360px; width: 100%; }

/* --- Situations --- */
.situations { background: var(--cream-warm); }
.sit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 42px;
}
.sit-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(74,45,138,.08);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.sit-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(74,45,138,.14); }
.sit-icon { font-size: 2rem; margin-bottom: 14px; }
.sit-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 8px; }
.sit-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* --- About --- */
.about { background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.quote-box {
  background: linear-gradient(135deg, var(--purple-deep), #3B1F7A);
  border-radius: 20px;
  padding: 48px 40px;
}
.quote-box blockquote {
  font-family: var(--font-d);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--cream);
  line-height: 1.6;
  font-style: italic;
}
.about-content h2 {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--purple-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}
.about-content p { color: var(--text-body); line-height: 1.75; margin-bottom: 18px; }

/* --- Trust --- */
.trust { background: var(--cream-warm); }
.trust-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 3px 14px rgba(74,45,138,.07);
}
.trust-num {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.trust-item h3 { font-size: 1rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 4px; }
.trust-item p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* --- Services --- */
.services { background: #fff; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 42px;
}
.svc-card {
  background: var(--cream-soft);
  border-radius: 16px;
  padding: 32px 28px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(74,45,138,.12); }
.svc-icon { font-size: 2rem; margin-bottom: 14px; }
.svc-card h3 { font-size: 1.02rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 8px; }
.svc-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* --- Topics (temas especializados) --- */
.topics { background: #fff; }
.topics-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.topic-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--cream-soft);
  border-radius: 14px;
  padding: 20px 24px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  text-decoration: none;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,45,138,.1); }
.topic-icon { font-size: 1.8rem; flex-shrink: 0; }
.topic-body { flex: 1; }
.topic-body h3 { font-size: .98rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 3px; }
.topic-body p { font-size: .84rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.topic-link {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-mid);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background var(--t) var(--ease);
}
.topic-link:hover { background: var(--purple-deep); }

/* --- Location --- */
.location { background: var(--cream-warm); }
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
}
.loc-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(74,45,138,.08);
}
.loc-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--purple-deep); margin-bottom: 6px; }
.loc-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.loc-card p  { font-size: .9rem; color: var(--text-body); line-height: 1.7; margin-bottom: 20px; }
.hours-box {
  background: var(--cream-soft);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}
.hours-box strong { display: block; margin-bottom: 4px; color: var(--purple-deep); }

/* --- FAQ --- */
.faq { background: #fff; }
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid rgba(74,45,138,.14); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: .97rem;
  font-weight: 600;
  color: var(--purple-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background var(--t) var(--ease);
}
.faq-q:hover       { background: var(--cream-soft); }
.faq-q:focus-visible { outline: 3px solid var(--purple-mid); outline-offset: -3px; }
.faq-chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--purple-mid);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t) var(--ease);
}
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-item.open .faq-ans { max-height: 400px; }
.faq-ans-in {
  padding: 0 24px 22px;
  font-size: .92rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* --- CTA Final --- */
.cta-final {
  background: linear-gradient(135deg, var(--purple-deep) 0%, #3B1F7A 50%, #271459 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 108px 0;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 70%, rgba(139,107,177,.15) 0%, transparent 50%),
              radial-gradient(ellipse at 75% 25%, rgba(201,184,232,.07) 0%, transparent 45%);
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-final p {
  font-size: 1.02rem;
  color: rgba(237,231,246,.76);
  max-width: 540px;
  margin: 0 auto 38px;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.cta-trust { font-size: .74rem; color: rgba(237,231,246,.42); letter-spacing: .04em; }

/* --- Tema page --- */
.tema-hero {
  background: linear-gradient(135deg, var(--hero-bg) 0%, #E8E0F5 100%);
  padding: 88px 0 60px;
  text-align: center;
}
.tema-hero .tema-icon { font-size: 3rem; margin-bottom: 16px; }
.tema-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--purple-deep);
  margin-bottom: 10px;
  line-height: 1.2;
}
.tema-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.tema-content {
  padding: 56px 0;
  max-width: 720px;
  margin: 0 auto;
}
.tema-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 20px;
}
.tema-cta { text-align: center; margin-top: 36px; }
.tema-back {
  display: inline-block;
  margin-top: 20px;
  font-size: .88rem;
  color: var(--purple-mid);
  text-decoration: none;
}
.tema-back:hover { text-decoration: underline; }

/* --- Footer --- */
footer {
  background: #130929;
  color: rgba(201,184,232,.5);
  padding: 34px 0;
  text-align: center;
  font-size: .77rem;
}
footer a { color: rgba(201,184,232,.72); text-decoration: none; }
footer a:hover { color: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner         { grid-template-columns: 1fr; gap: 44px; }
  .hero-logo-col      { order: -1; }
  .hero-logo-col img  { max-width: 280px; }
  .about-inner        { grid-template-columns: 1fr; gap: 36px; }
  .loc-grid           { grid-template-columns: 1fr; }
  nav ul.desktop-nav  { display: none; }
  .mobile-menu-btn    { display: block; }
  section             { padding: 68px 0; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }
  .hero { padding: 58px 0 78px; }
  .hero-actions       { flex-direction: column; }
  .btn                { width: 100%; justify-content: center; }
  .cta-actions        { flex-direction: column; align-items: center; }
  .cta-actions .btn   { width: 100%; max-width: 300px; }
  .sit-grid, .svc-grid, .trust-grid { grid-template-columns: 1fr; }
  .wa-float span      { display: none; }
  .wa-float           { padding: 13px; border-radius: 50%; }
  .a11y-toolbar       { top: auto; bottom: 90px; }
  .topic-card         { flex-direction: column; text-align: center; gap: 12px; }
}
