/* =====================================================
   DR. HÉCTOR SILVA PAVÍA — Sitio web
   Neréa Digital
   ===================================================== */

/* ── Variables ─────────────────────────────────────── */
:root {
  --purple:      #51398E;
  --purple-mid:  #6862A9;
  --blue:        #92B4E0;
  --blue-light:  #c8ddf4;
  --ink:         #1a1730;
  --muted:       #5e6070;
  --bg-soft:     #f5f7fc;
  --line:        #e4e8f2;
  --white:       #ffffff;

  --font-display: 'Josefin Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --shadow:      0 20px 60px rgba(81,57,142,.13);
}

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

/* ── Tipografía global ──────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }

.label-tag {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--purple-mid);
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: block;
}
.label-tag--light { color: #24154b }

.section-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-h2 em { font-style: italic; font-weight: 300; color: var(--purple-mid); }
.section-h2--light { color: var(--white); }
.section-h2--light em { color: var(--blue-light); }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
}
.section-sub--light { color: rgba(255,255,255,.78); }

/* ── Botones ────────────────────────────────────────── */
.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-main:hover { background: var(--purple-mid); transform: translateY(-2px); color: var(--white); }


.btn-doctoralia{
    display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00a085;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn-doctoralia img{
  filter: brightness(0) invert(1);
  max-width: 18px;
}

.btn-doctoralia:hover img{
  filter: none;
  max-width: 18px;
}



.btn-doctoralia:hover{
  background: var(--white) ;
  color:#00a085;
}


.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--purple);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline-light:hover { background: var(--purple); color: var(--white); }

.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background .2s;
}
.btn-cta-nav:hover { background: var(--purple-mid); color: var(--white); }

.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background .2s, color .2s;
  margin-right: 12px;
  margin-top: 8px;
}
.btn-cta-light:hover { background: var(--blue-light); color: var(--purple); }

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--purple);
  cursor: pointer;
  transition: background .2s, color .2s;
  margin-top: 8px;
}
.btn-cta-outline:hover { border-color: var(--purple-mid); background: rgba(255,255,255,.1); color: var(--purple-mid); }

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ── Nav ────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a:not(.btn-cta-nav):hover { color: var(--purple); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--purple);
  cursor: pointer;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.mobile-menu a {
  padding: 10px 4px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: none; margin-top: 8px;color:white!important; }

.mobile-menu.open { display: flex; }

/* ── HERO ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: url(images/hero.jpg);
background-size: cover;
background-position:50% 50% ;
  padding: 90px 0 70px;
  overflow: visible;
}

/* Animación radial del logo */
.hero-radial-wrap {
  position: absolute;
  right: -140px;
  top: -120px;
  width: 540px;
  height: 540px;
  pointer-events: none;
  z-index: 0;
  opacity: .12;
}
.hero-radial-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin-slow 24s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {}
.hero-tag {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 1rem;
  display: block;
}
.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.04;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.hero-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--purple-mid);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.8rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--purple-mid); }

.hero-photo-card {
  position: relative;


  
}
.hero-photo { width: 100%;  }
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

@media(max-width:500px ){

  .hero-badge {
  position: absolute;
  bottom: -20px;
  left: 0px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

}

.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1.3;
  margin-bottom: 4px;
}
.hero-badge span { font-size: .82rem; color: var(--muted); }

/* ── ESPECIALIDADES ─────────────────────────────────── */
.section-esp {
  padding: 96px 0;
  background: var(--white);
}

.esp-list {
  display: grid;
  gap: 20px;
}
.esp-item {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--line);
  transition: box-shadow .2s, transform .2s;
}
.esp-item:hover { box-shadow: 0 12px 36px rgba(81,57,142,.1); transform: translateY(-2px); }
.esp-item--alt { background: #f0edfb; border-color: #d8d3f0; }

.esp-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple);
  opacity: .35;
  line-height: 1;
}
.esp-img img { border-radius: var(--radius-sm); width: 100%; height: 80px; object-fit: cover; }
.esp-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}
.esp-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ── ENFOQUE ────────────────────────────────────────── */
.section-enfoque {
  padding: 96px 0;
  background: linear-gradient(140deg, var(--purple) 0%, var(--purple-mid) 100%);
  position: relative;
  overflow: visible;
}

/* Animación radial en enfoque */
.enfoque-radial-wrap {
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 420px;
  height: 420px;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
}
.enfoque-radial-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: spin-slow 30s linear infinite reverse;
}

