/* 
   HumanyTic - CSS Principal (Diseño Visual Premium)
   Hecho con CSS Vanilla y variables HSL/HEX.
   Fuentes: Playfair Display (Serif) y Outfit (Sans-Serif).
*/

:root {
  /* Paleta de Colores de Marca */
  --primary-navy: #112444;
  --secondary-gold: #CD8F3B;
  --gold-light: #D99740;
  --gold-dark: #BB7C2C;
  --bg-cream: #FCF4EF;
  --bg-white: #ffffff;
  
  /* Gradientes */
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);
  --navy-gradient: linear-gradient(135deg, #1e355c 0%, var(--primary-navy) 100%);
  --cream-gradient: linear-gradient(180deg, var(--bg-cream) 0%, #ffffff 100%);

  /* Neutros */
  --text-dark: #112444;
  --text-muted: #4e5e78;
  --text-light: #f7fafc;
  --border-light: rgba(205, 143, 59, 0.15);
  --border-solid: #e2e8f0;

  /* Tipografías */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Efectos y Animaciones */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --shadow-sm: 0 4px 6px -1px rgba(17, 36, 68, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(17, 36, 68, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(17, 36, 68, 0.1), 0 10px 10px -5px rgba(17, 36, 68, 0.04);
  --shadow-premium: 0 30px 60px -15px rgba(17, 36, 68, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--primary-navy);
  font-weight: 700;
}

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

ul {
  list-style: none;
}

/* Grid & Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(205, 143, 59, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 143, 59, 0.4);
}

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

.btn-outline:hover {
  background: rgba(17, 36, 68, 0.05);
  transform: translateY(-2px);
}

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

/* --- HEADER / ENCABEZADO --- */
.header-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.main-header {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.header-wrapper.scrolled .main-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-wrapper.scrolled .main-header .header-container {
  padding: 4px 24px;
}

.header-wrapper.scrolled .brand-logo {
  height: 48px;
}

.header-wrapper.scrolled .top-utility-bar {
  padding: 6px 0; /* Encoge el alto de la barra superior al hacer scroll */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 6px 24px;
  transition: var(--transition-smooth);
}

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

.brand-logo {
  height: 108px; /* Ajustado al 75% del tamaño previo (144px * 0.75) */
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

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

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

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

.header-cta-btn {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(17, 36, 68, 0.15);
}

.header-cta-btn:hover {
  background: var(--gold-gradient);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(205, 143, 59, 0.3);
  transform: translateY(-1px);
}

/* Botón menú hamburguesa */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-toggle .bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--primary-navy);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  padding: 100px 0 100px 0; /* Ajustado el padding superior ya que no está inmediatamente debajo del header fijo */
  background-color: var(--bg-cream);
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-gradients {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
}

.sphere-1 {
  width: 400px;
  height: 400px;
  background-color: rgba(205, 143, 59, 0.15);
  top: -100px;
  right: -50px;
}

.sphere-2 {
  width: 500px;
  height: 500px;
  background-color: rgba(17, 36, 68, 0.08);
  bottom: -150px;
  left: -100px;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(205, 143, 59, 0.1);
  color: var(--secondary-gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(205, 143, 59, 0.2);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--primary-navy);
}

.hero-title span {
  color: var(--secondary-gold);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Marco de imagen premium de presentación en Hero */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.premium-image-frame {
  position: relative;
  width: 100%;
  max-width: 485px;
  border-radius: 12px;
  background-color: var(--bg-white);
  padding: 16px; /* Efecto mat/passepartout */
  box-shadow: 
    0 15px 35px rgba(17, 36, 68, 0.12),
    0 5px 15px rgba(0, 0, 0, 0.06),
    inset 0 0 2px rgba(255, 255, 255, 0.8);
  border: 4px solid;
  border-image: var(--gold-gradient) 1; /* Marco dorado metálico */
  aspect-ratio: 3 / 2;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); /* Perspectiva inicial en 3D */
}

/* Contenedor interno para recortar la imagen en zoom */
.image-container-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(17, 36, 68, 0.08); /* Sutil contorno interno */
}

.hero-presentation-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.frame-decoration-border {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  transition: var(--transition-smooth);
}

/* Efectos al pasar el cursor (Hover animado y dinámico) */
.premium-image-frame:hover {
  transform: perspective(1000px) rotateY(2deg) rotateX(-1deg) translateY(-8px); /* Rotación inversa y elevación */
  box-shadow: 
    0 25px 50px rgba(17, 36, 68, 0.2),
    0 8px 25px rgba(205, 143, 59, 0.15);
  border-image: linear-gradient(135deg, #e5c583 0%, #c5a55a 50%, #e5c583 100%) 1; /* Destello en el metal */
}

.premium-image-frame:hover .hero-presentation-img {
  transform: scale(1.06); /* Zoom fluido de la foto */
}

.premium-image-frame:hover .frame-decoration-border {
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(0.97); /* Contracción decorativa */
}

/* --- SECCIÓN FILOSOFÍA (PILARES) --- */
.philosophy-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

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

.section-tag {
  color: var(--secondary-gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

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

.pillar-card {
  padding: 36px 28px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-8px);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

/* Pilar 1 y 3 (Impar): Azul Navy de fondo en estado normal */
.pillar-card:nth-child(odd) {
  background-color: var(--primary-navy);
  border-color: rgba(255, 255, 255, 0.08);
}
.pillar-card:nth-child(odd) .pillar-title {
  color: var(--bg-white);
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.pillar-card:nth-child(odd) .pillar-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.6;
}
.pillar-card:nth-child(odd) .pillar-icon-wrapper {
  background-color: var(--bg-cream);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}
.pillar-card:nth-child(odd) .pillar-icon {
  width: 24px;
  height: 24px;
  fill: var(--secondary-gold);
  transition: var(--transition-smooth);
}

/* Pilar 2 y 4 (Par): Dorado Metálico de fondo en estado normal */
.pillar-card:nth-child(even) {
  background: var(--gold-gradient);
  border-color: rgba(17, 36, 68, 0.15);
  box-shadow: 0 4px 15px rgba(205, 143, 59, 0.12);
}
.pillar-card:nth-child(even) .pillar-title {
  color: var(--primary-navy);
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
.pillar-card:nth-child(even) .pillar-desc {
  color: rgba(17, 36, 68, 0.9); /* Contraste óptimo de texto sobre fondo dorado */
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
}
.pillar-card:nth-child(even) .pillar-icon-wrapper {
  background-color: var(--bg-cream);
  border: 1px solid rgba(17, 36, 68, 0.15);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}
.pillar-card:nth-child(even) .pillar-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-navy);
  transition: var(--transition-smooth);
}

/* Hover de TODAS las tarjetas: Cambia a Blanco Hueso (manual de marca) */
.pillar-card:hover {
  background: var(--bg-cream) !important; /* Fuerza color blanco hueso en hover */
  border-color: rgba(205, 143, 59, 0.35) !important;
  box-shadow: var(--shadow-lg) !important;
  background-image: none !important; /* Desactiva el degradado dorado en hover */
}
.pillar-card:hover .pillar-title {
  color: var(--primary-navy) !important;
}
.pillar-card:hover .pillar-desc {
  color: var(--text-dark) !important;
  font-weight: 400 !important;
}
.pillar-card:hover .pillar-icon-wrapper {
  background: var(--gold-gradient) !important;
  border-color: transparent !important;
}
.pillar-card:hover .pillar-icon {
  fill: var(--bg-white) !important;
}

/* --- SECCIÓN PLATAFORMA (SIMULADOR INTERACTIVO) --- */
.platform-section {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.platform-info .section-tag {
  text-align: left;
}

.platform-info .section-title {
  margin-bottom: 20px;
}

.platform-info .section-desc {
  font-size: 1.05rem;
  margin-bottom: 28px;
}

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

.features-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Tarjeta del Simulador */
.interactive-simulator-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-solid);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.simulator-tabs {
  display: flex;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-solid);
}

.sim-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: #64748b;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
}

.sim-tab-btn:hover {
  color: var(--primary-navy);
  background-color: rgba(17, 36, 68, 0.02);
}

.sim-tab-btn.active {
  color: var(--primary-navy);
  border-bottom-color: var(--secondary-gold);
  background-color: var(--bg-white);
}

.simulator-content-wrapper {
  padding: 24px;
  min-height: 250px;
}

.simulator-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.simulator-tab-content.active {
  display: block;
}

.sim-info-text {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 20px;
}

/* Estilos Pestaña 1: Valoración */
.cargo-eval-row {
  background-color: #f8fafc;
  border: 1px solid var(--border-solid);
  border-radius: var(--border-radius-md);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.cargo-name {
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.95rem;
}

.factor-sliders {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.factor-sliders label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  justify-content: space-between;
}

.factor-sliders .val-num {
  color: var(--secondary-gold);
}

.custom-progress {
  width: 100%;
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cargo-total-points {
  font-size: 0.85rem;
  color: #64748b;
  text-align: right;
}

.cargo-total-points strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-navy);
}

/* Estilos Pestaña 2: Tabla de Equidad */
.equity-table-wrapper {
  overflow-x: auto;
}

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

.equity-table th {
  padding: 10px 14px;
  background-color: #f1f5f9;
  color: var(--primary-navy);
  font-weight: 600;
  border-bottom: 1px solid var(--border-solid);
}

.equity-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-solid);
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-badge.subpagado {
  background-color: #fee2e2;
  color: #ef4444;
}

.status-badge.equitativo {
  background-color: #d1fae5;
  color: #10b981;
}

.status-badge.sobrepagado {
  background-color: #fef3c7;
  color: #d97706;
}

/* Estilos Pestaña 3: Escala Salarial */
.escala-output {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.regression-formula {
  background: var(--navy-gradient);
  color: var(--bg-white);
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.regression-formula span {
  font-weight: 500;
  opacity: 0.9;
}

.regression-formula code {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-gold);
}

.scale-bands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.band-item {
  border: 1px solid var(--border-solid);
  background-color: #f8fafc;
  border-radius: var(--border-radius-md);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.band-item:hover {
  border-color: var(--secondary-gold);
  transform: translateX(4px);
}

.band-level {
  font-weight: 600;
  color: var(--primary-navy);
}

.band-range {
  font-weight: 700;
  color: var(--secondary-gold);
}

/* --- SECCIÓN BENEFICIOS --- */
.benefits-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 24px;
  border: 1px solid var(--border-solid);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  border-color: var(--secondary-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.benefit-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.benefit-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- SECCIÓN CONTACTO --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-info .section-tag {
  text-align: left;
}

.contact-text {
  font-size: 1.1rem;
  margin: 16px 0 32px 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-item {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-navy);
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-form-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-solid);
  box-shadow: var(--shadow-lg);
}

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

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

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1px solid var(--border-solid);
  border-radius: var(--border-radius-md);
  background-color: #f8fafc;
  transition: var(--transition-smooth);
  color: var(--text-dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-gold);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(205, 143, 59, 0.1);
}

.form-policy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-policy input {
  margin-top: 4px;
  width: auto;
}

.form-policy label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- PIE DE PÁGINA / FOOTER --- */
.main-footer {
  background-color: var(--primary-navy);
  color: var(--bg-white);
  padding: 70px 0 0 0;
  border-top: 4px solid var(--secondary-gold);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 64px;
  padding-bottom: 50px;
}

.footer-logo {
  height: 42px;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 360px;
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-gold);
  transform: translateX(4px);
}

.footer-info-text {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-white);
}

.footer-socials a:hover {
  background-color: var(--secondary-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-bottom-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- ANIMACIONES --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */

/* Pantallas grandes y medianas (Escritorio / Laptop) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  .pillars-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets (iPad, etc.) */
@media (max-width: 992px) {
  .brand-logo {
    height: 54px; /* Altura responsiva en tablets (72px * 0.75) */
  }

  .main-header.scrolled .brand-logo {
    height: 40px; /* (54px * 0.75) */
  }

  .hamburger-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: -10px 0 30px rgba(17, 36, 68, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.15rem;
    display: block;
    width: 100%;
  }

  .header-cta-btn {
    width: 100%;
    text-align: center;
  }

  /* Animaciones hamburguesa */
  .hamburger-toggle.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .hamburger-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger-toggle.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Hero & Content Layout */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
    padding-top: 40px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1; /* Muestra el mockup antes del texto en tablet/móvil para impacto visual */
  }

  .platform-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Teléfonos móviles */
@media (max-width: 600px) {
  .brand-logo {
    height: 45px; /* Altura responsiva en móviles (60px * 0.75) */
  }

  .main-header.scrolled .brand-logo {
    height: 36px; /* (48px * 0.75) */
  }

  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .pillars-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .cargo-eval-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .cargo-total-points {
    text-align: center;
  }

  .form-group-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- BANNER DIVISOR --- */
.banner-divider-section {
  width: 100%;
  height: 440px; /* Aumentado un 15% (de 380px a 440px) */
  position: relative;
  overflow: hidden;
}

.banner-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-divider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* No oscurecer la imagen del banner */
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Alinear a la derecha en escritorio */
  color: var(--bg-white);
  padding: 0 8% 0 0; /* Espaciado en la derecha */
}

.banner-floating-card {
  background-color: rgba(17, 36, 68, 0.82); /* Tarjeta flotante azul navy con alta transparencia */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(205, 143, 59, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  max-width: 520px; /* Más vertical y compacta para el lateral derecho */
  box-shadow: var(--shadow-premium);
  text-align: left; /* Alineado a la izquierda */
  animation: fadeIn 0.8s ease-out forwards;
}

.banner-overlay-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--bg-white);
  line-height: 1.3;
}

.banner-overlay-text {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.65;
}

/* --- SECCIÓN BLOG --- */
.blog-section {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-solid);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(205, 143, 59, 0.25);
}

.blog-img-placeholder {
  height: 180px;
  background-color: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-solid);
}

