/* ==========================================================================
   Cenfisem IPS — Landing page styles
   Mobile-first. Light mode. Paleta: azul / verde / naranja.
   ========================================================================== */

:root {
  /* Marca */
  --c-blue: #0B5FFF;
  --c-blue-dark: #063C9E;
  --c-blue-light: #E7F0FF;
  --c-green: #16A34A;
  --c-green-dark: #0E7C38;
  --c-green-light: #E7F8ED;
  --c-orange: #FF7A1A;
  --c-orange-dark: #D45E00;
  --c-orange-light: #FFF0E2;

  /* Neutros */
  --c-ink: #101A2B;
  --c-slate: #4C5B72;
  --c-slate-light: #7A8AA0;
  --c-mist: #F4F8FC;
  --c-white: #FFFFFF;
  --c-border: rgba(16, 26, 43, 0.09);

  /* Tipografía */
  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-soft: 0 10px 30px rgba(16, 26, 43, 0.08);
  --shadow-strong: 0 20px 50px rgba(16, 26, 43, 0.18);
  --header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--c-ink);
  background-color: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.text-blue { color: var(--c-blue) !important; }
.text-green { color: var(--c-green) !important; }
.text-orange { color: var(--c-orange) !important; }
.bg-mist { background-color: var(--c-mist); }

.section-pad {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-blue-light);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
}
.eyebrow.eyebrow-green { color: var(--c-green); background: var(--c-green-light); }
.eyebrow.eyebrow-orange { color: var(--c-orange); background: var(--c-orange-light); }

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--c-slate);
  max-width: 60ch;
}

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 2000;
  background: var(--c-blue);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* Foco visible accesible en toda la página */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 3px solid var(--c-orange);
  outline-offset: 2px;
}

/* ==========================================================================
   Utilidad Glassmorphism
   ========================================================================== */

.glass {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-strong);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(255, 255, 255, 0.94);
  }
}

/* ==========================================================================
   Navbar fija (glassmorphism)
   ========================================================================== */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1030;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(16, 26, 43, 0.06);
  box-shadow: 0 4px 24px rgba(16, 26, 43, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-green));
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-chip {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--c-orange);
  background: var(--c-orange-light);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  vertical-align: middle;
}

.site-header .nav-link {
  font-weight: 600;
  color: var(--c-slate);
  padding-inline: 0.9rem;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
  color: var(--c-blue);
}

/* ==========================================================================
   Botones marca / acciones
   ========================================================================== */

