/* ==========================================================================
   DISEÑO SYSTEM Y VARIABLES - LÁSER CENTER IQUITOS
   ========================================================================== */

:root {
  --primary: #008B99;       /* Teal/Turquesa principal */
  --primary-rgb: 0, 139, 153;
  --secondary: #00BFA5;     /* Menta de acento */
  --secondary-rgb: 0, 191, 165;
  --dark: #0F172A;          /* Navy profundo */
  --dark-light: #1E293B;    /* Navy claro */
  --light: #F8FAFC;         /* Fondo claro */
  --white: #FFFFFF;
  --gray-light: #E2E8F0;
  --gray-medium: #94A3B8;
  --text-dark: #1E293B;
  --text-light: #64748B;
  --danger: #EF4444;
  --success: #10B981;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --border-radius: 12px;
  --font-family-body: 'Inter', sans-serif;
  --font-family-title: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

p {
  color: var(--text-light);
}
/* ==========================================================================
   SERVICIOS Y CIRUGÍAS — Láser Center Iquitos
   Usa las variables definidas en style.css (--primary, --secondary, etc.)
   No redefine nada que ya exista ahí (botones, header, footer, tipografía).
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */
.services-hero {
    padding: 150px 0 56px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(circle at 12% 15%, rgba(var(--primary-rgb), 0.05) 0%, var(--white) 55%);
}

/* Motivo decorativo: el mismo lenguaje del logo (círculos concéntricos +
   guías radiales), a modo de "lente" de fondo. Es puramente ambiental:
   baja opacidad, sin animación infinita, no compite con el contenido. */
.services-hero__motif {
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero .subtitle {
    font-family: var(--font-family-title);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.services-hero h1 {
    font-size: 40px;
    line-height: 1.15;
    max-width: 640px;
    margin: 0 auto 14px;
}

.services-hero__lead {
    font-size: 17px;
    max-width: 540px;
    margin: 0 auto 32px;
}

/* Chips de confianza — mismo contenido que el hero del home, reutilizado
   para consistencia de marca entre páginas. */
.services-hero__trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.services-hero__trust .feature-item {
    font-size: 13.5px;
}

/* ==========================================================================
   2. TABS con indicador deslizante
   ========================================================================== */
.tabs-container {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    background: var(--white);
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}

/* La "píldora" que se desliza detrás del botón activo. Se posiciona
   por JS (left/width calculados con getBoundingClientRect). */
.tabs-container__indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    background: var(--primary);
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}

.tab-btn {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    color: var(--white);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ==========================================================================
   3. PANELES DE CONTENIDO
   ========================================================================== */
.tab-content {
    display: none;
    padding: 44px 0 72px;
}

.tab-content.active {
    display: block;
    animation: lc-tab-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lc-tab-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}

.tab-header .subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.tab-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.tab-header .title-bar {
    width: 44px;
    height: 3px;
    background: var(--secondary);
    margin: 10px auto;
    border-radius: 2px;
}

.tab-header p {
    font-size: 15px;
}

/* ==========================================================================
   4. GRID Y ESTADOS (carga / vacío / error)
   ========================================================================== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 993px) {
    .servicios-grid:has(.servicio-card-catalogo:only-child) {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .servicios-grid:has(.servicio-card-catalogo:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Skeleton de carga: evita que la sección se sienta "en blanco"
   mientras el fetch a Django responde. El shimmer se detiene solo
   (los nodos se eliminan) apenas llegan los datos reales — no es un
   loop que quede corriendo para siempre en la página. --- */
.skeleton-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
}

.skeleton-block {
    background: linear-gradient(90deg, var(--gray-light) 25%, #eef2f6 37%, var(--gray-light) 63%);
    background-size: 400% 100%;
    animation: lc-shimmer 1.4s ease infinite;
    border-radius: 10px;
}

@keyframes lc-shimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.skeleton-card .skeleton-img { height: 190px; margin-bottom: 18px; border-radius: 14px; }
.skeleton-card .skeleton-icon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; }
.skeleton-card .skeleton-title { height: 18px; width: 70%; margin-bottom: 10px; }
.skeleton-card .skeleton-line { height: 12px; width: 100%; margin-bottom: 8px; }
.skeleton-card .skeleton-line.short { width: 60%; }

@media (prefers-reduced-motion: reduce) {
    .skeleton-block { animation: none; background: var(--gray-light); }
}

/* --- Estado vacío / error --- */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 38px;
    color: var(--gray-medium);
    display: block;
    margin-bottom: 14px;
}

.empty-state.is-error i { color: var(--danger); }

.empty-state h3 {
    font-size: 19px;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 14px;
}

/* ==========================================================================
   4b. BOTÓN "VER MÁS" DE LA TARJETA
   ========================================================================== */
.btn-ver-mas {
    margin-top: auto;
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 9px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-family-title);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-ver-mas:hover {
    background: #007682;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-ver-mas:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Listas dentro de la descripción formateada (cuando el texto usa
   "- item" en el admin de Django) */
.servicio-card-catalogo .descripcion .titulo {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 6px;
}

.servicio-card-catalogo .descripcion ul {
    margin: 4px 0 4px 18px;
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .services-hero { padding: 120px 0 40px; }
    .services-hero h1 { font-size: 28px; }
    .services-hero__lead { font-size: 15px; }
    .services-hero__motif { width: 280px; height: 280px; right: -90px; opacity: 0.35; }
    .services-hero__trust { gap: 14px 20px; }

    .tabs-container { margin: 0 20px; max-width: none; }
    .tab-btn { padding: 11px 12px; font-size: 13.5px; }

    .servicios-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

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


/* ==========================================================================
   COMPONENTES: BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  background-color: #007682;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

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

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

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   CABECERA / NAVBAR
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

.brand-name {
  font-family: var(--font-family-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 16px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 10% 20%, rgba(0, 139, 153, 0.04) 0%, rgba(255, 255, 255, 1) 90%);
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-family: var(--font-family-title);
  font-weight: 600;
  font-size: 14px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--dark) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.feature-item i {
  color: var(--primary);
  font-size: 18px;
}

/* Gráfico animado del ojo / Escáner */
.hero-graphic {
  display: flex;
  justify-content: center;
  position: relative;
}

.graphic-card {
  width: 100%;
  max-width: 360px;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.card-header-glow {
  position: absolute;
  top: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.2) 0%, transparent 70%);
  filter: blur(20px);
}

.visual-eye-scanner {
  height: 220px;
  background-color: var(--dark);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.scanner-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--secondary-rgb), 0.2);
}

