/* ==========================================================================
   Dr. Carlos Fabián González García - Sitio Web Profesional
   Especialidad: Cirujano General y Laparoscopista
   Ubicación: Sertoma 203, Consultorio 205, Monterrey, N.L.
   ========================================================================== */

:root {
  /* Paleta de Colores Médica y Sobria */
  --primary: #0c2340;        /* Azul Quirúrgico Profundo */
  --primary-rgb: 12, 35, 64;
  --primary-light: #163b66;
  --primary-dark: #071526;
  
  --accent: #0a8f82;         /* Verde Quirúrgico / Teal */
  --accent-rgb: 10, 143, 130;
  --accent-hover: #077369;
  --accent-light: #e6f6f4;
  --accent-subtle: #f0faf9;

  --wa-color: #25D366;       /* WhatsApp Brand */
  --wa-hover: #1eb855;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0c2340;
  --bg-dark-alt: #102d52;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Espacio para barra de acción fija inferior en móviles */
  }
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Contenedor Universal */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Iconos en Línea */
.icon-inline {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

/* ==========================================================================
   Botones y Elementos UI
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--wa-color);
  color: var(--text-white);
  border-color: var(--wa-color);
}

.btn-whatsapp:hover {
  background-color: var(--wa-hover);
  border-color: var(--wa-hover);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   Etiquetas y Badges
   ========================================================================== */
.section-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: var(--accent-light);
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.section-tag-light {
  color: #a7f3d0;
  background-color: rgba(255, 255, 255, 0.15);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  background-color: rgba(10, 143, 130, 0.25);
  border: 1px solid rgba(10, 143, 130, 0.4);
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf;
}

/* ==========================================================================
   Barra Superior de Contacto
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.825rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-separator {
  color: rgba(255, 255, 255, 0.2);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f1f5f9;
  font-weight: 600;
}

.top-link:hover {
  color: var(--accent);
}

.top-badge-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.top-badge-wa:hover {
  background-color: var(--wa-color);
  color: #ffffff;
}

@media (max-width: 900px) {
  .top-bar-info .top-separator,
  .top-bar-info .top-item:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  .top-bar {
    display: none; /* Simplificación para viewport móvil */
  }
}

/* ==========================================================================
   Cabecera y Navegación Principal
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(10, 143, 130, 0.25);
}

.cross-icon {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.doctor-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.doctor-sub {
  font-size: 0.785rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Navegación Desktop */
.desktop-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.25rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Botón Hamburguesa Móvil */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Drawer Móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background-color: #ffffff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.mobile-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-nav-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

