/* ═══════════════════════════════════════════════
   IMAR MEDICAL GROUP — CSS
   Paleta: Navy #0D1B3E · Gold #C9A84C · Teal #5BC8D4
═══════════════════════════════════════════════ */

:root {
  --navy:       #0D1B3E;
  --navy-light: #1a2d5a;
  --gold:       #C9A84C;
  --gold2:      #E8C96A;
  --teal:       #5BC8D4;
  --white:      #FFFFFF;
  --offwhite:   #F7F8FA;
  --gray:       #8A8FA0;
  --light-gray: #E8EAF0;
  --gold-light: #F5EDD6;
  --text:       #2D3748;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family:'Jost', sans-serif;
  font-weight:300;
  background:var(--white);
  color:var(--text);
  overflow-x:hidden;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity:0;
  transform:translateY(32px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity:1; transform:translateY(0); }
.delay-1 { transition-delay:0.12s; }
.delay-2 { transition-delay:0.24s; }
.delay-3 { transition-delay:0.36s; }

/* ─── NAVBAR ─── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(201,168,76,0.18);
  transition:box-shadow 0.3s, padding 0.3s;
}
nav.scrolled { box-shadow:0 4px 24px rgba(13,27,62,0.08); }
.nav-inner {
  max-width:1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding:0.9rem 2rem;
}
.nav-logo-img { height:44px; width:auto; }
.nav-links {
  display:flex; align-items:center; gap:2.2rem;
  list-style:none;
}
.nav-links a {
  font-size:0.78rem; font-weight:400;
  letter-spacing:0.12em; text-transform:uppercase;
  color:var(--navy); transition:color 0.2s;
  position:relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0;
  width:0; height:1px; background:var(--gold);
  transition:width 0.3s;
}
.nav-links a:hover { color:var(--gold); }
.nav-links a:hover::after { width:100%; }
.nav-cta {
  background:var(--navy) !important;
  color:var(--white) !important;
  padding:0.55rem 1.3rem !important;
  border-radius:2px;
  transition:background 0.3s !important;
}
.nav-cta:hover { background:var(--gold) !important; color:var(--navy) !important; }
.nav-cta::after { display:none !important; }
.nav-toggle {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; padding:4px;
}
.nav-toggle span {
  display:block; width:24px; height:2px;
  background:var(--navy); transition:all 0.3s;
}

/* ─── EYEBROW ─── */
.eyebrow {
  display:flex; align-items:center; gap:0.7rem;
  font-size:0.72rem; letter-spacing:0.22em;
  text-transform:uppercase; color:var(--gold);
  font-weight:500; margin-bottom:1.2rem;
}
.eyebrow-line { display:block; width:2rem; height:1px; background:var(--gold); flex-shrink:0; }
.eyebrow-light .eyebrow-line { background:var(--gold2); }
.eyebrow-light { color:var(--gold2); }

/* ─── HERO ─── */
.hero {
  min-height:100vh; padding-top:74px;
  display:grid; grid-template-columns:1fr 1fr;
  align-items:center; gap:3rem;
  max-width:1200px; margin:0 auto;
  padding-left:2rem; padding-right:2rem;
  padding-bottom:3rem;
  position:relative;
}
.hero-bg-shape {
  position:fixed; top:0; right:0;
  width:55%; height:100vh; z-index:-1;
  background:linear-gradient(160deg, var(--offwhite) 0%, #EDF2FF 100%);
  clip-path:polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}
.hero h1 {
  font-family:'Cormorant Garamond', serif;
  font-size:clamp(2.6rem, 4.5vw, 4rem);
  font-weight:300; line-height:1.1;
  color:var(--navy); margin-bottom:1.4rem;
}
.hero h1 em { font-style:italic; color:var(--gold); }
.hero-sub {
  font-size:0.95rem; line-height:1.85;
  color:var(--gray); max-width:440px; margin-bottom:2.2rem;
}
.hero-btns { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; }
.btn-primary {
  background:var(--navy); color:var(--white);
  padding:0.85rem 2rem; font-size:0.78rem;
  letter-spacing:0.14em; text-transform:uppercase;
  border:none; cursor:pointer; display:inline-block;
  transition:all 0.3s;
}
.btn-primary:hover { background:var(--gold); color:var(--navy); transform:translateY(-2px); box-shadow:0 8px 24px rgba(201,168,76,0.3); }
.btn-ghost {
  font-size:0.78rem; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--navy);
  display:flex; align-items:center; gap:0.4rem;
  font-weight:400; transition:color 0.2s, gap 0.2s;
}
.btn-ghost:hover { color:var(--gold); gap:0.8rem; }

.hero-visual { display:flex; flex-direction:column; gap:1rem; }
.hero-img-wrap { position:relative; }
.hero-img-placeholder {
  width:100%; height:380px;
  background:linear-gradient(135deg, #EAF0FF 0%, #EDE4D0 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0.8rem;
}
.placeholder-icon { font-size:3.5rem; opacity:0.2; }
.placeholder-text { font-size:0.78rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--gray); }
.hero-badge {
  position:absolute; bottom:-1rem; left:-1.5rem;
  background:var(--navy); color:var(--white);
  padding:1rem 1.4rem; text-align:center;
  box-shadow:0 12px 40px rgba(13,27,62,0.25);
}
.badge-num { display:block; font-family:'Cormorant Garamond',serif; font-size:2rem; font-weight:600; color:var(--gold); line-height:1; }
.badge-num small { font-size:1rem; }
.badge-label { font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase; opacity:0.7; }
.hero-stats {
  background:var(--white); padding:1.2rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 8px 32px rgba(13,27,62,0.08);
  border:1px solid rgba(201,168,76,0.12);
}
.stat { text-align:center; }
.stat-num {
  font-family:'Cormorant Garamond',serif;
  font-size:1.8rem; font-weight:600; color:var(--navy); line-height:1;
}
.stat-num small { font-size:1rem; color:var(--gold); }
.stat-label { font-size:0.65rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--gray); margin-top:0.2rem; display:block; }
.stat-div { width:1px; height:2.5rem; background:rgba(201,168,76,0.25); }

