/* Sección Hero - Rediseño Completo UI/UX Optimizado */
.hero {
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl) 0;
  /* Agregado padding-top para compensar el header fijo */
}

/* Patrón de textura sutil */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

/* Mejor distribución de los beneficios */
.hero__benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

@media screen and (max-width: 767px) {
  .hero__benefits {
    grid-template-columns: 1fr;
  }
}

/* Mejora en los botones CTA */
.hero__cta {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media screen and (max-width: 1023px) {
  .hero__cta {
    justify-content: center;
  }
}

@media screen and (max-width: 767px) {
  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
}

.hero__content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr; /* Mejor proporción para el contenido */
  gap: var(--spacing-5xl); /* Mayor separación */
  align-items: center;
  min-height: calc(100vh - 160px);
  max-width: 1400px; /* Límite máximo para pantallas muy grandes */
  margin: 0 auto;
}

/* Mejor distribución vertical del contenido de texto */
.hero__text {
  color: var(--white);
  animation: slideInLeft 0.8s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--spacing-lg); /* Separación del contenido multimedia */
}

.hero__title {
  font-family: var(--font-primary);
  font-size: var(--font-size-5xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero__title-highlight {
  color: #E91E63;
  display: block;
  font-size: var(--font-size-6xl);
  margin-bottom: var(--spacing-sm);
}

.hero__title-accent {
  color: var(--white);
  position: relative;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-light);
  border-radius: var(--border-radius-full);
}

.hero__description {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
  max-width: 90%;
}

/* Beneficios rediseñados */
.hero__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.hero__benefit {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-lg);
  font-weight: 500;
  opacity: 0.95;
}

.hero__benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__benefit-icon::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

/* Botones CTA mejorados */
.hero__cta {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero__cta .btn {
  padding: var(--spacing-md) var(--spacing-2xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  text-align: center;
}

.hero__cta .btn--primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.hero__cta .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: var(--gray-50);
}

.hero__cta .btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero__cta .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Garantía */
.hero__guarantee {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin-top: var(--spacing-lg);
}

.hero__guarantee-icon {
  width: 20px;
  height: 20px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__guarantee-icon::before {
  content: '🛡️';
  font-size: 12px;
}

/* Sección de medios mejorada */
.hero__media {
  position: relative;
  animation: slideInRight 0.8s ease-out;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
  justify-content: center;
}

.hero__image-container {
  position: relative;
  border-radius: var(--border-radius-2xl);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: perspective(1000px) rotateY(-5deg); /* Efecto 3D sutil */
  transition: transform var(--transition-normal);
}

.hero__image-container:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* Video container - tamaño completo */
.hero__video-placeholder {
  width: 100%;
  height: 100%; /* Altura completa del contenedor */
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 400px; /* Altura mínima para escritorio */
  padding: auto;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

/* Video real - tamaño completo */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cubre todo el contenedor manteniendo proporción */
  border-radius: var(--border-radius-xl);
  display: block;
}

.hero__video-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
}

/* Thumbnail del video */
.video-thumbnail {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-xl);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
}

/* Botón de play centrado */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-play-btn i {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
  margin-left: 4px; /* Centrar visualmente el ícono de play */
}

/* Elementos flotantes decorativos */
.hero__floating-element {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.hero__floating-element:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero__floating-element:nth-child(2) {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.hero__floating-element:nth-child(3) {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 5%;
  animation-delay: 4s;
}

/* Animaciones */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design para Móvil
@media screen and (max-width: 1024px) {
  .hero {
    padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl) 0;
  }
  
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
    min-height: calc(100vh - 140px);
  }
  
  .hero__title {
    font-size: var(--font-size-4xl);
  }
  
  .hero__title-highlight {
    font-size: var(--font-size-5xl);
  }
}

@media screen and (max-width: 768px) {
  .hero {
    padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
  }
  
  .hero__content {
    min-height: calc(100vh - 120px);
  }
  
  .hero__title {
    font-size: var(--font-size-3xl);
  }
  
  .hero__title-highlight {
    font-size: var(--font-size-4xl);
  }
  
  .hero__description {
    font-size: var(--font-size-lg);
    max-width: 100%;
  }
  
  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero__cta .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media screen and (max-width: 480px) {
  .hero {
    padding: calc(70px + var(--spacing-md)) 0 var(--spacing-md) 0;
  }
  
  .hero__title {
    font-size: var(--font-size-2xl);
  }
  
  .hero__title-highlight {
    font-size: var(--font-size-3xl);
  }
  
  .hero__description {
    font-size: var(--font-size-base);
  }
  
  .hero__benefit {
    font-size: var(--font-size-base);
  }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .hero__text,
  .hero__media,
  .hero__floating-element,
  .hero__badge {
    animation: none;
  }
  
  .hero__cta .btn:hover,
  .hero__video-placeholder:hover {
    transform: none;
  }
}

.hero__video {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.hero__video-fallback {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

/* Optimización para dispositivos móviles */
@media (max-width: 768px) {
  .hero__video {
    max-height: 300px;
    object-fit: cover;
  }
}
/* Tablet Landscape (1024px - 1199px) */
@media screen and (max-width: 1199px) {
  .hero__content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-3xl);
  }
}

/* Tablet Portrait (768px - 1023px) */
@media screen and (max-width: 1023px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-4xl);
    text-align: center;
    min-height: calc(100vh - 140px);
  }
  
  .hero__text {
    padding-right: 0;
    order: 1;
  }
  
  .hero__media {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Mobile (menos de 768px) */
@media screen and (max-width: 767px) {
  .hero {
    padding: calc(70px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
  }
  
  .hero__content {
    gap: var(--spacing-2xl);
    min-height: calc(100vh - 120px);
  }
  
  .hero__media {
    max-width: 100%;
  }
  
  .hero__image-container { 
    transform: none; /* Remover efecto 3D en móvil */
  }
  
  .hero__video-placeholder {
    aspect-ratio: auto; /* Mejor proporción para móvil */
  }
}