@media (max-width: 992px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0c2340 0%, #0f355c 60%, #08434a 100%);
  color: var(--text-white);
  padding: 4.5rem 0 5rem 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(10, 143, 130, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 10% 90%, rgba(12, 35, 64, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.hero-title {
  font-size: 2.75rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

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


.hero-specialty {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  color: #2dd4bf;
  margin-top: 0.5rem;
  letter-spacing: 0;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.highlight-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #2dd4bf;
  line-height: 1;
}

.highlight-icon {
  width: 28px;
  height: 28px;
  color: #2dd4bf;
  margin-bottom: 0.25rem;
}

.highlight-text {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.3;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tarjeta del Perfil Médico en Hero */
.doctor-profile-card {
  background-color: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.25rem;
}

.doctor-avatar-box {
  width: 180px;
  height: 180px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.doctor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.surgeon-silhouette {
  width: 54px;
  height: 54px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

.profile-specialty {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.15rem;
}

.profile-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.profile-info-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.info-val {
  font-weight: 600;
  text-align: right;
  color: var(--primary);
}

.phone-highlight {
  color: var(--accent);
  font-weight: 700;
}

.phone-highlight:hover {
  text-decoration: underline;
}

/* Strip de Cédulas Profesionales */
.profile-credentials-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--accent-light);
  border: 1px solid rgba(10, 143, 130, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cred-label {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cred-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.credential-divider {
  color: rgba(10, 143, 130, 0.35);
  font-weight: 300;
  font-size: 1.2rem;
}

.profile-institution {
  font-size: 0.785rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* Bloque de Certificaciones y Logos */
.profile-trust-block {
  border-top: 1px solid var(--border-light);
  padding-top: 1.1rem;
  margin-bottom: 1.35rem;
}

.trust-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.trust-badge-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
}

.trust-badge-card:hover {
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.trust-logo-wrap {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  width: 100%;
}

.trust-logo-img {
  max-height: 40px;
  max-width: 90%;
  object-fit: contain;
}

.logo-cmcg {
  max-height: 34px;
}

.logo-amcg {
  max-height: 42px;
}

.trust-badge-text {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.25;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .doctor-profile-card {
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-specialty {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ==========================================================================
   Sección Sobre Mí
   ========================================================================== */
.section-about {
  background-color: var(--bg-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.visual-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-doctor-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
}

.about-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 480px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.about-doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.4s ease;
}

.about-doctor-card:hover .about-doctor-photo {
  transform: scale(1.02);
}

.about-floating-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(12, 35, 64, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.about-floating-badge .years-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #2dd4bf;
  margin-bottom: 0;
}

.about-floating-badge .badge-text-group {
  display: flex;
  flex-direction: column;
}

.about-floating-badge .years-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: #ffffff;
}

.about-floating-badge .years-sub {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.2;
}

.experience-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.experience-card::after {
  content: '+';
  position: absolute;
  right: -10px;
  bottom: -40px;
  font-size: 11rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  pointer-events: none;
}

.years-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  display: block;
  color: #2dd4bf;
  margin-bottom: 0.25rem;
}

.years-title {
  font-size: 1.35rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.years-sub {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.values-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.values-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.values-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.values-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-main);
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.lead-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.about-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.badge-item {
  background-color: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.badge-title {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.badge-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-action {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   Sección Segunda Opinión Quirúrgica
   ========================================================================== */
.section-opinion {
  background-color: var(--bg-alt);
  padding: 4.5rem 0;
}

.opinion-box {
  background: linear-gradient(135deg, #0c2340 0%, #112e52 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
}

.opinion-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .opinion-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.opinion-header {
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.opinion-title {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.opinion-sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.opinion-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.opinion-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.opinion-card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(10, 143, 130, 0.3);
  color: #2dd4bf;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.opinion-card-icon svg {
  width: 26px;
  height: 26px;
}

.opinion-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.opinion-card p {
  font-size: 0.925rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.opinion-cta-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
  .opinion-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .opinion-box {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   Sección Servicios Quirúrgicos
   ========================================================================== */
.section-services {
  background-color: var(--bg-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

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

.service-card:hover .service-link {
  color: var(--accent-hover);
  transform: translateX(4px);
}

.service-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, var(--accent-subtle) 100%);
  box-shadow: var(--shadow-md);
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon-box svg {
  width: 28px;
  height: 28px;
}

.service-name {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-image-box {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

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

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  margin-top: auto;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--text-main);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.45;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.service-link {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-link:hover {
  color: var(--accent-hover);
  transform: translateX(4px);
}

/* ==========================================================================
   Sección Pilares de Atención
   ========================================================================== */
.section-pillars {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-step {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pillar-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.step-badge {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.pillar-step h4 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.pillar-step p {
  font-size: 0.885rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sección Consultorio y Ubicación
   ========================================================================== */
.section-location {
  background-color: var(--bg-surface);
}

.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.location-card {
  background-color: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.location-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.location-marker-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-marker-icon svg {
  width: 26px;
  height: 26px;
}

.location-title {
  font-size: 1.45rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.location-reference-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-hover);
  background-color: var(--accent-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.location-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.925rem;
}

.detail-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.detail-row strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.detail-row p {
  color: var(--text-muted);
  line-height: 1.45;
}

.location-phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.location-phone:hover {
  text-decoration: underline;
}

.location-navigation-buttons {
  margin-top: auto;
}

.location-map-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  min-height: 380px;
}

.map-overlay-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ffffff;
  color: var(--primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: var(--transition);
  z-index: 10;
}

.map-overlay-badge:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .location-layout {
    grid-template-columns: 1fr;
  }
  .location-map-wrapper {
    min-height: 320px;
  }
  .map-overlay-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Sección Contacto y Agendamiento
   ========================================================================== */
.section-contact {
  background: linear-gradient(135deg, #0c2340 0%, #163b66 100%);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-headline {
  font-size: 2.25rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  transition: var(--transition);
}

.method-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.method-card.method-whatsapp {
  border-color: rgba(37, 211, 102, 0.4);
}

.method-card.method-whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.15);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-whatsapp .method-icon {
  background-color: var(--wa-color);
  color: #ffffff;
}

.method-icon svg {
  width: 24px;
  height: 24px;
}

.method-text {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.method-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.method-hint {
  font-size: 0.75rem;
  color: #cbd5e1;
}

.consultation-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: rgba(10, 143, 130, 0.2);
  border-left: 3px solid #2dd4bf;
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.45;
}

/* Formulario */
.form-wrapper {
  background-color: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-xl);
}

.form-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--bg-alt);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 143, 130, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.success-alert {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Pie de Página
   ========================================================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
}

.footer-logo {
  margin-bottom: 1.25rem;
}

.footer-logo .doctor-name {
  color: #ffffff;
}

.footer-summary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-direct-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2dd4bf;
  background-color: rgba(45, 212, 191, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.footer-heading {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #2dd4bf;
  padding-left: 0.25rem;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.ref-highlight {
  display: block;
  color: #2dd4bf;
  font-weight: 600;
  margin-top: 0.35rem;
}

.footer-schedule {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  font-size: 0.825rem;
  color: #64748b;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.legal-notice {
  font-size: 0.95rem;
  color: #ffffff;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Botones Flotantes
   ========================================================================== */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
  position: relative;
}

.floating-btn svg {
  width: 30px;
  height: 30px;
}

.floating-btn:hover {
  transform: scale(1.08);
}

.floating-btn-wa {
  background-color: var(--wa-color);
  color: #ffffff;
}

.floating-btn-wa:hover {
  background-color: var(--wa-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.floating-btn-phone {
  background-color: var(--primary);
  color: #ffffff;
}

.floating-tooltip {
  position: absolute;
  right: 70px;
  background-color: #0c2340;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.floating-btn-wa:hover .floating-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .floating-contact {
    display: none; /* Reemplazado por la barra de acción inferior en móviles */
  }
}

/* ==========================================================================
   Barra de Acción Fija Inferior (Solo Móviles)
   ========================================================================== */
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-top: 1px solid var(--border-light);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px)) 1rem;
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0.75rem;
  }
}

.action-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
}

.action-bar-call {
  background-color: var(--bg-alt);
  color: var(--primary);
  border: 1px solid var(--border-light);
}

.action-bar-wa {
  background-color: var(--wa-color);
  color: #ffffff;
}


@media (max-width: 768px) {
  .brand-logo-img {
    height: 55px !important;
  }
}

@media (max-width: 576px) {
  .profile-card-header {
    flex-direction: column;
    text-align: center;
  }
}


/* ==========================================================================
   Sección de Seguros de Gastos Médicos (Marquee Infinito)
   ========================================================================== */
.section-insurance {
  background-color: var(--bg-alt);
  padding: 4.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.insurance-title {
  font-size: 2.25rem;
  color: var(--primary);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.insurance-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.insurance-marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.insurance-marquee-track:hover {
  animation-play-state: paused;
}

.insurance-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  height: 80px;
  transition: var(--transition);
  flex-shrink: 0;
}

.insurance-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.insurance-card img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .insurance-title {
    font-size: 1.65rem;
  }
  .insurance-card {
    min-width: 135px;
    height: 64px;
    padding: 0.5rem 1rem;
  }
  .insurance-card img {
    max-height: 38px;
    max-width: 105px;
  }
}

/* ==========================================================================
   Botones Circulares de Redes Sociales en Footer
   ========================================================================== */
.footer-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.footer-social-circle:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.social-facebook {
  background-color: #1877F2;
}

.social-facebook:hover {
  background-color: #1464c9;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-instagram:hover {
  opacity: 0.94;
}


/* ==========================================================================
   Estilos de Subpáginas Detalladas de Servicios Quirúrgicos
   ========================================================================== */
.service-detail-hero {
  position: relative;
  background: linear-gradient(135deg, #0c2340 0%, #0f355c 60%, #08434a 100%);
  color: #ffffff;
  padding: 4rem 0 4.5rem 0;
  overflow: hidden;
}

.service-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.service-breadcrumb a {
  color: #2dd4bf;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.service-breadcrumb a:hover {
  text-decoration: underline;
}

.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-hero-title {
  font-size: 2.75rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.service-hero-sub {
  font-size: 1.15rem;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 2rem;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.service-layout {
  padding: 4rem 0;
  background-color: var(--bg-alt);
}

.service-grid-wrapper {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.service-main-article {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.article-section {
  margin-bottom: 3rem;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article-h2 {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.article-h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.article-p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dark, #2c3e50);
  margin-bottom: 1.25rem;
}

.medical-callout-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

.callout-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-desc {
  font-size: 0.975rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.symptoms-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.symptom-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.symptom-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.symptom-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.symptom-info h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.symptom-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.comparison-table tr:nth-child(even) td {
  background-color: var(--bg-alt);
}

.badge-positive {
  display: inline-block;
  background-color: #d1fae5;
  color: #065f46;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background-color: #ffffff;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.faq-answer {
  font-size: 0.975rem;
  color: var(--text-dark);
  line-height: 1.65;
}

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 110px;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.doctor-mini-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.doctor-mini-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.doctor-mini-name {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.doctor-mini-sub {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.doctor-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 992px) {
  .service-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .symptoms-cards-grid {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
  }
  .service-hero-title {
    font-size: 2.15rem;
  }
  .service-main-article {
    padding: 2rem 1.5rem;
  }
}


/* ==========================================================================
   Imagen en Quirófano (Foto 1) en Hero de Subpáginas
   ========================================================================== */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.service-hero-media {
  display: flex;
  justify-content: center;
}

.service-hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(45, 212, 191, 0.35);
  background-color: #0c2340;
  max-width: 440px;
  width: 100%;
}

.service-hero-image-card.portrait-card {
  max-width: 320px;
}

.hero-quirofano-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.4s ease;
}

.hero-quirofano-img.img-selfie-full {
  width: 100%;
  height: auto;
  aspect-ratio: 766 / 1024;
  object-fit: cover;
  display: block;
  padding: 0;
  background-color: transparent;
}

.service-hero-image-card:hover .hero-quirofano-img {
  transform: scale(1.03);
}

.hero-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(8, 23, 38, 0.95) 0%, rgba(8, 23, 38, 0.65) 70%, transparent 100%);
  padding: 1rem 0.85rem 0.5rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.725rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 992px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-hero-media {
    margin-top: 1rem;
  }
  .hero-quirofano-img {
    height: 240px;
  }
}

/* Fix mobile overflow issue with comparison tables */
.service-main-article {
  min-width: 0;
}
.comparison-table-wrapper {
  width: 100%;
  max-width: 100%;
}


/* Extra grid constraints for mobile safety */
.service-grid-wrapper {
  min-width: 0;
}