.blog-icon {
  font-size: 3rem;
}

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

.blog-card-date {
  font-size: 0.75rem;
  color: var(--secondary-gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-title a {
  color: var(--primary-navy);
}

.blog-card-title a:hover {
  color: var(--secondary-gold);
}

.blog-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  font-size: 0.88rem;
  color: var(--primary-navy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover {
  color: var(--secondary-gold);
}

/* --- SECCIÓN INVESTIGACIONES --- */
.research-section {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.research-item {
  background: var(--bg-white);
  border: 1px solid var(--border-solid);
  border-radius: var(--border-radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.research-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(205, 143, 59, 0.25);
}

.research-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  min-width: 100px;
}

.research-doc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bg-white);
  background: var(--primary-navy);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  text-align: center;
}

.research-doc-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.research-info {
  flex: 1;
}

.research-item-title {
  font-size: 1.2rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.research-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.research-download-btn {
  flex-shrink: 0;
  font-size: 0.88rem;
  padding: 10px 20px;
}

/* --- HEADER CTA PERSONALIZADO --- */
.header-cta-btn.flex-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-white) !important;
  border: 1.5px solid var(--primary-navy);
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.header-cta-btn.flex-cta:hover {
  background-color: var(--bg-cream) !important;
  border-color: var(--secondary-gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-btn-icon {
  height: 18px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cta-text-navy {
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.85rem;
}

.cta-text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 0.85rem;
}

/* --- OVERRIDES RESPONSIVOS ADICIONALES --- */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .banner-divider-section {
    height: 370px; /* Aumentado 15% responsivo (de 320px a 370px) */
  }
  .banner-overlay-title {
    font-size: 1.8rem;
  }
  .banner-overlay-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .research-item {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  .research-meta {
    align-items: center;
  }
  .research-download-btn {
    width: 100%;
  }
  .banner-divider-section {
    height: 320px; /* Aumentado 15% responsivo (de 280px a 320px) */
  }
  .banner-floating-card {
    padding: 24px 18px;
    margin: 0 12px;
  }
  .banner-overlay-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .banner-overlay-text {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}


/* --- TOP UTILITY BAR (Ecosistema de Plataformas) --- */
.top-utility-bar {
  background-color: var(--primary-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0; /* Altura ampliada (de 8px a 12px) */
  width: 100%;
  transition: var(--transition-smooth);
}

.utility-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.utility-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.utility-platforms {
  display: flex;
  gap: 14px;
  align-items: center;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px; /* Ajuste para parecer botones estructurados */
  border-radius: 20px;
  font-family: var(--font-title); /* Tipografía serif close to logo */
  font-size: 0.88rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.platform-pill.active {
  background-color: var(--bg-white) !important;
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.platform-pill.active .pill-text-navy {
  color: var(--primary-navy);
  font-weight: 700;
}

.platform-pill.active .pill-text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.platform-pill .pill-text-navy {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition-smooth);
}

.platform-pill .pill-text-gold {
  color: var(--secondary-gold);
  transition: var(--transition-smooth);
}

.platform-pill.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.02);
}

.platform-pill.disabled:hover {
  opacity: 0.75;
}

.platform-pill.disabled .pill-text-navy {
  color: rgba(255, 255, 255, 0.5);
}

.platform-pill.disabled .pill-text-gold {
  color: rgba(205, 143, 59, 0.5);
}

.top-utility-bar .coming-soon-badge {
  font-size: 0.5rem;
  font-weight: 700;
  background-color: var(--secondary-gold);
  color: var(--primary-navy);
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 6px;
}

/* --- ESTILOS PLATAFORMAS EN MENÚ MÓVIL --- */
.mobile-platforms-section {
  display: none;
  width: 100%;
  margin-top: 32px;
  border-top: 1px solid var(--border-solid);
  padding-top: 24px;
}

.mobile-platforms-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.mobile-platform-pill {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-title); /* Tipografía serif close to logo */
  font-size: 0.95rem;
  color: var(--text-dark);
  border: 1px solid var(--border-solid);
  background-color: #f8fafc;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

.mobile-platform-pill.active {
  border-color: var(--secondary-gold);
  background-color: rgba(205, 143, 59, 0.05);
}

.mobile-platform-pill.active .pill-text-navy {
  color: var(--primary-navy);
  font-weight: 700;
}

.mobile-platform-pill.active .pill-text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.mobile-platform-pill .pill-text-navy {
  color: var(--text-muted);
}

.mobile-platform-pill .pill-text-gold {
  color: #c5a55a;
}

.mobile-platform-pill.disabled {
  opacity: 0.6;
  justify-content: space-between;
}

.mobile-platform-pill.disabled .pill-text-navy {
  color: #94a3b8;
}

.mobile-platform-pill.disabled .pill-text-gold {
  color: #cbd5e1;
}

.mobile-platform-pill .coming-soon-badge {
  font-size: 0.55rem;
  font-weight: 700;
  background-color: var(--secondary-gold);
  color: var(--primary-navy);
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .top-utility-bar {
    display: none; /* Se oculta de la barra superior en tablets/móviles */
  }
  
  .mobile-platforms-section {
    display: block; /* Se muestra dentro del cajón de navegación hamburguesa */
  }
}

/* --- DIVISORES DORADOS METÁLICOS --- */
.section-divider {
  border: none;
  height: 2px;
  margin: 60px auto;
  pointer-events: none;
}

/* 1. Divisor de ancho completo con desvanecimiento radial */
.divider-full {
  width: 100%;
  background: radial-gradient(circle, rgba(205, 143, 59, 0.45) 0%, rgba(205, 143, 59, 0) 75%);
  height: 2px;
  margin: 50px auto;
}

/* 2. Divisor centrado corto y sólido (dorado metálico) */
.divider-centered {
  width: 140px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(205, 143, 59, 0.2);
}

/* 3. Divisor alineado a la izquierda con desvanecimiento hacia la derecha */
.divider-left {
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-gold) 0%, rgba(205, 143, 59, 0) 100%);
  margin-left: 0 !important;
}

/* 4. Divisor alineado a la derecha con desvanecimiento hacia la izquierda */
.divider-right {
  width: 220px;
  height: 2px;
  background: linear-gradient(270deg, var(--secondary-gold) 0%, rgba(205, 143, 59, 0) 100%);
  margin-right: 0 !important;
}

/* --- INTERFAZ DE BLOG DINÁMICO Y COMENTARIOS --- */

/* Estilos de Botón Colaborar en Blog */
.blog-header-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

/* Estilos de Contenedor de Portada de Imagen Real */
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Modales y Superposiciones del Blog */
.blog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(17, 36, 68, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.blog-modal-wrapper {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--secondary-gold);
  animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.blog-modal-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-white);
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.blog-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-modal-close:hover {
  color: #ef4444;
}

.blog-modal-body {
  padding: 30px;
}

/* Tipos de Contenidos Inserciones / Embeds */
.embed-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  overflow: hidden;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  background-color: #000;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dashboard-embed-container {
  width: 100%;
  height: 500px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.dashboard-embed-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.infographic-container {
  width: 100%;
  margin-bottom: 24px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.infographic-container img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
  display: block;
}

/* Secciones internas del Post */
.post-section {
  margin-bottom: 28px;
}

.post-section-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 10px;
  border-bottom: 1.5px solid var(--secondary-gold);
  display: inline-block;
  padding-bottom: 2px;
}

.post-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.post-references-box {
  background-color: var(--bg-cream);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border-left: 3px solid var(--secondary-gold);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 30px;
}

/* Sección de Comentarios e Interacción */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.comments-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.comment-card {
  background-color: var(--bg-cream);
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.comment-card:hover {
  box-shadow: var(--shadow-sm);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-navy);
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-rating {
  color: var(--secondary-gold);
  font-size: 1rem;
  margin-bottom: 8px;
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dark);
}

/* Formulario de Calificación y Comentarios */
.comment-form-box {
  background-color: var(--bg-gray);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-light);
}

/* Calificación por Estrellas Reactiva */
.star-rating-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.star-rating-wrapper span {
  font-size: 0.9rem;
  font-weight: 500;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--secondary-gold);
}

/* Modales Pequeños (Enlace Mágico, Alertas) */
.small-modal {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 4px solid var(--secondary-gold);
  animation: modalScaleUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.small-modal h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.small-modal p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Animaciones */
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

