/* Tarjeta Plan Cero */
.plan-cero-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  position: relative;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Icono gratis */
.plan-cero-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Título */
.plan-cero-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F52AA;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Información del perfil */
.plan-cero-perfil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  min-height: 40px;
}

.plan-cero-perfil-texto {
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
}

.plan-cero-indicador {
  font-size: 0.8rem;
}

/* Botón principal - UNIFICADO CON LOS PASOS */
.plan-cero-btn {
  display: inline-block;
  padding: 0.75rem 0.8rem;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #ffffff;
  border-radius: 36px;
  background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 1s ease !important;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  box-shadow: none !important;
}

.plan-cero-btn:hover {
  background: linear-gradient(135deg, #167BFF 0%, #167BFF 100%);
  box-shadow: none !important;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
}

.plan-cero-btn:active {
  box-shadow: none !important;
  border: 2px solid #ffffff;
  transform: translateY(0);
}

/* Estilos del modal */
.plan-cero-modal {
  display: none;
  position: fixed;
  z-index: 999999 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.plan-cero-modal-content {
  background-color: #fefefe;
  margin: 8% auto 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation-name: animatetop;
  animation-duration: 0.3s;
  position: relative;
  z-index: 1000000 !important;
}

@keyframes animatetop {
  from {top: -50px; opacity: 0}
  to {top: 0; opacity: 1}
}

.plan-cero-modal-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%);
  color: white;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-cero-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
  color: #ffffff !important;
}

.plan-cero-modal-title {
  color: #ffffff !important;
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
}

.plan-cero-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 1s ease !important;
}

.plan-cero-close:hover {
  color: #f1f1f1;
}

.plan-cero-modal-body {
  padding: 1.5rem;
}

/* CONTENEDOR DE VIDEO CORREGIDO - MISMAS CORRECCIONES APLICADAS */
.plan-cero-video-container {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* ESTILOS ESPECÍFICOS PARA EL ELEMENTO VIDEO - CORREGIDO */
.plan-cero-video-container video {
  border-radius: 0 !important;
  width: 100% !important;
  height: auto !important;
  display: none;
  background: #000;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  max-width: 100% !important;
}

/* Anular específicamente el estilo inline del max-width */
.plan-cero-video-container video[style] {
  max-width: 100% !important;
}

/* Loading container también corregido */
.plan-cero-video-container #planCeroVideoLoading {
  border-radius: 12px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f8f9fa;
  min-height: 300px;
  margin: 0;
}

.plan-cero-info h4 {
  color: #0F52AA;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.plan-cero-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.plan-cero-info li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.plan-cero-destacado {
  background: #e8f4fd;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #0F52AA;
  margin-bottom: 1rem;
}

.plan-cero-destacado p {
  margin: 0;
  color: #2c3e50;
  font-size: 0.95rem;
}

.plan-cero-beneficios {
  background: #d4edda;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #28a745;
}

.plan-cero-beneficios p {
  margin: 0 0 0.5rem 0;
  color: #155724;
  font-weight: 600;
}

.plan-cero-beneficios ul {
  margin: 0;
}

.plan-cero-beneficios li {
  color: #155724;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

/* Asegurar que los controles del video también se adapten */
.plan-cero-video-container video::-webkit-media-controls-enclosure {
  border-radius: 0 !important;
}

/* Para todos los navegadores */
.plan-cero-video-container video {
  border-radius: 0 !important;
  outline: none !important;
}

/* Ocultar controles nativos de descarga */
video::-internal-media-controls-download-button {
  display: none;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
  border-radius: 0 !important;
}

video::-webkit-media-controls-panel {
  width: calc(100% + 30px);
}

/* Estilos específicos para navegadores WebKit (Safari/Chrome) */
video::-webkit-media-controls {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .plan-cero-card {
    padding: 1rem;
    height: 240px;
  }
  
  .plan-cero-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    height: 40px;
  }
  
  .plan-cero-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .plan-cero-perfil {
    margin-bottom: 0.75rem;
  }
  
  .plan-cero-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border: 2px solid #ffffff;
  }
  
  .plan-cero-modal-content {
    margin: 15% auto 5% auto;
    width: 95%;
  }
  
  .plan-cero-modal-header h2 {
    font-size: 1.2rem;
  }
  
  .plan-cero-modal-title {
    font-size: 1.2rem;
  }
  
  /* Asegurar bordes en móvil */
  .plan-cero-video-container {
    border-radius: 10px !important;
  }
  
  .plan-cero-video-container video {
    border-radius: 0 !important;
  }
  
  .plan-cero-video-container #planCeroVideoLoading {
    border-radius: 10px !important;
    min-height: 250px;
    padding: 30px;
  }
  
  .plan-cero-info h4 {
    font-size: 1.1rem;
  }
  
  .plan-cero-modal {
    z-index: 999999 !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .plan-cero-card {
    height: 260px;
  }
  
  .plan-cero-btn {
    font-size: 10px;
    padding: 0.7rem 0.6rem;
    border: 2px solid #ffffff;
  }
  
  .plan-cero-modal-title {
    font-size: 1.3rem;
  }
  
  .plan-cero-modal-content {
    margin: 10% auto 5% auto;
  }
}

@media (min-width: 769px) {
  .plan-cero-btn {
    font-size: 11px;
    padding: 0.75rem 1rem;
    border: 2px solid #ffffff;
  }
  
  .plan-cero-modal-content {
    margin: 8% auto 5% auto;
  }
}

/* ===== CORRECCIONES ESPECÍFICAS ===== */

/* Título del modal en color blanco para mejor contraste */
.plan-cero-modal-title {
  color: #ffffff !important;
  margin: 0;
  font-size: 1.5rem;
  flex: 1;
}

/* Asegurar que el modal esté por encima del menú */
.plan-cero-modal {
  z-index: 999999 !important;
}

.plan-cero-modal-content {
  z-index: 1000000 !important;
}

/* Asegurar que el header del modal herede el color blanco */
.plan-cero-modal-header h2 {
  color: #ffffff !important;
}

/* CORRECCIÓN ESPECÍFICA PARA ESCRITORIO */
@media (min-width: 769px) {
  .plan-cero-video-container {
    border-radius: 12px !important;
    overflow: hidden;
  }
  
  .plan-cero-video-container video {
    border-radius: 0 !important;
  }
}