/* ==========================================================================
   König Beauty Tech SPA - Hoja de Estilos Principal (style.css)
   Diseno: Elegante, Limpio, Clínico y Premium
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES (:root)
   ========================================================================== */
:root {
  --navy: #0B2A5B;      /* Títulos, botones principales, contacto */
  --teal: #0F86A8;      /* Acentos, subtítulos, hover */
  --ice: #EAF4FA;       /* Fondos suaves */
  --white: #FFFFFF;
  --silver: #B8C4CF;    /* Detalles */
  --whatsapp: #25D366;  /* Solo botones de WhatsApp */
  --navy-dark: #071C3F; /* Footer */

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-cursive: 'Dancing Script', cursive;

  --shadow-soft: 0 8px 24px rgba(11, 42, 91, 0.07);
  --shadow-card: 0 14px 38px rgba(11, 42, 91, 0.12);
  --shadow-modal: 0 24px 60px rgba(7, 28, 63, 0.35);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-card: 22px;
  --radius-modal: 22px;
  --radius-pill: 999px;

  --navbar-height: 74px;
}

@media (max-width: 820px) {
  :root {
    --navbar-height: 62px;
  }
}

/* ==========================================================================
   2. RESET & ESTILOS BASE
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: #1E293B;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

@media (max-width: 580px) {
  .container {
    padding: 0 16px;
  }
}

p {
  max-width: 70ch;
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   3. BOTONES (PILL SHAPE & TRANSITIONS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Principal: Fondo azul marino, texto blanco -> pasa a turquesa */
.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

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

/* Secundario: Borde azul marino -> en hover se rellena */
.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

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

/* WhatsApp: Verde exclusivo */
.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  border-color: #1ebe57;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   4. MENÚ SUPERIOR FIJO (NAVBAR)
   ========================================================================== */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ice);
  z-index: 1000;
  transition: height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 42, 91, 0.08);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 580px) {
  .navbar-container {
    padding: 0 16px;
  }
}

.navbar-logo-link {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 44px;
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: height 0.2s ease;
}

@media (max-width: 820px) {
  .navbar-logo-img {
    height: 36px;
  }
}

/* Desktop Navigation */
.navbar-links {
  display: none; /* Mobile first */
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

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

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-wa-header {
  background-color: var(--whatsapp);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  min-height: 38px;
}

.btn-wa-header:hover {
  background-color: #1ebe57;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .btn-wa-header {
    padding: 7px 12px;
    font-size: 0.8rem;
    gap: 5px;
  }
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.35rem;
  color: var(--navy);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 6px;
  transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: var(--ice);
}

/* Mobile Drawer Flotante con Backdrop */
.mobile-nav-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 42, 91, 0.08);
  box-shadow: 0 16px 36px rgba(11, 42, 91, 0.14);
  padding: 16px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 6px;
  border-bottom: 1px dashed var(--ice);
  display: block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: var(--teal);
  transform: translateX(4px);
}

.btn-wa-mobile {
  background-color: var(--whatsapp);
  color: var(--white);
  padding: 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   5. SECCIÓN 1 - INICIO
   ========================================================================== */
.section-inicio {
  min-height: calc(100vh - var(--navbar-height));
  padding-top: calc(var(--navbar-height) + 32px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EAF4FA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  width: 100%;
}

.hero-logo {
  height: 105px;
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-bottom: 20px;
}

@media (max-width: 580px) {
  .hero-logo {
    height: 82px;
    margin-bottom: 16px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  font-size: clamp(0.72rem, 2.5vw, 0.82rem);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 134, 168, 0.25);
  margin-bottom: 20px;
  max-width: 100%;
  text-align: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5.8vw, 3.8rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-description {
  font-size: clamp(0.92rem, 2.8vw, 1.05rem);
  color: #475569;
  max-width: 620px;
  margin: 0 auto 20px auto;
  text-align: center;
  line-height: 1.6;
}

.hero-cursive-quote {
  font-family: var(--font-cursive);
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  color: var(--teal);
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 520px) {
  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Grid de 3 Pilares - Responsivo Perfecto */
.hero-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    gap: 20px;
  }
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.45;
  max-width: 220px;
}

/* ==========================================================================
   6. SECCIÓN 2 - CATÁLOGO
   ========================================================================== */
.section-catalogo {
  position: relative;
  padding: 80px 0;
  background-image: url('assets/fondo-catalogo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 600px) {
  .section-catalogo {
    padding: 50px 0;
  }
}

/* Capa blanca semitransparente encima (rgba(255,255,255,.72)) */
.section-catalogo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.76);
  z-index: 1;
}

.catalogo-container {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--teal);
  font-weight: 500;
}