.btn-brand-blue {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.btn-brand-blue:hover,
.btn-brand-blue:focus {
  background: var(--c-blue-dark);
  border-color: var(--c-blue-dark);
  color: #fff;
}

.btn-brand-orange {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: #fff;
}
.btn-brand-orange:hover,
.btn-brand-orange:focus {
  background: var(--c-orange-dark);
  border-color: var(--c-orange-dark);
  color: #fff;
}

.btn-call,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-call:hover, .btn-call:focus,
.btn-whatsapp:hover, .btn-whatsapp:focus {
  transform: translateY(-2px);
}

.btn-call {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 95, 255, 0.28);
}
.btn-call:hover, .btn-call:focus { background: var(--c-blue-dark); color: #fff; }

.btn-whatsapp {
  background: var(--c-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.btn-whatsapp:hover, .btn-whatsapp:focus { background: var(--c-green-dark); color: #fff; }

.btn-call.btn-sm-nav {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  inset-block-end: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 1040;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4);
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover, .whatsapp-float:focus {
  color: #fff;
  background: var(--c-green-dark);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(22, 163, 74, 0.4); }
  50% { box-shadow: 0 12px 28px rgba(22, 163, 74, 0.65), 0 0 0 10px rgba(22, 163, 74, 0.08); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-block-start: calc(var(--header-h) + 2.5rem);
  padding-block-end: 4rem;
  overflow: hidden;
  background-color: var(--c-ink);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(6, 60, 158, 0.92) 0%, rgba(11, 95, 255, 0.82) 38%, rgba(22, 163, 74, 0.55) 78%, rgba(22, 163, 74, 0.4) 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 50px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
}

.hero h1 .highlight {
  color: var(--c-orange);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 52ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.75rem;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.hero-badges .bi {
  color: var(--c-orange);
  font-size: 1.15rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Tarjeta del formulario */
.hero-form-card {
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--c-ink);
}

.hero-form-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.hero-form-card .form-sub {
  color: var(--c-slate);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.hero-form-card .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-ink);
}

.hero-form-card .form-control,
.hero-form-card .form-select {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 26, 43, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
}

.hero-form-card .form-control:focus,
.hero-form-card .form-select:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 0.2rem rgba(11, 95, 255, 0.18);
  background: #fff;
}

.hero-form-card .form-text-note {
  font-size: 0.78rem;
  color: var(--c-slate-light);
}

.hero-quick-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.hero-quick-actions .btn-call,
.hero-quick-actions .btn-whatsapp {
  flex: 1 1 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}

.form-success-msg {
  display: none;
}

/* ==========================================================================
   Franja confianza (logos / datos)
   ========================================================================== */

.trust-strip {
  background: var(--c-mist);
  border-bottom: 1px solid var(--c-border);
}
.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.trust-strip .trust-item .bi {
  font-size: 1.6rem;
  color: var(--c-blue);
}
.trust-strip .trust-item strong {
  display: block;
  font-size: 0.95rem;
}
.trust-strip .trust-item span {
  color: var(--c-slate);
  font-size: 0.82rem;
}

/* ==========================================================================
   Servicios
   ========================================================================== */

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.service-card .service-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-card .service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

.service-icon {
  position: absolute;
  inset-block-end: -22px;
  inset-inline-start: 20px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 26, 43, 0.25);
}
.icon-blue { background: var(--c-blue); }
.icon-green { background: var(--c-green); }
.icon-orange { background: var(--c-orange); }

.service-card .service-body {
  padding: 2rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--c-slate);
  font-size: 0.92rem;
  flex: 1;
}
.service-card .service-link {
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

/* ==========================================================================
   Nosotros / CEO
   ========================================================================== */

.ceo-photo-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}
.ceo-photo-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.ceo-badge {
  position: absolute;
  inset-block-end: 1.25rem;
  inset-inline-start: 1.25rem;
  inset-inline-end: 1.25rem;
}

.ceo-quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--c-ink);
  border-inline-start: 4px solid var(--c-orange);
  padding-inline-start: 1rem;
  margin-block: 1.25rem;
}

.credential-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--c-slate);
}
.credential-list .bi {
  color: var(--c-green);
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

/* ==========================================================================
   Por qué elegirnos (stats)
   ========================================================================== */

.why-card {
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
}
.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* ==========================================================================
   Testimonios
   ========================================================================== */

.testimonial-card {
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-soft);
}
.testimonial-card .stars {
  color: var(--c-orange);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.testimonial-card p.quote {
  color: var(--c-slate);
  font-size: 0.95rem;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Ubicación / mapa
   ========================================================================== */

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-border);
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--c-mist);
  border: 1px solid var(--c-border);
  height: 100%;
}
.info-card dt {
  font-weight: 700;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-card dt .bi { color: var(--c-blue); }
.info-card dd {
  color: var(--c-slate);
  margin-bottom: 1.1rem;
  margin-inline-start: 1.6rem;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-final {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
}
.cta-final img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-final::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(6, 60, 158, 0.92), rgba(22, 163, 74, 0.85));
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, 0.9); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.75);
}
.site-footer h5 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}
.site-footer a:hover,
.site-footer a:focus {
  color: var(--c-orange);
}
.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  margin-inline-end: 0.5rem;
}
.footer-social a:hover { background: var(--c-orange); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  padding-block: 1.25rem;
}

/* ==========================================================================
   Animaciones de entrada (respetan prefers-reduced-motion arriba)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Página de gracias
   ========================================================================== */

.thanks-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block-start: calc(var(--header-h) + 2rem);
  padding-block-end: 3rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--c-ink);
}
.thanks-card {
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.thanks-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--c-green-light);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
  .map-wrap iframe { height: 300px; }
}
