/* ============================================================
   aprenderT — Design System v2.0
   Compartido por todas las páginas del sitio
   ============================================================ */

:root {
  --cream:      #FFF9F8;
  --sand:       #F5CECA;
  --earth:      #1E2A22;
  --terra:      #C4614A;
  --terra-dark: #a84f3a;
  --sage:       #8BAF8A;
  --sage-dark:  #5E8B6E;
  --peach:      #E8A87C;
  --white:      #FFFFFF;
  --muted:      #6B7A6E;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   28px;
  --r-full: 9999px;
  --ease:   0.3s cubic-bezier(.4,0,.2,1);
  --ease-slow: 0.6s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--cream); color: var(--earth); line-height: 1.6; overflow-x: hidden; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--terra); border-radius: 3px; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--earth); color: var(--white); }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--cream);
  transition: background var(--ease), box-shadow var(--ease);
}
.site-header.scrolled {
  background: rgba(250,248,243,.95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(30,42,34,.08);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 18px; color: var(--earth); padding: 7px 13px;
  border-radius: var(--r-full);
  transition: background var(--ease), color var(--ease); display: block; white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li:hover > a { background: var(--sand); color: var(--terra); }
.nav-links > li > a.active { color: var(--terra); font-weight: 500; }
.nav-links > li::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--white); border: 1px solid rgba(30,42,34,.08);
  border-radius: var(--r-md); padding: 6px; min-width: 210px;
  box-shadow: 0 16px 40px rgba(30,42,34,.12);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity var(--ease), transform var(--ease);
}
.nav-links li:hover .nav-dropdown { opacity: 1; pointer-events: auto; transform: none; }
.nav-dropdown li a {
  display: block; padding: 9px 14px; font-size: 13.5px;
  border-radius: var(--r-sm); transition: background var(--ease);
}
.nav-dropdown li a:hover { background: var(--sand); color: var(--terra); }
.nav-cta {
  background: var(--sage-dark) !important; color: var(--white) !important;
  padding: 9px 22px !important; border-radius: var(--r-full) !important;
  font-weight: 500 !important; font-size: 14px !important;
  transition: background var(--ease), transform var(--ease) !important;
}
.nav-cta:hover { background: #4a7057 !important; transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--earth); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }

/* Mobile overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; background: var(--cream);
  z-index: 99; padding: 90px 28px 40px; flex-direction: column;
  gap: 6px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-d); font-size: 26px; font-weight: 300; color: var(--earth); padding: 10px 0; border-bottom: 1px solid var(--sand); display: block; }
.mobile-nav a:hover { color: var(--terra); }
.mobile-nav .m-sub { padding-left: 20px; }
.mobile-nav .m-sub a { font-size: 18px; }

/* ── PAGE HERO (sub-páginas) ── */
.page-hero {
  padding: 120px 0 72px;
  position: relative; overflow: hidden;
}
.page-hero-sand { background: var(--sand); }
.page-hero-cream { background: var(--cream); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb-sep { color: var(--muted); opacity: 0.4; }
.page-hero-label {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--terra); }
.page-hero h1 {
  font-family: var(--font-d); font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 300; line-height: 1.08; letter-spacing: -.025em;
  color: var(--earth); margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--terra); }
.page-hero-lead {
  font-size: 17px; color: var(--muted); max-width: 640px; line-height: 1.72;
  margin-bottom: 32px;
}
.page-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.page-hero-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top;
  border-radius: var(--r-lg);
}
/* Retratos de las fichas del equipo: altura del bloque de texto, para no estirar la cabecera */
.page-hero-img.content-img-portrait {
  width: auto; max-width: 100%; height: 340px; aspect-ratio: 3/4;
  display: block; margin-left: auto;
}
/* Perfiles del equipo: retrato junto al texto (sin el hueco de la columna 1fr) */
.page-hero-grid-portrait {
  grid-template-columns: minmax(0, 620px) auto; justify-content: start; column-gap: 80px;
}
.page-hero-img.hero-portrait {
  width: 290px; height: 380px; aspect-ratio: auto; border-radius: var(--r-lg);
  object-position: center top; margin: 0;
}

