/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

/* Reset básico y configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ===== CLASE HIGHLIGHT PARA PALABRAS CLAVE ===== */
.highlight {
    color: #007bff;
    font-weight: 800;
}

/* ===== ANIMACIONES FADE IN ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECCIÓN "QUÉ ES" MEJORADA ===== */
#que-es {
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: white;
    position: relative;
}

#que-es::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23007bff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23007bff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

#que-es p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.7;
    text-align: center;
    color: #333;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    text-align-last: center;
    padding: 0 2rem;
}

/* Animación palabra por palabra */
#que-es.visible p .word {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    animation: wordSlideUp 0.6s ease-out forwards;
    margin-right: 0.3rem;
}

@keyframes wordSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Los estilos de header y navbar ahora están en archivos separados: heromain.css, heroaidlink.css, heroaseguradoras.css */

/* Responsive Design para sección Qué Es */

/* Pantallas medianas (Laptops pequeños) */
@media (max-width: 1440px) and (min-width: 1025px) {
    /* Sección Qué Es - Responsive */
    #que-es {
        min-height: 70vh;
        padding: 3rem 2rem;
    }
    
    #que-es p {
        font-size:2.3rem;
    }
}

/* Tablets */
@media (max-width: 1024px) and (min-width: 900px) {
    /* Sección Qué Es - Responsive */
    #que-es {
        min-height: 65vh;
        padding: 2.5rem 1.5rem;
    }
    
    #que-es p {
        font-size: 2.1rem
    }
}

/* Tablets pequeños con menú hamburguesa */
@media (max-width: 899px) and (min-width: 769px) {
    /* Sección Qué Es - Responsive */
    #que-es {
        min-height: 60vh;
        padding: 2rem 1.5rem;
    }
    
    #que-es p {
        font-size: 1.87rem;
        text-align: center;
    }
}

/* Móviles */
@media (max-width: 768px) {
    /* Sección Qué Es - Responsive */
    #que-es {
        min-height: 55vh;
        padding: 1.5rem 1rem;
    }
    
    #que-es p {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    /* Sección Qué Es - Responsive */
    #que-es {
        min-height: 50vh;
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    #que-es p {
        font-size: 1.4rem;
        line-height: 1.5;
        text-align: center;
    }
}

/* Media queries específicas de hero fueron movidas a archivos separados */ 

/* ===== BOTÓN VOLVER ARRIBA ===== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4285F4 0%, #5B9BD5 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.4);
    background: linear-gradient(135deg, #5B9BD5 0%, #4285F4 100%);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

.back-to-top-btn i {
    color: white;
    transition: transform 0.2s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .back-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
}