/* ─── GOLD DIVIDER ─── */
.gold-divider {
  height:1px; margin:0 2rem;
  background:linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ─── SECTIONS ─── */
.section { padding:6rem 0; }
.section-alt { background:var(--offwhite); }
.container { max-width:1200px; margin:0 auto; padding:0 2rem; }
.section-header { text-align:center; max-width:680px; margin:0 auto 3.5rem; }
.section-header .eyebrow { justify-content:center; }
.section-header h2 {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.8rem, 3vw, 2.6rem);
  font-weight:300; color:var(--navy); line-height:1.2; margin-bottom:1rem;
}
.section-header h2 em { font-style:italic; color:var(--gold); }
.section-sub { font-size:0.92rem; line-height:1.8; color:var(--gray); }

/* ─── MEDICAL GRID ─── */
.med-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem;
}
.med-card {
  background:var(--white); padding:2rem 1.8rem;
  border:1px solid var(--light-gray);
  transition:all 0.3s; position:relative; overflow:hidden;
}
.med-card::before {
  content:''; position:absolute; top:0; left:0;
  width:3px; height:0; background:linear-gradient(to bottom, var(--gold), var(--teal));
  transition:height 0.4s ease;
}
.med-card:hover { border-color:transparent; box-shadow:0 16px 48px rgba(13,27,62,0.1); transform:translateY(-4px); }
.med-card:hover::before { height:100%; }
.med-icon { font-size:2.2rem; margin-bottom:1rem; display:block; }
.med-name { font-family:'Cormorant Garamond',serif; font-size:1.25rem; font-weight:600; color:var(--navy); margin-bottom:0.6rem; }
.med-desc { font-size:0.85rem; line-height:1.7; color:var(--gray); }

/* ─── DENTAL GRID ─── */
.dental-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:1rem;
}
.dental-card {
  background:var(--white); padding:1.6rem 1.4rem;
  border-bottom:2px solid var(--light-gray);
  transition:all 0.3s; text-align:center;
}
.dental-card:hover { border-color:var(--gold); background:var(--gold-light); transform:translateY(-3px); }
.dental-icon { font-size:1.8rem; margin-bottom:0.8rem; display:block; }
.dental-name { font-family:'Cormorant Garamond',serif; font-size:1.05rem; font-weight:600; color:var(--navy); margin-bottom:0.5rem; }
.dental-desc { font-size:0.78rem; line-height:1.6; color:var(--gray); }

