/* VARIABLES GLOBALES */
:root {
    --primary: #3D4C8F;
    --secondary: #FF75A0;
    --accent: #00F5D4;
    --btn-border: #4B41E5;
    --bg-light: #E7ECFE;
    --text-main: #333333;
    --text-muted: #696969;
    --white: #ffffff;
    
    --font-heading: 'Roboto', sans-serif;
    --font-subheading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

/* RESET & BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; }
h1 { font-family: var(--font-heading); font-weight: 700; font-size: 2.5rem; }
h2 { font-family: var(--font-subheading); color: var(--secondary); font-size: 2rem; }
p { margin-bottom: 1.5rem; font-weight: 400; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-center { text-align: center; }

/* UTILS GRID */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
}

/* BOTONES */
.btn-main {
    display: inline-block;
    background-color: var(--accent);
    color: var(--btn-border);
    border: 1px solid var(--btn-border);
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-main:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* SECCIÓN 1: HERO */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-logo { margin: 0 auto 30px; width: 300px; }
.hero-desc { max-width: 600px; margin: 0 auto; }

/* Elementos Flotantes (Caras y Formas) */
.decorations-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floater { position: absolute; border-radius: 50%; border: 4px solid var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.face-1 { top: 15%; left: 10%; width: 100px; }
.face-2 { bottom: 20%; right: 10%; width: 80px; }
.shape { border: none; font-size: 4rem; color: #C4CDEF; opacity: 0.5; }
.shape-1 { top: 20%; right: 15%; }
.shape-2 { bottom: 15%; left: 15%; }

/* Ocultar decoraciones en móvil para limpiar la vista */
@media (max-width: 768px) { .floater { display: none; } }

/* ANIMACIONES KEYFRAMES */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.float-anim { animation: float 6s ease-in-out infinite; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.rotate-anim { animation: rotate 20s linear infinite; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.pulse-anim { animation: pulse 3s infinite; }

/* SECCIÓN 2: TARJETAS */
.cards-section {
    background: linear-gradient(to bottom, var(--bg-light) 0%, #fff 100%);
    padding: 80px 0;
}

.card {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2px; /* Borde falso */
    border-radius: 10px;
    transition: var(--transition);
}

.card:hover { transform: translateY(-10px); }

.card-inner {
    background: var(--white);
    padding: 30px;
    height: 100%;
    border-radius: 8px;
    text-align: center;
}

/* SECCIÓN 3: VENTAJA */
.advantage-section { padding: 100px 0; position: relative; overflow: hidden; }
.h1-style { font-family: var(--font-heading); font-size: 3.5rem; color: #000; margin-bottom: 50px; }

.parallax-icon {
    position: absolute;
    color: #C4CDEF;
    font-size: 5rem;
    opacity: 0.4;
    z-index: 1;
}
.p-1 { top: 10%; left: 5%; }
.p-2 { bottom: 20%; left: 40%; }
.p-3 { top: 15%; right: 10%; }
.face-3 { top: 50%; right: 5%; width: 120px; display: block; }

/* SECCIÓN 4: FAQ */
.faq-section { padding: 80px 0; }
.faq-grid { max-width: 800px; margin: 0 auto; }

.faq-item {
    border-top: 2px solid #A9B0CB;
    margin-bottom: 20px;
}

.faq-item:last-child { border-bottom: 2px solid #A9B0CB; }

summary {
    list-style: none;
    padding: 20px 0;
    font-family: var(--font-subheading);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '\f078'; /* FontAwesome chevron down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    transition: transform 0.3s;
}

details[open] summary::after { transform: rotate(180deg); }

.faq-content {
    padding-bottom: 20px;
    color: var(--text-main);
    animation: fadeIn 0.5s ease;
}

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

/* SECCIÓN 5: POR QUÉ NOSOTROS */
.why-us-section { padding: 80px 0; background-color: var(--white); }

.image-wrapper img {
    border-radius: 50%;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 300px;
    margin: 0 auto;
}

.benefits-list { list-style: none; margin-top: 30px; }
.benefits-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefits-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

/* SECCIÓN 6: ECOSISTEMA */
.ecosystem-section { padding: 80px 0; background-color: var(--bg-light); }
.card-dark .card-inner h3 { color: var(--primary); font-family: var(--font-subheading); font-size: 1.5rem; }

/* FOOTER */
footer { background-color: var(--bg-light); padding: 40px 0; border-top: 1px solid #ccc; }

/* SCROLL REVEAL UTILS */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }