/* ============================================
   ODONTOLOGÍA DE GALES — Design System
   Aesthetic: Refined Luxury Healthcare
   Fonts: Cormorant Garamond + Nunito Sans
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ── Variables ── */
:root {
  --brand:       #009261;
  --brand-dark:  #007a52;
  --brand-deep:  #004d31;
  --brand-pale:  #e6f4ef;
  --navy:        #004d31;
  --navy-mid:    #006644;
  --navy-light:  #007a52;
  --gold:        #c9a96e;
  --gold-light:  #f0e6d3;
  --red:         #c0392b;
  --red-light:   #e74c3c;
  --white:       #ffffff;
  --off-white:   #f9f7f4;
  --gray-100:    #f3f1ee;
  --gray-200:    #e8e5e0;
  --gray-400:    #a8a098;
  --text:        #1e1e1e;
  --text-mid:    #4a4a4a;
  --text-light:  #7a7a7a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', system-ui, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   24px;
  --radius-full: 999px;

  --shadow-sm:   0 2px 8px rgba(0,77,49,.07);
  --shadow-md:   0 6px 24px rgba(0,77,49,.10);
  --shadow-lg:   0 16px 48px rgba(0,77,49,.14);

  --transition:  0.35s cubic-bezier(.4,0,.2,1);
  --container:   1320px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; font-size: 18px; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 12px;
}
.section-title { color: var(--navy); margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; line-height: 1.75; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0,146,97,.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,146,97,.4);
}
.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(192,57,43,.3);
}
.btn-red:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,.4);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img {
  height: 64px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}
.nav-cta {
  background: var(--brand) !important;
  color: var(--white) !important;
  border-radius: var(--radius-full) !important;
  padding: 10px 22px !important;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.62);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  max-width: 760px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.hero-eyebrow-line {
  width: 32px;
  height: 2px;
  background: var(--brand);
}
.hero-eyebrow-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero h1 {
  color: var(--brand);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand-dark);
  font-weight: 700;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-mid);
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  border: 1px solid rgba(0,146,97,.15);
  box-shadow: var(--shadow-sm);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* hero-image hidden in full-bg mode */
.hero-image { display: none; }

/* ── NOSOTROS ── */
.nosotros {
  padding: 100px 0;
  background: var(--white);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.nosotros-checks {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nosotros-check {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.check-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon svg { width: 14px; height: 14px; stroke: var(--brand); }
.check-text { font-size: 0.95rem; color: var(--text-mid); }
.check-text strong { color: var(--text); font-weight: 700; display: block; }

.nosotros-visual {
  position: relative;
}
.nosotros-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.nosotros-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nosotros-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
}
.nosotros-badge-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.nosotros-badge-text { font-size: 0.8rem; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ── PILARES ── */
.pilares {
  background: var(--navy);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.pilares::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,146,97,.15) 0%, transparent 70%);
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.pilar {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.pilar:last-child { border-right: none; }
.pilar:hover { background: rgba(255,255,255,.04); }
.pilar-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,169,110,.3);
  line-height: 1;
  margin-bottom: 16px;
}
.pilar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 500;
}
.pilar-text { font-size: 0.88rem; color: rgba(255,255,255,.6); line-height: 1.8; }

/* ── ESPECIALIDADES ── */
.especialidades-section {
  padding: 100px 0;
  background: var(--off-white);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.esp-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}
.esp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-pale);
}
.esp-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.esp-card:hover .esp-icon { background: var(--brand); }
.esp-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: var(--transition);
}
.esp-card:hover .esp-icon img { filter: brightness(0) invert(1); }
.esp-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.esp-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.7; }