.circle-1 {
  width: 180px;
  height: 180px;
  animation: rotateCircle 12s linear infinite;
}

.circle-2 {
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(var(--primary-rgb), 0.4);
  animation: rotateCircleCounter 8s linear infinite;
}

.scanner-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  top: 0;
  left: 0;
  animation: scanEye 4s ease-in-out infinite;
  box-shadow: 0 0 8px var(--secondary);
}

.scanner-eye {
  width: 90px;
  height: 90px;
  z-index: 5;
}

.info-card-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.info-card-text p {
  font-size: 13px;
}

/* ==========================================================================
   SERVICIOS SECTION
   ========================================================================== */
.services-section {
  padding: 100px 0;
  background-color: var(--white);
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.subtitle {
  font-family: var(--font-family-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title-wrapper h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.title-bar {
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-desc {
  font-size: 16px;
}

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

/* Tarjeta de Servicio */
.service-card {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(var(--primary-rgb), 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary);
  transition: var(--transition);
}

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

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-family: var(--font-family-title);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.service-link i {
  font-size: 12px;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--secondary);
}

.service-link:hover i {
  transform: translateX(4px);
}



/* ==========================================================================
   KEYFRAMES / ANIMACIONES
   ========================================================================== */
@keyframes rotateCircle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateCircleCounter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes scanEye {
  0%, 100% { top: 0; }
  50% { top: 100%; }
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popSuccess {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatPin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   RESPONSIVIDAD Y ADAPTABILIDAD
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-graphic {
    order: -1;
  }
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .booking-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-links ul {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 36px;
  }

@media (max-width: 768px) {
  .main-footer {
    padding-bottom: 140px;
  }
}
  .main-nav {
    display: none;
    position: absolute;
    top: 108px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 24px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .menu-toggle {
    display: block;
  }
  .btn-nav {
    display: none;
  }
  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .symptoms-list {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}


/* ==========================================================================
   BARRA SUPERIOR DE EMERGENCIAS
   ========================================================================== */
.top-emergency-bar {
  background-color: var(--dark-light);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.emergency-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emergency-btn {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.emergency-btn:hover {
  color: var(--white);
  transform: translateY(-1px);
}

/* Checkbox de Privacidad */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  font-size: 13.5px;
  color: var(--text-light);
}

.form-checkbox input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-checkbox label {
  line-height: 1.4;
  cursor: pointer;
}

.form-checkbox a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 600;
}

.form-checkbox a:hover {
  color: var(--secondary);
}


/* ==========================================================================
   FOOTER
   ==========================<<<<<<<================================================ */
.main-footer {
  background-color: var(--dark-light);
  color: var(--white);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--gray-medium);
  font-size: 14px;
}

.footer-links ul {
  display: flex;
  list-style: none;
  gap: 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 12px;
  color: var(--gray-medium);
}

.dev-credits {
  font-style: italic;
}

/* ==========================================================================
   KEYFRAMES / ANIMACIONES
   ========================================================================== */
@keyframes rotateCircle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateCircleCounter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes scanEye {
  0%, 100% { top: 0; }
  50% { top: 100%; }
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popSuccess {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatPin {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================
   MEJORAS PARA TARJETAS DE SERVICIOS (VERSIÓN PREMIUM)
   ============================================================ */

/* ---- CONTENEDOR DEL GRID (Para que no se estire feo con 1 servicio) ---- */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Si hay menos de 3 servicios, que no se estiren más de 400px */
@media (min-width: 992px) {
    .catalogo-grid:has(.servicio-card-catalogo:only-child) {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .catalogo-grid:has(.servicio-card-catalogo:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 750px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---- TARJETA PRINCIPAL ---- */
.servicio-card-catalogo {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    padding: 24px 24px 28px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Línea decorativa superior al hacer hover */
.servicio-card-catalogo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio-card-catalogo:hover::before {
    opacity: 1;
}

.servicio-card-catalogo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 139, 153, 0.2);
}

/* ---- CONTENEDOR DE PORTADA (CON OVERLAY) ---- */
.portada-container {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
    background: var(--gray-light);
    position: relative;
    flex-shrink: 0;
}

.portada-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.servicio-card-catalogo:hover .portada-container img {
    transform: scale(1.08);
}

/* Overlay de sombra en la imagen para dar profundidad */
.portada-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.1), transparent);
    pointer-events: none;
}

/* Badge de tipo (Servicio / Cirugía) sobre la imagen */
.portada-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

/* Imagen por defecto si no hay portada */
.portada-container .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-medium);
    font-size: 14px;
    background: var(--light);
    flex-direction: column;
    gap: 8px;
}

.portada-container .no-image i {
    font-size: 32px;
    color: var(--gray-light);
}

/* ---- ICONO (más integrado) ---- */
.servicio-card-catalogo .icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(0, 139, 153, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.servicio-card-catalogo:hover .icon-wrapper {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

/* ---- TEXTO ---- */
.servicio-card-catalogo h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
    line-height: 1.2;
}

.servicio-card-catalogo .precio {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 6px 0 10px;
    display: inline-block;
}

.servicio-card-catalogo .precio span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 4px;
}

.servicio-card-catalogo .descripcion {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 18px;
}