/* style.css */

/* --- VARIABLE DEFINITIONS --- */
:root {
    /* Bright Color Palette */
    --primary-color: #FF6B6B; /* Vibrant Coral */
    --primary-color-dark: #E63946;
    --secondary-color: #4ECDC4; /* Aqua Green */
    --accent-color: #FFD166; /* Sunny Yellow */
    --background-light: #F7FFF7; /* Very Light Mint */
    --background-dark: #1A535C; /* Dark Teal */
    --text-color: #333333;
    --heading-color: #222222;
    --white-color: #FFFFFF;
    --border-color: #DDDDDD;

    /* Typography */
    --font-primary: 'Archivo Black', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Design System */
    --border-radius-soft: 20px; /* Biomorphic curves for cards */
    --border-radius-round: 50px; /* Pill-shaped buttons */
    --section-padding: 6rem 1.5rem;
    --box-shadow-light: 0 8px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 12px 35px rgba(0, 0, 0, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- GENERAL & RESET STYLES --- */
html {
    scroll-behavior: smooth;
    background-color: var(--background-light);
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.1rem;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-primary);
    color: var(--heading-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-title {
    margin-bottom: 3rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-color-dark);
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow-light);
}

.navbar-item, .navbar-link {
    font-weight: bold;
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.header.is-scrolled .navbar-item,
.header.is-scrolled .navbar-link {
    color: var(--heading-color);
    text-shadow: none;
}


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

.header.is-scrolled .navbar-item:hover,
.header.is-scrolled .navbar-item.is-active {
    color: var(--primary-color-dark) !important;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
}

.navbar-burger {
    color: var(--white-color);
}
.header.is-scrolled .navbar-burger {
    color: var(--heading-color);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(26, 83, 92, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        box-shadow: var(--box-shadow-strong);
        border-radius: 0 0 var(--border-radius-soft) var(--border-radius-soft);
    }
    .navbar-menu .navbar-item {
        color: var(--white-color) !important;
        text-shadow: none;
    }
}

/* --- HERO SECTION --- */
.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-weight: 400;
    margin-top: 1rem;
}

/* --- GLOBAL COMPONENTS --- */
.section {
    padding: var(--section-padding);
}

/* Buttons */
.button {
    font-family: var(--font-primary);
    border-radius: var(--border-radius-round);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1.5em 2.5em;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.button.is-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.button:hover, .morph-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.button.is-link.is-outlined {
    border: 2px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
}

.button.is-link.is-outlined:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

/* Cards */
.card {
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-strong);
}

.card .card-image {
    width: 100%;
}

.card .card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    padding: 2rem;
}

.card .content {
    text-align: left;
}

/* Forms */
.contact-form-wrapper {
    background-color: var(--white-color);
    padding: 3rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
}

.input, .textarea {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: none;
}

.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(255, 107, 107, 0.25);
}

.label {
    font-family: var(--font-secondary);
    font-weight: 700;
}

/* --- SECTION-SPECIFIC STYLES --- */
/* Vision */
#vision .image-container img {
    border-radius: var(--border-radius-soft);
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--background-light);
    border: 4px solid var(--secondary-color);
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-light);
}

/* Progress Indicators */
#comunidad .progress {
    height: 12px;
    border-radius: var(--border-radius-round);
}

#comunidad .progress.is-success::-webkit-progress-value { background: linear-gradient(90deg, #4ECDC4, #66D8CF); }
#comunidad .progress.is-info::-webkit-progress-value { background: linear-gradient(90deg, #FF6B6B, #FF8C8C); }
#comunidad .progress.is-warning::-webkit-progress-value { background: linear-gradient(90deg, #FFD166, #FFE08C); }

/* External Resources */
.resource-list {
    list-style: none;
    text-align: center;
    margin: 0;
}

.resource-list li {
    margin-bottom: 1rem;
}

.resource-list li a {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: inline-block;
}

/* Press & Webinars */
.press-quote {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.press-quote footer {
    font-style: normal;
    font-weight: bold;
    margin-top: 0.5rem;
    color: var(--text-color);
}

.notification {
    border-radius: var(--border-radius-soft);
}

/* FAQ Section */
.faq-item {
    background: var(--white-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow-light);
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default marker */
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    font-family: var(--font-secondary);
}

.faq-item[open] > .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--background-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem;
}

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

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

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

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

.footer li {
    margin-bottom: 0.5rem;
}

/* --- STATIC PAGES --- */
/* success.html */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--background-light);
}
.success-content {
    background-color: var(--white-color);
    padding: 4rem;
    border-radius: var(--border-radius-soft);
    box-shadow: var(--box-shadow-strong);
}

/* privacy.html & terms.html */
.static-page-container {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 4rem;
}

/* --- RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .timeline::after {
        left: 10px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
        left: 0 !important;
        text-align: left !important;
    }
    .timeline-item .timeline-marker {
        left: 0 !important;
    }
}