/* ==============================================================================
   Laboratorio Clínico VDC - Hoja de Estilos Principal (Vanilla CSS)
   Inspirado en la filosofía y diseño de Laboratorio Real, adaptado a la
   identidad corporativa de Laboratorio VDC (ISO 9001:2015).
   ============================================================================== */

:root {
  --primary-color: #e96424;      /* Naranja Corporativo VDC */
  --primary-dark: #c84e13;       /* Naranja Oscuro */
  --primary-light: #fff5ee;      /* Naranja Muy Claro para Fondos */
  --primary-gradient: linear-gradient(135deg, #e96424 0%, #f5821f 100%);
  --secondary-color: #0284c7;    /* Azul Médico VDC */
  --secondary-dark: #0369a1;     /* Azul Profundo */
  --accent-color: #f5821f;       /* Ámbar / Dorado */
  --text-main: #1e293b;          /* Pizarra Oscuro para textos principales */
  --text-light: #64748b;         /* Gris Slate para textos secundarios */
  --text-muted: #94a3b8;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-subtle: #f1f5f9;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #f5821f;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(233,100,36,0.12), 0 8px 10px -6px rgba(0,0,0,0.04);
  --max-width: 1240px;
}

/* Reset y Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  /* Marca de agua molecular elegante */
  background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23e96424' stroke-width='20' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.025'%3E%3Cpolygon points='400,200 550,287 550,460 400,547 250,460 250,287'/%3E%3Cline x1='280' y1='305' x2='280' y2='442'/%3E%3Cline x1='400' y1='235' x2='510' y2='298'/%3E%3Cline x1='400' y1='512' x2='510' y2='448'/%3E%3Cline x1='550' y1='460' x2='650' y2='517'/%3E%3Cline x1='400' y1='547' x2='400' y2='647'/%3E%3Cline x1='250' y1='287' x2='150' y2='230'/%3E%3Ccircle cx='650' cy='517' r='20'/%3E%3Ccircle cx='400' cy='667' r='20'/%3E%3Ccircle cx='130' cy='219' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 250px;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--text-light); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Barra Superior Informativa */
.top-bar {
  background: #111827;
  color: #e2e8f0;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--primary-color);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-contact a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-contact a:hover {
  color: var(--accent-color);
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 100, 36, 0.2);
  color: #ffedd5;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.78rem;
  border: 1px solid rgba(233, 100, 36, 0.4);
}

/* Header & Navegación */
header {
  background: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.6rem;
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav ul li a {
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 6px 0;
  letter-spacing: 0.03em;
  position: relative;
  transition: var(--transition);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(233, 100, 36, 0.3);
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: linear-gradient(135deg, #c84e13 0%, #e96424 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 100, 36, 0.45);
}

.btn-secondary {
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(233, 100, 36, 0.3);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(135deg, rgba(20, 24, 33, 0.88) 0%, rgba(233, 100, 36, 0.82) 100%),
              url('../imagenes/hero_vdc.webp') center center/cover no-repeat;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 3.4rem;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.15;
}

.hero p {
  font-size: 1.25rem;
  color: #f1f5f9;
  margin: 0 auto 32px;
  max-width: 720px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.slogan-highlight {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffedd5;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Secciones Generales */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.section-title p {
  font-size: 1.1rem;
  margin-top: 10px;
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-white {
  background-color: var(--white);
}

/* Tarjetas de Distinción / Pilares (4 columnas) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary-gradient);
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Grid de Servicios Principales */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.service-card-body p {
  font-size: 0.95rem;
  flex-grow: 1;
}

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(233, 100, 36, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Banner de Certificación ISO 9001:2015 */
.iso-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(233, 100, 36, 0.3);
}

.iso-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.iso-img {
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  max-height: 280px;
  object-fit: cover;
  width: 100%;
  border: 3px solid rgba(255,255,255,0.1);
}

.iso-text h3 {
  font-size: 1.85rem;
  color: #ffedd5;
  margin-bottom: 14px;
}

.iso-text p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Promoción Especial: Miércoles de Descuento */
.promo-banner {
  background: linear-gradient(135deg, #e96424 0%, #f5821f 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: 0 12px 30px rgba(233, 100, 36, 0.35);
  text-align: center;
  margin-bottom: 50px;
}

.promo-banner h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.promo-banner p {
  color: #fff5ee;
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto 20px;
}

/* Sucursales / Sedes Grid */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.sede-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.sede-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.sede-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.sede-card-body {
  padding: 24px;
}

.sede-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sede-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.sede-info-item i {
  color: var(--primary-color);
  margin-top: 4px;
  font-size: 1rem;
}

/* Aliados Estratégicos / Aseguradoras */
.partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.partner-item {
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.partner-item img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}

.partner-item:hover img {
  filter: grayscale(0%);
}

/* Resultados / Consulta Formulario */
.resultados-hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(233, 100, 36, 0.85) 100%),
              url('../imagenes/recibe_resultados.webp') center center/cover no-repeat;
  padding: 70px 0;
  color: var(--white);
  text-align: center;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: -40px auto 60px;
  position: relative;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(233, 100, 36, 0.15);
}

/* Footer */
footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 60px 0 24px;
  border-top: 3px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary-color);
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Floating WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: inherit;
}

.whatsapp-float__btn {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover .whatsapp-float__btn {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float__tooltip {
  background: #ffffff;
  color: #1e293b;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-right: 12px;
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
}

.whatsapp-float__tooltip-status {
  width: 8px;
  height: 8px;
  background: #25D366;
  border-radius: 50%;
  display: inline-block;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.6rem; }
  .iso-grid { grid-template-columns: 1fr; text-align: center; }
  .iso-img { max-height: 220px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-color);
  }
  nav ul.show {
    display: flex;
  }
  .top-bar { display: none; }
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .whatsapp-float__tooltip { display: none; }
}



/* ==============================================================================
   Portales de Resultados (Estilo Laboratorio Real)
   ============================================================================== */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portal-card {
  background-color: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 45px 30px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.portal-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(233, 100, 36, 0.12);
}

.portal-icon-container {
  width: 86px;
  height: 86px;
  background-color: var(--bg-light);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--primary-color);
  margin: 0 auto 25px auto;
  transition: all 0.4s ease;
  border: 1px solid var(--border-color);
}

.portal-card:hover .portal-icon-container {
  background: var(--primary-gradient);
  color: var(--white);
  transform: rotateY(180deg);
  border-color: transparent;
}

.portal-card:hover .portal-icon-container i {
  transform: rotateY(180deg);
}

.portal-card h3 {
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 1.55rem;
}

.portal-card p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.portal-card .btn {
  width: 100%;
}