/* ── TEAM PREVIEW ── */
.team-section {
  padding: 100px 0;
  background: var(--white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.team-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.team-card:hover img { transform: scale(1.05); }
.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,40,80,.92) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transform: translateY(8px);
  transition: var(--transition);
}
.team-card:hover .team-card-overlay { transform: translateY(0); }
.team-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 600;
}
.team-card-spec {
  font-size: 0.75rem;
  color: var(--brand);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.team-center { text-align: center; }

/* ── URGENCIAS ── */
.urgencias {
  background: var(--navy);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.urgencias::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.urgencias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.urgencias-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,.2);
  border: 1px solid rgba(192,57,43,.4);
  color: #ff8080;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.urgencias-badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--red-light);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.urgencias h2 { color: var(--white); margin-bottom: 32px; }
.urgencias-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.urgencias-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: 0.92rem;
}
.urgencias-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.urgencias-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.urgencias-phones { margin-top: 24px; }
.urgencias-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.urgencias-phone svg { width: 16px; height: 16px; stroke: var(--brand); }
.urgencias-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.urgencias-icon-wrap {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.urgencias-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(0,146,97,.2);
}
.urgencias-icon-center {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(255,255,255,.1);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* ── CONTACTO ── */
.contacto {
  padding: 100px 0;
  background: var(--off-white);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 28px; }
.contacto-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contacto-item-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.contacto-item-icon svg { width: 18px; height: 18px; stroke: var(--brand); }
.contacto-item-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-bottom: 4px; }
.contacto-item-value { color: var(--text); font-size: 0.95rem; line-height: 1.6; }
.contacto-item-value a { color: var(--brand); }
.contacto-item-value a:hover { text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-md);
  background: var(--gray-200);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 60px 0 30px;
  border-top: 4px solid var(--brand);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 30px;
}
.footer-logo img { height: 64px; margin-bottom: 16px; }
.footer-desc { font-size: 0.85rem; color: rgba(255,255,255,.55); line-height: 1.8; max-width: 280px; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--white); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: linear-gradient(135deg, #e6f4ef 0%, #d0eff4 100%);
  padding: 140px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--brand);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23009261' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--brand); position: relative; z-index: 1; }
.page-hero p { color: var(--text-mid); margin-top: 16px; font-size: 1.1rem; position: relative; z-index: 1; }

/* ── ESPECIALIDADES PAGE ── */
.esp-page { padding: 100px 0; }
.esp-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.esp-page-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.esp-page-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.esp-page-icon {
  width: 64px; height: 64px;
  background: var(--brand-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.esp-page-icon img { width: 36px; height: 36px; object-fit: contain; }
.esp-page-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 600;
}
.esp-page-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.8; flex: 1; }
.esp-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: auto;
}
.esp-page-link:hover { gap: 10px; }

/* ── PROFESIONALES PAGE ── */
.prof-page { padding: 100px 0; }
.prof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.prof-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.prof-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prof-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prof-card:hover .prof-photo img { transform: scale(1.04); }
.prof-info { padding: 20px; }
.prof-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
}
.prof-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.prof-spec-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--brand-pale);
  color: var(--brand-dark);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.prof-univ { font-size: 0.78rem; color: var(--text-light); }

/* ── RESULTADOS PAGE ── */
.resultados-page { padding: 100px 0; }
.resultados-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-light);
}
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}
.caso-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.caso-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.caso-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.caso-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.caso-img-label {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(26,40,80,.85);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.caso-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
  position: relative;
}
.caso-body { padding: 16px 20px; }
.caso-type { font-size: 0.75rem; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.caso-period { font-size: 0.82rem; color: var(--text-light); }
.caso-cta { text-align: center; padding: 40px 0; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
  animation: float-in 0.6s ease 1s both;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }
@keyframes float-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .especialidades-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .prof-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    padding: 16px 24px 24px;
    gap: 8px;
  }
  /* El menu movil va sobre fondo oscuro: links en blanco */
  .nav-links.open a { color: var(--white); }
  .nav-links.open a:hover,
  .nav-links.open a.active { color: var(--white); opacity: 0.75; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 60px 24px 48px; }
  .hero-image { display: none; }
  .hero-stats { gap: 24px; }

  .nosotros-grid { grid-template-columns: 1fr; }
  .nosotros-visual { order: -1; }
  .nosotros-badge { bottom: -16px; left: 16px; }

  .pilares-grid { grid-template-columns: 1fr; }
  .pilar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  .especialidades-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .urgencias-grid { grid-template-columns: 1fr; }
  .urgencias-visual { display: none; }

  .contacto-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .esp-page-grid { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: repeat(2, 1fr); }
  .casos-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .especialidades-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { flex-direction: column; }
  .prof-grid { grid-template-columns: 1fr 1fr; }
}