.section-enfoque .container { position: relative; z-index: 1; }

.enfoque-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.25);
}
.enfoque-photo { width: 100%;  }

.enfoque-list { margin-top: 1.8rem; display: grid; gap: 20px; }
.enfoque-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.enfoque-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.enfoque-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 3px;
}
.enfoque-list span { font-size: .88rem; color: rgba(255,255,255,.72); }

/* ── ASEGURADORAS (marquee) ─────────────────────────── */
.section-seguros {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-seguros .section-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.marquee-wrap {
  overflow: hidden;
  margin-top: 2rem;
  padding: 12px 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  animation: marquee-slide 22s linear infinite;
  width: max-content;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.seguros-logo {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 28px;
  min-width: 240px;
  
  flex-shrink: 0;
}
.seguros-logo img { height: 100px; width: auto; object-fit: contain; filter: opacity(.85); }

/* ── CTA GRANDE ─────────────────────────────────────── */
.section-cta {
  padding: 0;
  background: linear-gradient(130deg, #e9e4f8 0%, #ddeaf8 100%);
  overflow: hidden;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  min-height: 580px;
}
.cta-content {
  padding: 80px 60px 80px 0;
}
.cta-h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--purple);
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.cta-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 1.6rem;
}
.cta-photo-col {
  align-self: end;
  line-height: 0;
}
.cta-photo {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── CONTACTO ───────────────────────────────────────── */
.section-contacto {
  padding: 96px 0;
  background: var(--white);
}
.section-contacto .section-h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 2rem; }

.mapa-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(81,57,142,.07);
 
}
.mapa-wrap iframe { display: block; }

.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.contact-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .95rem;
  color: var(--purple);
  flex-shrink: 0;
}
.contact-row strong { display: block; font-size: .98rem; color: var(--ink); font-weight: 700; }
.contact-row span { font-size: .82rem; color: var(--muted); }

/* Form */
.contact-form-card { background: var(--white); }
.form-label {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
  margin-bottom: .4rem;
}
.form-control {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  background: var(--bg-soft);
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--purple-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(104,98,169,.15);
}
.form-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .75rem;
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: 36px 0;
  font-size: .85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-sep { opacity: .4; }
.footer-copy a { color: var(--blue); }
.footer-copy a:hover { color: var(--white); }
.footer-legal { font-size: .76rem; opacity: .6; }

/* ── WhatsApp flotante ──────────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #22c55e;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(34,197,94,.35);
  transition: transform .2s, background .2s;
}
.wa-float i { font-size: 1.2rem; }
.wa-float:hover { transform: translateY(-3px); background: #16a34a; color: var(--white); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .esp-item { grid-template-columns: 40px 160px 1fr; gap: 14px; }
}
@media (max-width: 991px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-radial-wrap { right: -60px; top: -60px; width: 300px; height: 300px; }
  .hero-photo { }

  .cta-inner { grid-template-columns: 1fr; min-height: auto; }
  .cta-content { padding: 60px 0; }
  .cta-photo-col { display: none; }

  .esp-item { grid-template-columns: 40px 1fr; }
  .esp-img { display: none; }
}

@media (max-width: 767px) {
  .hero-section { padding: 60px 0 50px; }
  .section-esp, .section-enfoque, .section-contacto { padding: 64px 0; }
  .section-seguros { padding: 60px 0; }

  .topbar .container { justify-content: center; }
  .topbar .container span:last-child { display: none; }

  .hero-trust { gap: 12px; font-size: .78rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-main,
  .hero-actions .btn-outline-light { width: 100%; justify-content: center; }

  .enfoque-visual {  }
  .enfoque-photo {  }

  .contact-card { padding: 24px 20px; }

  .wa-float span { display: none; }
  .wa-float { padding: 14px 17px; right: 14px; bottom: 14px; }
  .wa-float i { font-size: 1.4rem; }
}

@media (max-width: 560px) {
  .logo-img { height: 40px; }
  .cta-content { padding: 48px 0; }
  .btn-cta-light, .btn-cta-outline { width: 100%; justify-content: center; margin-right: 0; }
}

.btn-wa .fa-whatsapp {
  font-size: 1.25em;
}

.btn-wa:hover {
  background: #008a72;
  color: var(--white);
}

@media (max-width: 360px) {
  .btn-wa {
    font-size: 0.9rem;
    padding: 12px 18px;
  }
}