/* ── SECTION HEADINGS ── */
.sec-label {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sec-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--terra); }
.sec-label-light { color: rgba(255,255,255,.5); }
.sec-label-light::before { background: rgba(255,255,255,.3); }
.sec-title {
  font-family: var(--font-d); font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 300; line-height: 1.1; letter-spacing: -.02em;
  color: var(--earth); margin-bottom: 18px;
}
.sec-title em { font-style: italic; color: var(--terra); }
.sec-title-light { color: var(--white); }
.sec-title-light em { color: var(--peach); }
.sec-lead { font-size: 16.5px; color: var(--muted); max-width: 580px; line-height: 1.72; }
.sec-lead-light { color: rgba(255,255,255,.6); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--sage-dark); color: var(--white); padding: 13px 30px;
  border-radius: var(--r-full); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer;
  font-family: var(--font-b);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-primary:hover { background: #4a7057; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,112,87,.28); }
.btn-dark { background: var(--earth); }
.btn-dark:hover { background: #2d3d30; }
.btn-ghost {
  font-size: 15px; color: var(--earth); display: inline-flex; align-items: center;
  gap: 8px; padding: 13px 0; border-bottom: 1px solid currentColor;
  transition: color var(--ease);
}
.btn-ghost:hover { color: var(--terra); }

/* ── CARDS — SERVICES ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 48px; }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: var(--r-lg); padding: 32px 28px;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--terra); transform: scaleX(0); transform-origin: left;
  transition: transform var(--ease);
}
.card:hover { border-color: rgba(196,97,74,.15); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(30,42,34,.08); }
.card:hover::after { transform: scaleX(1); }
.card-icon { width: 44px; height: 44px; background: rgba(196,97,74,.1); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 20px; }
.card h3 { font-family: var(--font-d); font-size: 21px; font-weight: 700; color: var(--earth); margin-bottom: 10px; line-height: 1.2; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--terra); margin-top: 16px; transition: gap var(--ease); }
.card:hover .card-link { gap: 9px; }

/* ── FLIP CARDS ── */
.flip-card { background: transparent; perspective: 1200px; cursor: pointer; }
/* Las dos caras se apilan en la misma celda: la tarjeta mide lo que la cara más alta, sin altura fija */
.flip-card-inner { position: relative; display: grid; width: 100%; height: 100%; transition: transform .6s; transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  grid-area: 1 / 1; position: relative; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--r-lg); padding: 28px 26px;
}
.flip-card-front {
  background: var(--cream); border: 1px solid transparent; transition: border-color var(--ease);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Línea terracota superior: oculta y aparece al pasar el ratón, igual que en .card */
.flip-card-front::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--terra);
  transform: scaleX(0); transform-origin: left; transition: transform var(--ease);
}
.flip-card:hover .flip-card-front { border-color: rgba(196,97,74,.15); }
.flip-card:hover .flip-card-front::after { transform: scaleX(1); }
.flip-card-icon {
  width: 64px; height: 64px; background: rgba(196,97,74,.1); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.flip-card-front h3 { font-family: var(--font-d); font-size: 21px; font-weight: 700; color: var(--earth); line-height: 1.2; }
.flip-card-back {
  transform: rotateY(180deg); background: var(--cream); display: flex; align-items: center;
}
.flip-card-back p { font-size: 13.5px; line-height: 1.65; color: var(--earth); }
.flip-card-more-btn {
  display: inline-block; margin-top: 14px; padding: 6px 16px; background: #F3F7F1; color: var(--sage-dark);
  border: 1px solid var(--sage-dark); font-size: 12px; font-weight: 500; border-radius: var(--r-full); transition: background var(--ease);
}
.flip-card:hover .flip-card-more-btn { background: var(--sage-dark); color: var(--white); }

/* ── CARD SAND ── */
.card-sand { background: var(--sand); border-color: transparent; }
.card-sand::after { display: none; }
.card-sand:hover { background: var(--white); box-shadow: 0 12px 32px rgba(30,42,34,.07); }

/* ── TEXT CONTENT (artículos, blog) ── */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-d); font-size: clamp(24px,2.8vw,38px); font-weight: 300; color: var(--earth); margin: 48px 0 16px; letter-spacing: -.02em; }
.prose h2 em { color: var(--terra); font-style: italic; }
.prose h3 { font-family: var(--font-d); font-size: clamp(20px,2.2vw,28px); font-weight: 400; color: var(--earth); margin: 36px 0 12px; }
.prose p { font-size: 16px; color: var(--muted); line-height: 1.78; margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul li, .prose ol li { font-size: 16px; color: var(--muted); line-height: 1.65; padding-left: 20px; position: relative; }
.prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--terra); font-weight: 300; }
.prose ol { counter-reset: list; }
.prose ol li { counter-increment: list; }
.prose ol li::before { content: counter(list); position: absolute; left: 0; color: var(--terra); font-weight: 600; font-family: var(--font-d); font-size: 14px; }
.prose strong { color: var(--earth); font-weight: 500; }
.prose a { color: var(--terra); border-bottom: 1px solid rgba(196,97,74,.3); transition: border-color var(--ease); }
.prose a:hover { border-color: var(--terra); }
.prose blockquote {
  border-left: 3px solid var(--terra); padding: 20px 28px;
  background: var(--sand); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 32px 0;
}
.prose blockquote p { color: var(--earth); font-family: var(--font-d); font-size: 19px; font-style: italic; margin: 0; }
.prose img { border-radius: var(--r-md); margin: 32px 0; }