/* ─── PORQUE ELEGIRNOS ─── */
.why {
  background:var(--navy); padding:6rem 0;
}
.why-inner {
  max-width:1200px; margin:0 auto; padding:0 2rem;
  display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center;
}
.why-title {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.8rem, 3vw, 2.6rem);
  font-weight:300; color:var(--white); line-height:1.2; margin-bottom:1rem;
}
.why-title em { font-style:italic; color:var(--gold); }
.why-sub { font-size:0.9rem; line-height:1.85; color:rgba(255,255,255,0.55); margin-bottom:2rem; }
.why-badge-row { display:flex; flex-direction:column; gap:1rem; }
.why-badge {
  display:flex; gap:1rem; align-items:flex-start;
  padding:1.2rem 1.4rem;
  border:1px solid rgba(201,168,76,0.2);
  transition:border-color 0.3s, background 0.3s;
}
.why-badge:hover { border-color:var(--gold); background:rgba(201,168,76,0.05); }
.why-badge-icon { font-size:1.4rem; line-height:1; flex-shrink:0; }
.why-badge strong { display:block; color:var(--white); font-size:0.9rem; font-weight:500; margin-bottom:0.2rem; }
.why-badge p { font-size:0.8rem; color:rgba(255,255,255,0.45); line-height:1.5; }
.why-img-wrap { position:relative; }
.why-img-placeholder {
  width:100%; height:460px;
  background:linear-gradient(160deg, var(--navy-light) 0%, #0a1428 100%);
  border:1px solid rgba(201,168,76,0.15);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0.8rem;
}
.why-img-placeholder .placeholder-icon { opacity:0.1; }
.why-img-placeholder .placeholder-text { color:rgba(255,255,255,0.2); }
.why-tag {
  position:absolute; bottom:-1rem; right:-1rem;
  background:var(--gold); color:var(--navy);
  padding:0.8rem 1.2rem;
  display:flex; align-items:flex-start; gap:0.6rem;
  font-size:0.82rem; font-weight:500;
  box-shadow:0 8px 24px rgba(201,168,76,0.3);
  line-height:1.4;
}
.why-tag small { font-size:0.72rem; font-weight:300; opacity:0.8; }

/* ─── GALLERY ─── */
.gallery-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  grid-template-rows:220px 220px;
  gap:0.8rem;
}
.gallery-item {
  position:relative; overflow:hidden; cursor:pointer;
  background:linear-gradient(135deg, #EAF0FF, #EDE4D0);
}
.gallery-item--large { grid-row:span 2; }
.gallery-placeholder {
  width:100%; height:100%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0.5rem;
}
.gallery-placeholder span { font-size:2.5rem; opacity:0.15; }
.gallery-placeholder p { font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--gray); }
.gallery-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(13,27,62,0.75) 0%, transparent 50%);
  display:flex; align-items:flex-end;
  padding:1rem 1.2rem;
  opacity:0; transition:opacity 0.3s;
}
.gallery-overlay span { color:var(--white); font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase; }
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-item:hover { transform:scale(0.985); transition:transform 0.3s; }

/* ─── MVV ─── */
.mvv-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.mvv-card {
  padding:2.5rem 2rem;
  border-top:2px solid var(--gold);
  background:var(--offwhite);
  transition:box-shadow 0.3s, transform 0.3s;
}
.mvv-card:hover { box-shadow:0 20px 50px rgba(201,168,76,0.12); transform:translateY(-4px); }
.mvv-icon { font-size:2rem; margin-bottom:1rem; display:block; }
.mvv-label { font-size:0.68rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); font-weight:500; margin-bottom:0.6rem; }
.mvv-title { font-family:'Cormorant Garamond',serif; font-size:1.4rem; font-weight:600; color:var(--navy); margin-bottom:0.9rem; }
.mvv-card p { font-size:0.87rem; line-height:1.8; color:var(--gray); }
.mvv-card strong { color:var(--navy); font-weight:500; }

/* ─── CONTACT ─── */
.contact-section { background:var(--offwhite); padding:6rem 0; }
.contact-inner {
  max-width:1200px; margin:0 auto; padding:0 2rem;
  display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:start;
}
.contact-title {
  font-family:'Cormorant Garamond',serif;
  font-size:clamp(1.8rem,3vw,2.6rem); font-weight:300;
  color:var(--navy); line-height:1.2; margin-bottom:1rem;
}
.contact-title em { font-style:italic; color:var(--gold); }
.contact-sub { font-size:0.9rem; line-height:1.8; color:var(--gray); margin-bottom:2rem; }
.contact-details { display:flex; flex-direction:column; gap:0; }
.contact-item {
  display:flex; gap:1rem; padding:1rem 0;
  border-bottom:1px solid rgba(201,168,76,0.15);
}
.contact-item-icon {
  width:38px; height:38px; min-width:38px;
  background:var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; flex-shrink:0;
}
.contact-item strong { display:block; font-size:0.72rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); font-weight:500; margin-bottom:0.2rem; }
.contact-item span { font-size:0.88rem; color:var(--text); display:block; }
.contact-note { font-size:0.78rem !important; color:var(--gray) !important; font-style:italic; margin-top:0.3rem; }
.map-wrap { margin-top:1.5rem; overflow:hidden; border:1px solid var(--light-gray); }

