/* Estilos personalizados adicionales */
.contact-button {
    animation: pulse 2s infinite;
}

.contact-button:hover {
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Aspect ratio para videos verticales */
.aspect-9\/16 {
    aspect-ratio: 9 / 16;
}

/* Aspect ratio para video principal */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-button {
        padding: 1.5rem 2rem;
        font-size: 1.25rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for videos */
iframe {
    transition: opacity 0.3s ease;
}

/* Estilos personalizados adicionales */
.contact-button {
    animation: pulse 2s infinite;
    position: relative;
}

.contact-button:hover {
    animation: none;
}

/* Contenedor del botón con flechas */
.button-container {
    position: relative;
    display: inline-block;
}

/* Flechas rojas animadas - MÁS GRANDES */
.button-container::before,
.button-container::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: #dc2626;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Flecha izquierda apuntando AL BOTÓN */
.button-container::before {
    content: '👉';
    right: 100%;
    margin-right: 20px;
    animation: arrowPointLeft 1.2s ease-in-out infinite;
}

/* Flecha derecha apuntando AL BOTÓN */
.button-container::after {
    content: '👈';
    left: 100%;
    margin-left: 20px;
    animation: arrowPointRight 1.2s ease-in-out infinite;
}

/* Animación flecha izquierda apuntando hacia el botón */
@keyframes arrowPointLeft {
    0%, 100% {
        transform: translateY(-50%) translateX(-30px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) translateX(-10px) scale(1.2);
        opacity: 1;
    }
}

/* Animación flecha derecha apuntando hacia el botón */
@keyframes arrowPointRight {
    0%, 100% {
        transform: translateY(-50%) translateX(30px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) translateX(10px) scale(1.2);
        opacity: 1;
    }
}

/* Animación del botón */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Aspect ratio para videos verticales */
.aspect-9\/16 {
    aspect-ratio: 9 / 16;
}

/* Aspect ratio para video principal */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-button {
        padding: 1.5rem 2rem;
        font-size: 1.25rem;
    }
    
    /* Flechas grandes también en móvil */
    .button-container::before,
    .button-container::after {
        font-size: 3rem;
    }
    
    .button-container::before {
        margin-right: 15px;
    }
    
    .button-container::after {
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    /* En pantallas muy pequeñas, flechas un poco más pequeñas */
    .button-container::before,
    .button-container::after {
        font-size: 2.5rem;
    }
    
    .button-container::before {
        margin-right: 10px;
    }
    
    .button-container::after {
        margin-left: 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for videos */
iframe {
    transition: opacity 0.3s ease;
}

/* Efecto adicional de brillo en el botón */
.contact-button {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.contact-button:hover {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

/* Parar animaciones al hacer hover */
.button-container:hover::before,
.button-container:hover::after {
    animation-play-state: paused;
    transform: translateY(-50%) scale(1.3);
}

/* Efecto adicional: texto que parpadea */
.attention-text {
    animation: blink 2s ease-in-out infinite;
    color: #dc2626;
    font-weight: bold;
    margin-bottom: 1rem;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}
/* Exit Intent Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.popup-overlay.hidden {
    display: none;
}

.popup-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    z-index: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #dc2626;
}

.popup-content {
    padding: 40px 30px 30px;
    text-align: center;
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.popup-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

.popup-form {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 25px;
}

.email-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.email-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: none;
}

.benefits {
    margin: 25px 0;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #374151;
}

.benefit-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.privacy-text {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 15px;
}

/* Success Message */
.success-message {
    text-align: center;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #10b981;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #6b7280;
    margin-bottom: 20px;
}

.success-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.success-btn:hover {
    background: #059669;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-container {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .popup-content {
        padding: 30px 20px 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .popup-subtitle {
        font-size: 1rem;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 15px 25px;
    }
}