/* ── FAQ / ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-top: 48px; }
.faq-item { background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-family: var(--font-d); font-size: 19px;
  font-weight: 400; color: var(--earth); text-align: left; gap: 16px;
  transition: background var(--ease);
}
.faq-q:hover { background: var(--sand); }
.faq-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--terra); transition: transform var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── BLOG GRID ── */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 48px; }
.blog-card {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(30,42,34,.1); }
.blog-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card-date { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.blog-card h2, .blog-card h3 { font-family: var(--font-d); font-size: 19px; font-weight: 700; color: var(--earth); line-height: 1.3; }
.blog-card-tag { display: inline-flex; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--terra); background: rgba(196,97,74,.1); padding: 3px 10px; border-radius: var(--r-full); margin-bottom: 10px; }

/* ── HIGHLIGHT BOX ── */
.highlight-box { background: var(--sand); border-radius: var(--r-lg); padding: 40px; margin: 40px 0; }
.highlight-box p { font-family: var(--font-d); font-size: 20px; font-style: italic; color: var(--earth); line-height: 1.55; margin: 0; }

/* ── TESTIMONIAL ── */
.testimonial { background: var(--earth); color: var(--white); border-radius: var(--r-lg); padding: 48px; }
.testimonial-text { font-family: var(--font-d); font-size: clamp(20px, 2.5vw, 30px); font-style: italic; font-weight: 300; line-height: 1.4; margin-bottom: 24px; }
.testimonial-author { font-size: 13px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }

/* ── CTA BAND ── */
.cta-band { background: var(--terra); padding: 64px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-d); font-size: clamp(28px, 3vw, 44px); font-weight: 300; color: var(--white); line-height: 1.2; }
.cta-band h2 em { font-style: italic; opacity: .8; }
.btn-white { background: var(--white); color: var(--terra); padding: 13px 30px; border-radius: var(--r-full); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: transform var(--ease), box-shadow var(--ease); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }

/* ── CONTACT SECTION ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.c-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.c-detail-icon { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.c-detail-text strong { display: block; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.c-detail-text a, .c-detail-text span { color: var(--white); font-size: 15.5px; transition: color var(--ease); }
.c-detail-text a:hover { color: var(--peach); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg label { display: block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.42); margin-bottom: 7px; }
.fg input, .fg textarea { width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-sm); padding: 13px 15px; color: var(--white); font-family: var(--font-b); font-size: 15px; outline: none; resize: none; transition: border-color var(--ease), background var(--ease); }
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,.22); }
.fg input:focus, .fg textarea:focus { border-color: var(--peach); background: rgba(255,255,255,.1); }
.form-submit { background: var(--terra); color: var(--white); padding: 15px 34px; border-radius: var(--r-full); font-size: 15px; font-weight: 500; border: none; cursor: pointer; font-family: var(--font-b); transition: background var(--ease), transform var(--ease); align-self: flex-start; }
.form-submit:hover { background: #e07055; transform: translateY(-2px); }
#form-status { font-size: 13.5px; padding: 10px 14px; border-radius: var(--r-sm); }

/* ── CONTACTO — bloque común antes del footer (mismo contenido y estética que #contacto de la portada) ── */
.contacto-band { background: var(--earth); color: var(--white); padding: 88px 0; }
.contacto-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contacto-band-label { color: rgba(255,255,255,.5); }
.contacto-band-label::before { background: rgba(255,255,255,.3); }
.contacto-band-title { color: var(--white); }
.contacto-band-title em { color: var(--peach); }
.contacto-band-lead { color: rgba(255,255,255,.55); font-size: 17px; line-height: 1.7; max-width: 440px; }
.contacto-band-details { display: flex; flex-direction: column; gap: 18px; }
.contacto-band .c-detail { margin-bottom: 0; }
.contacto-band .c-detail-icon { width: 44px; height: 44px; }
@media (max-width: 768px) {
  .contacto-band { padding: 64px 0; }
  .contacto-band-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── FOOTER ── */
.site-footer { background: #111a14; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand-name { font-family: var(--font-d); font-size: 22px; font-weight: 600; color: var(--white); display: block; margin-bottom: 10px; }
.footer-brand-name span { color: var(--terra); }
.footer-brand p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.4); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: 13px; transition: background var(--ease), color var(--ease); }
.footer-social a:hover { background: var(--terra); color: var(--white); }
.footer-col h4 { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,.35); transition: color var(--ease); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-sanitario { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 7px 12px 7px 8px; }
.footer-sanitario svg { width: 42px; height: 28px; flex: none; display: block; }
.footer-sanitario-text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-sanitario-text span { font-size: 10px; color: #555; letter-spacing: .02em; }
.footer-sanitario-text strong { font-size: 12px; font-weight: 600; color: #1a1a1a; }.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.28); }

/* ── SCROLL ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── TWO-COL CONTENT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col-text-right { direction: rtl; }
.two-col-text-right > * { direction: ltr; }
.content-img { width: 100%; border-radius: var(--r-lg); object-fit: cover; }
.content-img-portrait { aspect-ratio: 3/4; object-position: top; }
.content-img-landscape { aspect-ratio: 4/3; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 40px; margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(30,42,34,.08); flex-wrap: wrap; }
.stat strong { font-family: var(--font-d); font-size: 44px; font-weight: 300; color: var(--terra); display: block; line-height: 1; }
.stat span { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.stats-dark .stat strong { color: var(--peach); }
.stats-dark .stat span { color: rgba(255,255,255,.45); }

/* ── ICON LIST ── */
.icon-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.icon-list-item { display: flex; align-items: flex-start; gap: 14px; }
.icon-list-icon { width: 36px; height: 36px; background: rgba(196,97,74,.1); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.icon-list-text strong { display: block; font-size: 15px; font-weight: 500; color: var(--earth); margin-bottom: 2px; }
.icon-list-text p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── ICON LIST — variante grande con "más info" expandible ── */
.icon-list-lg .icon-list-item { gap: 18px; align-items: center; }
.icon-list-lg .icon-list-icon { width: 64px; height: 64px; border: 1.5px solid var(--terra); border-radius: var(--r-md); margin-top: 0; }
.icon-list-lg .icon-list-icon svg { width: 30px; height: 30px; }
.icon-list-lg .icon-list-text strong { font-size: 20px; font-family: var(--font-d); font-weight: 700; margin-bottom: 6px; }
.icon-list-more-btn {
  display: inline-block; background: none; border: none; padding: 0; margin-top: 2px;
  font-size: 13px; font-weight: 500; color: var(--terra); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.icon-list-more-btn:hover { color: var(--terra-dark); }
.icon-list-more-panel { display: none; margin-top: 10px; }
.icon-list-item.open .icon-list-more-panel { display: block; }

/* ── WHATSAPP FLOTANTE ── */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 999;
  width: 68px; height: 68px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.whatsapp-float-label {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--earth); font-size: 15px; font-weight: 500; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.whatsapp-float svg { width: 36px; height: 36px; }
@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 60px; height: 60px; }
  .whatsapp-float svg { width: 31px; height: 31px; }
  .whatsapp-float-label { font-size: 13px; padding: 7px 12px; right: calc(100% + 10px); }
}

/* ── RESPONSIVE ── */
/* Menú hamburguesa por debajo de 1100px: con "Evaluación psicológica" el menú completo no cabe en una línea */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 1060px) {
  .two-col { grid-template-columns: 1fr; gap: 44px; }
  .two-col-text-right { direction: ltr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid .page-hero-img { display: none; }
  .cards-grid-3, .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .cards-grid-2, .cards-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; justify-content: center; }
  .stats-row { gap: 24px; }
}
