@import url("bioscan.css");

/* ==========================================================
   1. VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ========================================================== */
:root {
  --b-ink: #123f66;
  --b-blue: #086595;
  --b-teal: #00a2b1;
  --b-mint: #e8f7fa;
  --b-line: #d9eaf1;
  --b-shadow: 0 12px 32px rgba(10, 71, 111, .09);

  /* Paleta Médica Institucional (UI/UX) */
  --color-primary: #086595;
  --color-primary-dark: #044b70;
  --color-accent-teal: #00a2b1;
  --color-text-main: #123f66;
  --color-bg-card: #ffffff;
  
  /* Sombras y Transiciones */
  --shadow-card: 0 10px 28px -4px rgba(10, 71, 111, 0.07);
  --shadow-card-hover: 0 18px 36px -6px rgba(0, 162, 177, 0.18);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body.bioscan-home {
  color: var(--b-ink);
  background: #fff;
}

.bioscan-home .container {
  width: min(92%, 1280px);
}


/* ==========================================================
   2. ENCABEZADO Y NAVEGACIÓN (HEADER & NAV)
   ========================================================== */
.bioscan-home .header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e3eef2;
  box-shadow: 0 4px 18px rgba(11, 57, 91, .05);
}

.bioscan-home .header-content {
  min-height: 74px;
}

.bioscan-home .logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 205px;
  object-fit: contain;
}

.bioscan-home .nav {
  flex: 1;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 30px);
}

.bioscan-home .nav a {
  color: #264e6e;
  font-size: 14px;
}

.bioscan-home .nav a:hover {
  color: var(--b-teal);
}

/* Empuje del botón de cuenta / acceso a la extrema derecha */
.bioscan-home .nav a.boton-acceso,
.bioscan-home .nav .menu-cuenta {
  margin-left: auto;
}

.bioscan-home .nav > a:not(.boton-acceso) {
  flex-shrink: 0;
}


/* ==========================================================
   3. SECCIÓN HERO (PRINCIPAL)
   ========================================================== */
.bioscan-home .hero {
  min-height: 440px;
  background: linear-gradient(90deg, #eef9fc 0%, #e5f5fa 46%, #d6f0f7 100%);
  position: relative;
  overflow: hidden;
}

.bioscan-home .hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -140px;
  width: 56%;
  height: 780px;
  border: 30px solid rgba(0, 162, 177, .72);
  border-radius: 50%;
  transform: rotate(25deg);
  pointer-events: none;
}

.bioscan-home .hero-content {
  position: relative;
  z-index: 1;
  padding-top: 54px;
  padding-bottom: 54px;
  grid-template-columns: .95fr 1.05fr;
  gap: 48px;
}

.bioscan-home .hero-text {
  color: var(--b-ink);
}

.bioscan-home .hero .eyebrow {
  color: #008ba4;
  letter-spacing: .11em;
}

