@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    /* overflow-x: hidden; */ /* Se comenta para evitar posibles conflictos con modales fijos */
    padding-top: 80px; /* Espacio para el header fijo */
}

.section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
}

.service-card {
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.service-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.testimonial-card {
    transition: all 0.5s ease;
    transform: scale(0.95);
    opacity: 0;
}

.testimonial-card.visible {
    transform: scale(1);
    opacity: 1;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
    color: #fbbf24; /* color amarillo al hover */
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Botón de regreso al inicio */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 25px;
    z-index: 99;
    width: 50px;
    height: 50px;
    background-color: #1E40AF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #1E3A8A;
    transform: translateY(-3px);
}

/* CAPTCHA styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    letter-spacing: 3px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    user-select: none;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #1E40AF;
    cursor: pointer;
    font-size: 18px;
}

/* CLASE PERSONALIZADA PARA EL LOGO TEXTUAL con la fuente ST */
.logo-font {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Asumiendo bold o extra-bold */
}


/* =================================================================== */
/* === ESTILOS AÑADIDOS PARA EL FUNCIONAMIENTO DEL MODAL (HOVER) === */
/* =================================================================== */

/* Overlay: Fondo oscuro que cubre toda la pantalla */
.modal-overlay {
    position: fixed;
    inset: 0; /* Equivale a top: 0; left: 0; right: 0; bottom: 0; */
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Asegura que esté por encima de todo */
    padding: 20px;

    /* Estado por defecto: Oculto */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Evita que se pueda interactuar con él cuando está oculto */

    /* Transición suave para la aparición/desaparición */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Estado visible: Se muestra cuando la clase 'hidden' se elimina */
.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Contenido: La caja blanca con el texto */
.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    width: 90%;
    max-height: 85vh; /* Altura máxima para no sobrepasar la ventana */
    overflow-y: auto; /* Permite hacer scroll si el contenido es muy largo */
    position: relative;
}

/* Botón de cerrar (la 'X') */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280; /* Color gris suave */
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 10; /* Para que esté por encima del contenido */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #374151; /* Gris más oscuro al hover */
    background-color: #f3f4f6; /* Fondo gris claro al hover */
}

/* Cabecera y cuerpo del modal para estructura */
.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 5;
}

.modal-header h2 {
    color: #1E40AF;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.modal-body {
    padding: 0 24px 24px 24px;
}

/* Estilos para el contenido específico de los términos y privacidad */
.terms-section {
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.terms-section h3 {
    color: #1E40AF;
    margin-bottom: 1rem;
}

.warning-banner {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.warning-banner i {
    color: #f59e0b;
    font-size: 1.25rem;
}

.acceptance-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.acceptance-section p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: scale(1.02);
}

/* Mejorar el scroll en modales */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}