﻿html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
}

/* --- HERO SECTION --- */
.hero-gradient {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 82, 204, 0.05));
}

/* --- BOTONES --- */
.cta-button {
    transition: all 0.3s ease;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 82, 204, 0.2), 0 4px 6px -2px rgba(0, 82, 204, 0.1);
    }

/* --- CARDS --- */
.service-card {
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

/* --- NAVEGACIÓN --- */
nav a, .footer-link {
    transition: color 0.2s ease-in-out;
}

    .footer-link:hover {
        color: white;
    }

/* --- ANIMACIÓN SCROLL REVEAL --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

    .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* --- CARRUSEL HOME --- */
#home {
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* Responsive para el home */
@media (max-width: 768px) {
    #home {
        height: auto;
        min-height: 600px;
        padding-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    #home {
        min-height: 550px;
    }
}

.home-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

    .home-slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 20;
    }

/* Contenedor del slide */
.slide-content-wrapper {
    padding-top: 5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .slide-content-wrapper {
        padding-top: 4rem;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem;
    }
}

/* --- FLECHAS DE NAVEGACIÓN DEL SLIDER --- */
.slider-arrow {
    z-index: 30;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-arrow:hover {
        background-color: rgba(255, 255, 255, 0.9);
    }

/* Responsive para flechas */
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }
}

/* --- HEADER SCROLL-AWARE --- */
#main-header {
    position: relative;
    width: 100%;
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: none;
    z-index: 50;
    padding-top: 0;
    transform: translateY(0);
}

    #main-header.scrolled {
        position: fixed;
        top: 0;
        background-color: white;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
        padding-top: 0;
        animation: slideDown 0.4s forwards;
    }

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* --- RESPONSIVE PARA TEXTOS --- */
/* Títulos principales */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
}

/* Subtítulos */
h2 {
    font-size: 2rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.25rem;
    }
}

/* Párrafos */
p {
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    p {
        font-size: 0.9rem;
    }
}

/* --- IMÁGENES RESPONSIVE --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Imagen de SOFÍA - Ocultar en responsive */
.sofia-image-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .sofia-image-container {
        display: none !important;
    }
}

/* Clase específica para ocultar imágenes del banner */
.banner-image {
    display: block;
}

@media (max-width: 768px) {
    .banner-image {
        display: none !important;
    }

    /* Centrar el texto cuando la imagen está oculta */
    .slide-content-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

        /* Ajustar el contenido del texto para que ocupe todo el espacio */
        .slide-content-wrapper > div {
            width: 100%;
            max-width: 100%;
        }
}

/* Estilos específicos para el carrusel de testimonios */
.testimonial-track {
    /* Habilita el desplazamiento y el "snap" (enganche) del scroll */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Mejora el scroll en iOS */
    /* Ocultar barra de desplazamiento en navegadores WebKit */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

    .testimonial-track::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.testimonial-card {
    /* Define que cada tarjeta debe ser un punto de "snap" */
    scroll-snap-align: start;
    /* Definir el ancho de la tarjeta para mostrar menos a la vez */
    width: 100%; /* Default: 1 card per view */
}

/* En tabletas y escritorios, hacemos las tarjetas más pequeñas para que el carrusel se sienta más denso */
@media (min-width: 640px) { /* sm */
    .testimonial-card {
        width: calc(80% - 1.5rem); /* 80% ancho - espacio */
    }
}

@media (min-width: 1024px) { /* lg */
    .testimonial-card {
        width: calc(45% - 2rem); /* 45% ancho - espacio */
    }
}

/* --- CONTENEDORES GENERALES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 640px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* --- ESPACIADO RESPONSIVE --- */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* --- BOTONES RESPONSIVE --- */
button, .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 480px) {
    button, .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* --- GRID RESPONSIVE --- */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- MENU MÓVIL --- */
@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: white;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

        .mobile-menu.active {
            left: 0;
        }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 99;
    }

        .mobile-menu-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }
}

/* --- AJUSTES FINALES DE OVERFLOW --- */
* {
    box-sizing: border-box;
}

.overflow-hidden {
    overflow: hidden !important;
}

/* Evitar contenido que se desborde horizontalmente */
section, div, article {
    max-width: 100%;
}


/* Botones Flotantes - WhatsApp & Instagram */

/* Contenedor Instagram */
.instagram-block {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.6s ease-out;
}

/* Contenedor WhatsApp */
.whatsapp-block {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.8s ease-out;
}

/* Botón Instagram */
.btn-flotante-ins {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite;
}

    .btn-flotante-ins:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 25px rgba(131, 58, 180, 0.6);
        background: linear-gradient(135deg, #a240c7, #ff2424, #ffc052);
    }

/* Botón WhatsApp */
.btn-flotante-wp {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulseGlow 2s infinite 0.5s;
}

    .btn-flotante-wp:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
        background: linear-gradient(135deg, #2ee876, #15a086);
    }

/* Icono con animación */
.icon-size {
    animation: bounce 1s infinite;
    transition: transform 0.3s ease;
}

.btn-flotante-ins:hover .icon-size,
.btn-flotante-wp:hover .icon-size {
    animation: none;
    transform: rotate(15deg) scale(1.2);
}

/* Animaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(131, 58, 180, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(131, 58, 180, 0.7);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .instagram-block,
    .whatsapp-block {
        right: 15px;
    }

    .btn-flotante-ins,
    .btn-flotante-wp {
        padding: 10px 15px;
        font-size: 14px;
    }

    .icon-size {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .instagram-block {
        bottom: 120px;
    }

    .whatsapp-block {
        bottom: 60px;
    }

    .btn-flotante-ins b,
    .btn-flotante-wp b {
        font-size: 12px;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Estilo para el logo de ejemplo ESTELAR (cuando es texto) */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    line-height: 1;
}

/* Clase para el contenedor de la sección de confianza para un mejor contraste */
.trust-section-bg {
    background-color: #f9fafb; /* Ligeramente más oscuro que white */
}