.contact-form-wrap {
  background:var(--white); padding:2.5rem;
  box-shadow:0 8px 40px rgba(13,27,62,0.07);
}
.form-title { font-family:'Cormorant Garamond',serif; font-size:1.5rem; font-weight:600; color:var(--navy); margin-bottom:0.4rem; }
.form-sub { font-size:0.83rem; color:var(--gray); margin-bottom:1.8rem; line-height:1.6; }
.contact-form { display:flex; flex-direction:column; gap:1rem; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-group { display:flex; flex-direction:column; gap:0.4rem; }
.form-label { font-size:0.7rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--navy); font-weight:500; }
.form-input {
  border:1px solid var(--light-gray);
  background:var(--white); padding:0.75rem 1rem;
  font-family:'Jost',sans-serif; font-size:0.88rem;
  color:var(--text); outline:none; width:100%;
  transition:border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance:none; border-radius:0;
}
.form-input:focus { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,168,76,0.08); }
.form-textarea { resize:vertical; min-height:100px; }
.btn-whatsapp {
  background:#25D366; color:var(--white);
  padding:0.95rem; width:100%;
  font-family:'Jost',sans-serif; font-size:0.85rem;
  letter-spacing:0.1em; font-weight:500;
  border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:0.6rem;
  transition:all 0.3s;
}
.btn-whatsapp:hover { background:#20b558; transform:translateY(-2px); box-shadow:0 8px 24px rgba(37,211,102,0.3); }

/* ─── FOOTER ─── */
footer {
  background:var(--navy); padding:3rem 0;
  border-top:1px solid rgba(201,168,76,0.2);
}
.footer-inner {
  max-width:1200px; margin:0 auto; padding:0 2rem;
  display:grid; grid-template-columns:1fr auto auto;
  gap:3rem; align-items:center;
}
.footer-logo { height:36px; width:auto; filter:brightness(0) invert(1) opacity(0.8); }
.footer-tagline { font-size:0.76rem; color:rgba(255,255,255,0.35); margin-top:0.5rem; line-height:1.6; }
.footer-links { display:flex; flex-direction:column; gap:0.5rem; }
.footer-links a { font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.4); transition:color 0.2s; }
.footer-links a:hover { color:var(--gold); }
.footer-copy { font-size:0.72rem; color:rgba(255,255,255,0.25); text-align:right; line-height:1.7; }
.footer-copy strong { color:rgba(255,255,255,0.4); font-weight:400; }

/* ─── RESPONSIVE ─── */
@media (max-width:1024px) {
  .dental-grid { grid-template-columns:repeat(3,1fr); }
  .why-inner, .contact-inner { gap:3rem; }
}

@media (max-width:768px) {
  .nav-toggle { display:flex; }
  .nav-links {
    display:none; position:absolute; top:100%; left:0; right:0;
    background:var(--white); flex-direction:column;
    padding:1.5rem 2rem; gap:1rem;
    box-shadow:0 8px 24px rgba(13,27,62,0.1);
    border-top:1px solid rgba(201,168,76,0.15);
  }
  .nav-links.open { display:flex; }
  .hero { grid-template-columns:1fr; padding-top:90px; }
  .hero-bg-shape { display:none; }
  .hero-visual { margin-top:1rem; }
  .med-grid, .mvv-grid { grid-template-columns:1fr; }
  .dental-grid { grid-template-columns:repeat(2,1fr); }
  .why-inner, .contact-inner { grid-template-columns:1fr; }
  .gallery-grid { grid-template-columns:1fr 1fr; }
  .gallery-item--large { grid-row:span 1; }
  .footer-inner { grid-template-columns:1fr; text-align:center; }
  .footer-copy { text-align:center; }
  .footer-logo { margin:0 auto; }
}

@media (max-width:480px) {
  .dental-grid { grid-template-columns:1fr; }
  .gallery-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
}

/* ── ICONOS SVG PERSONALIZADOS ── */
.med-icon img,
.dental-icon img,
.mvv-icon img,
.why-badge-icon img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ── ICONOS SVG PERSONALIZADOS WHY US ── */
.why-badge-icon img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.mvv-icon img {
  margin: 0;
}

/* ── SOCIAL ICONS ── */
.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(13,27,62,0.2);
  color: var(--navy); border-radius: 2px;
  font-size: 0.85rem; transition: all 0.3s;
}
.nav-social:hover { background: #1877F2; border-color: #1877F2; color: var(--white); }

.footer-social { margin-bottom: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem; transition: all 0.3s;
}
.footer-social a:hover { background: #1877F2; border-color: #1877F2; color: var(--white); }

