/* style.css */

/* -------------------------------------------------- */
/* 1. CSS Variables & Root Styles
/* -------------------------------------------------- */
:root {
    /* Color Palette (Monochromatic) */
    --background-color: #f4f4f4;
    --surface-color: #ffffff;
    --primary-color: #4a4a4a; /* Un gris oscuro y fuerte como color principal */
    --primary-color-hover: #363636;
    --accent-color: #5a5a5a;
    --text-color: #333333;
    --heading-color: #222222;
    --border-color: #dbdbdb;
    --shadow-color-light: rgba(0, 0, 0, 0.08);
    --shadow-color-dark: rgba(0, 0, 0, 0.15);
    --white-color: #ffffff;
    --error-color: #ff3860;

    /* Typography */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'IBM Plex Sans', sans-serif;

    /* Spacing & Sizing */
    --section-padding: 6rem 1.5rem;
    --navbar-height: 5rem;
    --border-radius: 8px;
}

/* -------------------------------------------------- */
/* 2. Global Styles & Typography
/* -------------------------------------------------- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-color);
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-family-headings);
    color: var(--heading-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.section {
    padding: var(--section-padding);
}

.section-title {
    margin-bottom: 3.5rem;
    font-weight: 800;
}

/* -------------------------------------------------- */
/* 3. Volumetric UI Elements & Buttons
/* -------------------------------------------------- */
.volumetric-button, .button.is-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color-hover);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 0 var(--primary-color-hover), 0 6px 12px var(--shadow-color-dark);
    font-family: var(--font-family-headings);
    font-weight: 700;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    color: var(--white-color) !important;
}

.volumetric-button:hover, .button.is-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-color-hover), 0 8px 15px var(--shadow-color-dark);
}

.volumetric-button:active, .button.is-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--primary-color-hover), 0 3px 6px var(--shadow-color-dark);
}

.volumetric-card, .resource-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color-light), 0 15px 35px var(--shadow-color-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.volumetric-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--shadow-color-light), 0 20px 45px var(--shadow-color-dark);
}

.volumetric-input {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.volumetric-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.25), inset 0 2px 4px rgba(0,0,0,0.06);
}

/* -------------------------------------------------- */
/* 4. Header & Navigation
/* -------------------------------------------------- */
.header.is-fixed-top {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-color-light);
    height: var(--navbar-height);
}

.navbar-item {
    font-family: var(--font-family-body);
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s;
}

.navbar-item:hover, .navbar-item.is-active {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

.logo-text {
    font-family: var(--font-family-headings);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--heading-color) !important;
}

.navbar-burger {
    color: var(--heading-color);
    height: var(--navbar-height);
    width: var(--navbar-height);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--surface-color);
        box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
        padding: 0.5rem 0;
    }
}

/* -------------------------------------------------- */
/* 5. Hero Section
/* -------------------------------------------------- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--white-color);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    color: var(--white-color) !important;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 3px 8px rgba(0,0,0,0.7);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

/* -------------------------------------------------- */
/* 6. Features / Services Section
/* -------------------------------------------------- */
.card {
    display: flex;
    flex-direction: column;
}

.card-image {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content .title {
    margin-bottom: 0.75rem;
}

/* -------------------------------------------------- */
/* 7. Vision Section
/* -------------------------------------------------- */
.volumetric-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px var(--shadow-color-light), 0 20px 45px var(--shadow-color-dark);
}

/* -------------------------------------------------- */
/* 8. Our Process Section
/* -------------------------------------------------- */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    padding: 2rem 1rem 2rem 4rem;
    position: relative;
}

.step-number-container {
    position: absolute;
    left: 0;
    top: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px var(--shadow-color-dark);
}

.progress.is-primary {
    background-color: var(--border-color);
}
.progress.is-primary::-webkit-progress-value {
    background-color: var(--primary-color);
}
.progress.is-primary::-moz-progress-bar {
    background-color: var(--primary-color);
}
.progress.is-primary::-ms-fill {
    background-color: var(--primary-color);
}

/* -------------------------------------------------- */
/* 9. Insights (Accordion)
/* -------------------------------------------------- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}
.accordion {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px var(--shadow-color-light);
    overflow: hidden;
}
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background-color: var(--surface-color);
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: #f9f9f9;
}
.accordion-header h3 {
    margin: 0;
    color: var(--heading-color);
}
.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 1.5rem;
}
.accordion-body p {
    margin: 1.25rem 0;
}
.accordion.active .accordion-icon {
    transform: rotate(45deg);
}

/* -------------------------------------------------- */
/* 10. Media (Slider)
/* -------------------------------------------------- */
.slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}
.custom-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 33.33%;
    padding: 0 10px;
    box-sizing: border-box;
}
.resource-card {
    text-align: center;
    padding: 2rem;
}
.slider-controls {
    position: absolute;
    top: 50%;
    width: calc(100% - 80px);
    left: 40px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
}
.slider-prev, .slider-next {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-color-light);
    transition: all 0.3s;
}
.slider-prev:hover, .slider-next:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color-hover);
}

/* -------------------------------------------------- */
/* 11. Contact Section
/* -------------------------------------------------- */
#contacto .card {
    padding: 2.5rem;
}

#contacto .label {
    font-weight: 600;
    color: var(--heading-color);
}

/* -------------------------------------------------- */
/* 12. Footer
/* -------------------------------------------------- */
.footer {
    background-color: #363636;
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem;
}

.footer .title {
    color: var(--white-color);
}

.footer .logo-text, .footer a {
    color: var(--white-color);
}

.footer a:hover {
    color: #cccccc;
    text-decoration: underline;
}

.footer ul {
    list-style: none;
    margin-left: 0;
}

.footer .content p {
    color: rgba(255, 255, 255, 0.7);
}


/* -------------------------------------------------- */
/* 13. Specific Pages (Success, Privacy, Terms)
/* -------------------------------------------------- */
.page-container {
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 4rem;
}

.success-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
}

.success-page .icon {
    color: var(--primary-color);
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* -------------------------------------------------- */
/* 14. GSAP Animation Initial States
/* -------------------------------------------------- */
.gsap-fade-in, .gsap-fade-in-up, .gsap-fade-in-left, .gsap-fade-in-right {
    opacity: 0;
    visibility: hidden;
}

.gsap-fade-in-up {
    transform: translateY(50px);
}

.gsap-fade-in-left {
    transform: translateX(-50px);
}

.gsap-fade-in-right {
    transform: translateX(50px);
}

/* -------------------------------------------------- */
/* 15. Responsive Design
/* -------------------------------------------------- */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .columns.is-vcentered {
        flex-direction: column-reverse;
    }
    
    .slide {
        min-width: 100%;
    }
    
    .slider-container {
        padding: 0;
    }

    .slider-controls {
        display: none; /* Hide controls on mobile, rely on touch scroll */
    }

    .process-step {
        padding-left: 0;
        text-align: center;
    }

    .step-number-container {
        position: static;
        margin: 0 auto 1.5rem;
    }
}