.divider-line {
  width: 50px;
  height: 3px;
  background-color: var(--teal);
  border-radius: 2px;
  margin-top: 16px;
}

/* Franja de Confianza y Calidad Médica */
.catalog-trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  background: var(--ice);
  border: 1px solid rgba(15, 134, 168, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 32px;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(11, 42, 91, 0.08);
  flex-shrink: 0;
}

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

.trust-text strong {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
}

.trust-text span {
  font-size: 0.8rem;
  color: #475569;
}

/* Filtros por Categoría de Tecnología */
.catalog-filters-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

@media (max-width: 640px) {
  .catalog-filters-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 16px 14px 16px;
    margin: 0 -16px 28px -16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .catalog-filters-bar::-webkit-scrollbar {
    display: none;
  }
}

.filter-tab-btn {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid #CBD5E1;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.filter-tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(11, 42, 91, 0.2);
}

/* Grilla de Productos - Responsiva Sin Desbordamiento */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

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

/* Tarjeta de Producto */
.product-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid rgba(11, 42, 91, 0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(11, 42, 91, 0.18);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F8FAFC;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-guarantee-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card-guarantee-badge i {
  color: var(--teal);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.card-highlights-list {
  list-style: none;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-highlights-list li {
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.35;
}

.card-highlights-list li i {
  color: var(--teal);
  margin-top: 3px;
  font-size: 0.75rem;
}

.card-price-box {
  background: var(--ice);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  border-left: 3px solid var(--teal);
}

.card-price-original {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: 2px;
}

.card-price-original s {
  text-decoration: line-through;
}

.card-price-amount {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-discount-tag {
  font-size: 0.68rem;
  background: #E0F2FE;
  color: var(--teal);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.card-price-sub {
  font-size: 0.74rem;
  color: #64748B;
  display: block;
  margin-top: 2px;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   7. MODAL DE PRODUCTO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 42, 91, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

@media (max-width: 600px) {
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-modal);
  max-width: 1040px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

@media (max-width: 600px) {
  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 94vh;
  }
}

.modal-backdrop.open .modal-content {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--ice);
  color: var(--navy);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.modal-body {
  padding: 32px;
}

@media (max-width: 600px) {
  .modal-body {
    padding: 24px 16px 32px 16px;
  }
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 columna */
  gap: 32px;
}

.modal-gallery {
  background: var(--ice);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
}

.modal-main-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbnails-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.modal-thumb-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.modal-thumb-btn.active {
  border-color: var(--teal);
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-panel {
  display: flex;
  flex-direction: column;
}

.modal-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 14px;
}

/* Modal Pricing Box */
.modal-pricing-card {
  background: linear-gradient(135deg, rgba(11, 42, 91, 0.04), rgba(15, 134, 168, 0.08));
  border: 1.5px solid rgba(15, 134, 168, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.modal-price-original {
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 4px;
}

.modal-price-original s {
  color: #94A3B8;
  font-weight: 600;
  text-decoration: line-through;
}

.modal-price-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-price-badge-tag {
  background: var(--teal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modal-price-included {
  font-size: 0.84rem;
  color: #334155;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.modal-cert-pill {
  background: var(--white);
  border: 1px solid #CBD5E1;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-cert-pill i {
  color: var(--teal);
}

.modal-shipping-pill {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-desc-box {
  font-size: 0.92rem;
  color: #334155;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-desc-box p {
  margin-bottom: 10px;
}

.modal-tech-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-tech-list li {
  font-size: 0.88rem;
  background: var(--ice);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
}

/* Manípulos Box */
.modal-handles-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.handle-item-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.handle-item-card h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.handle-item-card p {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* Tablas Clínicas y de Especificaciones */
.modal-table-wrapper {
  overflow-x: auto;
  margin: 10px 0 16px 0;
  border-radius: var(--radius-sm);
  border: 1px solid #E2E8F0;
}

.modal-clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.modal-clean-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.modal-clean-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #E2E8F0;
  color: #334155;
}

.modal-clean-table tr:nth-child(even) td {
  background-color: #F8FAFC;
}

.modal-clean-table tr:last-child td {
  border-bottom: none;
}

.modal-clean-table td strong {
  color: var(--navy);
}

.modal-section-block {
  margin-bottom: 22px;
}

.modal-section-block h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-block h4 i {
  color: var(--teal);
}

.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  list-style: none;
}

.modal-features-grid li {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.modal-features-grid li i {
  color: var(--teal);
  margin-top: 3px;
  flex-shrink: 0;
}

.modal-detail-text {
  font-size: 0.88rem;
  color: #475569;
  background: var(--ice);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 3px solid var(--navy);
  line-height: 1.5;
}

.modal-apps-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-badge {
  background: var(--ice);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 134, 168, 0.15);
}

.modal-recommendation {
  background: rgba(15, 134, 168, 0.08);
  border: 1px solid rgba(15, 134, 168, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.45;
}

/* ==========================================================================
   8. SECCIÓN 3 - CONTACTO
   ========================================================================== */
.section-contacto {
  padding: 100px 0;
  background-color: var(--navy);
  color: var(--white);
}

.section-contacto .section-title {
  color: var(--white);
}

.contacto-phrase {
  font-family: var(--font-cursive);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--ice);
  margin-top: 6px;
}

.contacto-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contacto-channels-card h3, .contacto-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}

.contacto-channels-card p, .contacto-form-card p {
  font-size: 0.95rem;
  color: var(--silver);
  margin-bottom: 24px;
}

.channels-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Botones grandes blancos con texto azul marino -> pasa a turquesa */
.channel-btn {
  display: flex;
  align-items: center;
  background: var(--white);
  color: var(--navy);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.channel-btn:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateX(6px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 42, 91, 0.08);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-right: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.channel-btn:hover .channel-icon {
  background: var(--white);
  color: var(--teal);
}

.channel-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.channel-sub {
  font-size: 0.82rem;
  opacity: 0.8;
}

.channel-arrow {
  font-size: 1rem;
}

/* Formulario Centrado de 480px máximo */
.contacto-form-card {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper.align-top {
  align-items: flex-start;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  color: var(--silver);
  font-size: 0.95rem;
}

.input-wrapper.align-top i {
  top: 14px;
}

.input-wrapper input, .input-wrapper textarea {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-md); /* 14px */
  font-family: var(--font-body);
  font-size: 16px; /* 16px previene el molesto auto-zoom en iOS Safari */
  color: #0F172A;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-wrapper input:focus, .input-wrapper textarea:focus {
  border-color: var(--teal);
}

.contact-form .btn-whatsapp {
  background-color: var(--teal); /* Botón turquesa para enviar formulario */
  border-color: var(--teal);
}

.contact-form .btn-whatsapp:hover {
  background-color: #0b6b87;
  border-color: #0b6b87;
}

/* ==========================================================================
   9. FOOTER (#071C3F)
   ========================================================================== */
.footer {
  background-color: var(--navy-dark);
  color: var(--silver);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-logo {
  height: 75px;
  max-width: 280px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 12px auto;
  display: block;
  background: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.footer-subtitle {
  font-size: 0.85rem;
  color: var(--silver);
}

.cursive-footer {
  font-family: var(--font-cursive);
  font-size: 1.8rem;
  color: var(--ice);
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.footer-socials a:hover {
  background: var(--teal);
}

.footer-copy {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  font-size: 0.78rem;
  color: var(--silver);
}

/* ==========================================================================
   10. BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(18px + env(safe-area-inset-right, 0px));
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s ease;
}

@media (max-width: 600px) {
  .floating-wa-tooltip {
    display: none; /* En móvil se oculta el tooltip para no tapar contenido */
  }
}

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

.floating-wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ==========================================================================
   11. MEDIA QUERIES (DESKTOP @ 820px) & ACCESIBILIDAD
   ========================================================================== */
@media (min-width: 820px) {
  .navbar-links {
    display: flex;
  }

  .hamburger-btn {
    display: none;
  }

  .mobile-nav-drawer {
    display: none !important;
  }

  .hero-pillars-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
  }

  .modal-grid {
    grid-template-columns: 1fr 1fr; /* 2 columnas en modal desktop */
  }

  .modal-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacto-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