.bioscan-home .hero h1 {
  max-width: 600px;
  color: #104c78;
  font-size: clamp(42px, 4.3vw, 62px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.bioscan-home .hero h1 span {
  display: block;
  color: #104c78;
}

.bioscan-home .hero p {
  max-width: 560px;
  color: #496d87;
  font-size: 17px;
  line-height: 1.65;
}

.bioscan-home .hero-buttons {
  gap: 12px;
}

.bioscan-home .hero .btn {
  min-height: 48px;
  padding: 0 21px;
}

.bioscan-home .hero .btn-primary {
  background: #008fad;
  color: #fff;
}

.bioscan-home .hero .btn-primary:hover {
  background: #057a9b;
}

.bioscan-home .hero .btn-secondary {
  color: #0875a0;
  border-color: #0b8eb1;
  background: #fff;
}

.bioscan-home .hero-image {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.bioscan-home .hero-image::after {
  display: none;
}

.bioscan-home .hero-slider {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(9, 81, 119, .18);
}

.bioscan-home .hero-image .hero-slider .hero-slide {
  height: 350px;
  aspect-ratio: 1.7;
  object-fit: cover !important;
}

.bioscan-home .hero-dots {
  margin: 8px 0 0;
}

.bioscan-home .hero-dot {
  border-color: #168ca5;
}

.bioscan-home .hero-dot.active {
  background: #168ca5;
}


/* ==========================================================
   4. FRANJA DE CONFIANZA (TRUST STRIP)
   ========================================================== */
.trust-strip {
  padding: 18px 0 23px;
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: 13px;
  background: #f1f8fb;
}

.trust-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border: 2px solid #0783a5;
  border-radius: 50%;
  color: #008ca9;
  font-size: 23px;
  font-weight: 700;
}

.trust-grid strong,
.trust-grid small {
  display: block;
}

.trust-grid strong {
  color: #124a73;
  font-size: 14px;
}

.trust-grid small {
  margin-top: 5px;
  color: #648197;
  font-size: 12px;
  line-height: 1.45;
}


/* ==========================================================
   5. SECCIÓN DE SERVICIOS
   ========================================================== */
.bioscan-home .section {
  padding: 70px 0;
}

.services-section {
  background: linear-gradient(180deg, #f8fcfd, #eef8fc);
}

.services-layout {
  display: grid;
  grid-template-columns: .85fr 1.65fr;
  gap: 42px;
  align-items: center;
}

.services-intro .eyebrow,
.section-heading .eyebrow,
.about-content .eyebrow {
  color: #008fa8;
}

.services-intro h2,
.section-heading h2,
.about-content h2 {
  color: #104c78;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.services-intro p,
.section-heading p,
.about-content p {
  color: #597990;
  line-height: 1.7;
}

.services-intro .btn {
  margin-top: 10px;
}

.bioscan-home .services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* Tarjetas de servicios mejoradas con elevación */
.bioscan-home .service-card {
  background-color: var(--color-bg-card);
  padding: 22px 20px;
  border: 1px solid #e5eff4;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bioscan-home .service-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(0, 162, 177, 0.35) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

.bioscan-home .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.bioscan-home .service-card:hover::before {
  background: var(--color-accent-teal);
}

.bioscan-home .service-card .service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #def3fa;
  color: #0877a4;
  font-size: 12px;
}

.bioscan-home .service-card h3 {
  margin: 0 0 4px;
  color: #124a73;
  font-size: 17px;
}

.bioscan-home .service-category {
  margin: 0;
  color: #718b9c;
  font-size: 10px;
}

.bioscan-home .service-card .service-link {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  border: 0;
  background: transparent;
  text-align: left;
  margin-top: 12px;
  padding: 0;
  color: #087ba5;
  font-size: 13px;
  cursor: pointer;
}

.bioscan-home .service-card .servicio-sucursales {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #f1f8fb;
}

.bioscan-home .menu-cuenta-opciones[hidden],
.bioscan-home .servicio-sucursales[hidden] {
  display: none !important;
}


/* ==========================================================
   6. SECCIÓN DE SUCURSALES
   ========================================================== */
.branches-section {
  background: linear-gradient(115deg, #eaf7fc, #f4fafd);
}

.bioscan-home .section-heading {
  margin: 0 0 28px;
  text-align: left;
  max-width: 650px;
}

.bioscan-home .branches-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

/* Tarjetas de sucursales con efectos de profundidad */
.bioscan-home .branch-card {
  background-color: var(--color-bg-card);
  padding: 23px;
  border: 1px solid #e1edf3;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bioscan-home .branch-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-card-hover) !important;
  border-color: rgba(0, 162, 177, 0.35) !important;
}

.bioscan-home .branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.bioscan-home .branch-card:hover::before {
  background: var(--color-accent-teal);
}

.bioscan-home .branch-card h3 {
  margin: 5px 0 7px;
  color: #124a73;
  font-size: 20px;
}

.bioscan-home .branch-card p {
  margin: 5px 0;
  color: #607b8e;
  font-size: 14px;
}

.bioscan-home .branch-card .branch-info {
  font-size: 12px;
  line-height: 1.5;
}

.bioscan-home .branch-tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: #e0f5f4;
  color: #087c8b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.bioscan-home .branch-link {
  color: #087da7;
  font-size: 13px;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 0;
  font-weight: 700;
  border-radius: 0;
}

.bioscan-home .branch-link:hover {
  color: var(--color-accent-teal) !important;
  transform: translateX(3px);
}


/* ==========================================================
   7. BOTONES DE ACCIÓN (CTA) / AGENDAR CITA
   ========================================================== */
.bioscan-home .btn-agendar,
.bioscan-home a[href*="agendar_cita"].btn-primary,
.bioscan-home a[href*="agendar_cita"]:not(.branch-link) {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-teal)) !important;
  color: #ffffff !important;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 162, 177, 0.28);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none !important;
}

.bioscan-home .btn-agendar:hover,
.bioscan-home a[href*="agendar_cita"].btn-primary:hover,
.bioscan-home a[href*="agendar_cita"]:not(.branch-link):hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary)) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(8, 101, 149, 0.35);
}


/* ==========================================================
   8. SECCIÓN "NOSOTROS" (ABOUT) Y FOOTER
   ========================================================== */
.about-section {
  background: linear-gradient(110deg, #075985, #0b7094);
  color: #fff;
}

.bioscan-home .about {
  grid-template-columns: 1.3fr .7fr;
  gap: 50px;
  align-items: center;
}

.bioscan-home .about-content .eyebrow,
.bioscan-home .about-content h2,
.bioscan-home .about-content p {
  color: #fff;
}

.bioscan-home .about-content h2 {
  font-size: clamp(32px, 3.5vw, 46px);
}

.bioscan-home .about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.bioscan-home .about-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.bioscan-home .about-item::before {
  display: none;
}

.bioscan-home .about-item strong {
  color: #fff;
  font-size: 13px;
}

.bioscan-home .about-item span {
  color: #d9eff8;
  font-size: 11px;
  line-height: 1.4;
}

.bioscan-home .about-image {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.bioscan-home .about-image img {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.bioscan-home .cta {
  padding: 52px 0;
  background: #fff;
}

.bioscan-home .cta-content {
  max-width: 950px;
  padding: 25px 30px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  text-align: center;
}

.bioscan-home .cta-content .eyebrow,
.bioscan-home .cta-content h2 {
  color: #104c78;
}

.bioscan-home .cta-content p {
  color: #597990;
}

.bioscan-home .cta-buttons {
  justify-content: center;
}

.bioscan-home .cta-buttons .btn-light {
  background: #0099ad;
  color: white;
}

.bioscan-home .cta-buttons .btn-outline-light {
  border-color: #0784a5 !important;
  background: #fff !important;
  color: #0875a0 !important;
}

.bioscan-home .footer {
  background: #0b3454;
}

.bioscan-home .footer-content {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.bioscan-home .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}


/* ==========================================================
   9. MENÚ DESPLEGABLE DE CUENTA
   ========================================================== */
.bioscan-home .menu-cuenta {
  position: relative;
  width: 100%;
}

.bioscan-home .boton-cuenta {
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: #078eaa;
  color: #fff;
  font: 700 12px inherit;
  cursor: pointer;
}

.bioscan-home .menu-cuenta-opciones {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 110;
  padding: 7px;
  min-width: 185px;
  border: 1px solid var(--b-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--b-shadow);
}

.bioscan-home .menu-cuenta-opciones a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--b-ink);
  text-decoration: none;
}

.bioscan-home .menu-cuenta-opciones a:hover {
  background: var(--b-mint);
}


/* ==========================================================
   10. DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================== */
@media(max-width: 900px) {
  .bioscan-home .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  .services-layout {
    grid-template-columns: 1fr;
  }
  .services-intro {
    max-width: 650px;
  }
  .bioscan-home .branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bioscan-home .hero-image .hero-slider .hero-slide {
    height: 300px;
  }
}

@media(max-width: 768px) {
  .bioscan-home .header-content {
    flex-wrap: wrap;
  }
  .bioscan-home .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 120;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #e4f5fa;
    color: #087da0;
    font-size: 24px;
    cursor: pointer;
    touch-action: manipulation;
  }
  .bioscan-home .nav {
    display: none;
    order: 4;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    overflow: visible;
    background: #fff;
  }
  .bioscan-home .nav.active {
    display: flex;
  }
  .bioscan-home .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--b-line);
  }
  .bioscan-home .menu-cuenta-opciones {
    left: 0;
    right: 0;
  }
  .bioscan-home .about-image img {
    width: 300px;
    margin: 0 auto;
  }
}

@media(max-width: 600px) {
  .bioscan-home .header {
    position: relative;
  }
  .bioscan-home .hero::after {
    right: -210px;
    top: 70px;
    width: 80%;
    height: 450px;
    border-width: 16px;
  }
  .bioscan-home .hero-content {
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 36px;
    gap: 25px;
  }
  .bioscan-home .hero h1 {
    font-size: 43px;
  }
  .bioscan-home .hero-buttons {
    flex-direction: column;
  }
  .bioscan-home .hero .btn {
    width: 100%;
  }
  .bioscan-home .hero-image .hero-slider .hero-slide {
    height: 230px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid article {
    min-height: 64px;
  }
  .bioscan-home .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bioscan-home .branches-grid {
    grid-template-columns: 1fr;
  }
  .bioscan-home .about {
    grid-template-columns: 1fr;
  }
  .bioscan-home .about-highlights {
    grid-template-columns: 1fr;
  }
  .bioscan-home .footer-content {
    grid-template-columns: 1fr;
  }
  .bioscan-home .footer-bottom {
    display: block;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bioscan-home *, 
  .bioscan-home *::before, 
  .bioscan-home *::after {
    transition: none !important;
  }
}