/**
 * Estilos personalizados para Me Quiero Jubilar
 * Usa variables CSS definidas en index.php desde config.php
 */

* {
    font-family: 'Bentham', serif;
}

body {
    background-color: var(--color-primary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary);
}

.border-primary {
    border-color: var(--color-primary);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--color-primary-dark);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Animaciones suaves */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo para cards de servicios */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-whatsapp);
    color: var(--color-white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: var(--color-whatsapp-hover);
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 15px;
}

/* Mensajes del formulario */
.mensaje-exito {
    background-color: var(--color-success);
    color: var(--color-white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.mensaje-error {
    background-color: var(--color-error);
    color: var(--color-white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Hero con parallax */
.hero-parallax {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.hero-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(123, 27, 56, 0.85), rgba(90, 20, 41, 0.9));
    z-index: 1;
}

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

/* Ajustes responsive para el hero */
@media (max-width: 768px) {
    .hero-parallax {
        min-height: 500px;
    }
    
    .hero-background {
        height: 110%;
    }
}

/* Estilos para FAQ */
.faq-question {
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para botón deshabilitado cuando falta captcha */
#submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Estilos para el widget de Cap.js */
cap-widget {
    display: block;
    margin: 1rem 0;
}
