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

:root {
    /* Color System – Monochrome + Accent */
    --clr-bg-light: #f5f5f5;
    --clr-bg-dark: #151515;
    --clr-surface: #ffffff;
    --clr-surface-alt: #e6e6e6;
    --clr-text: #222222;
    --clr-text-light: #f8f8f8;
    --clr-accent: #606060;
    --clr-accent-dark: #404040;
    --clr-border: #d1d1d1;

    /* Shadows / Elevation */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);

    /* Radius */
    --radius-sm: .375rem;
    --radius-md: .625rem;

    /* Transitions */
    --transition: all 0.25s ease-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--clr-text);
    background-color: var(--clr-bg-light);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Utility */
.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--clr-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section-description {
    max-width: 720px;
    margin: 0.5rem auto 3rem;
    text-align: center;
    color: var(--clr-text);
}

/* -------------------- HEADER -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--clr-text);
    text-decoration: none;
}

.logo span {
    color: var(--clr-accent-dark);
}

.navigation ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.navigation a {
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navigation a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: var(--clr-accent-dark);
    transition: var(--transition);
}

.navigation a:hover,
.navigation a:focus {
    color: var(--clr-accent-dark);
}

.navigation a:hover::after,
.navigation a:focus::after {
    width: 100%;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .navigation {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-surface);
        transform: translateY(-200%);
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .navigation.open {
        transform: translateY(0);
    }

    .navigation ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .burger {
        display: flex;
    }

    .burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .burger.open span:nth-child(2) { opacity: 0; }
    .burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* -------------------- HERO -------------------- */
.hero {
    color: var(--clr-text-light);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 7rem 0 6rem;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.875rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #FFFFFF;
}

/* -------------------- BUTTONS -------------------- */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    border: 0;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--clr-accent-dark);
    color: var(--clr-text-light);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #000000;
    transform: translateY(-2px);
}

.btn-animated {
    position: relative;
    overflow: hidden;
}

.btn-animated::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-animated:hover::after {
    transform: translateX(0);
}

.btn-text {
    background: transparent;
    color: var(--clr-accent-dark);
    padding: 0;
}

.btn-text:hover {
    color: #000;
    text-decoration: underline;
}

/* -------------------- CARDS -------------------- */
.cards-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card,
.stat-card {
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.card:hover,
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.card-image,
.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.card-content {
    padding: 1.25rem 1rem 2rem;
}

/* -------------------- STATISTICS -------------------- */
.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--clr-accent-dark);
}

.stat-label {
    margin-top: 0.25rem;
    font-weight: 600;
    color: var(--clr-text);
}

progress {
    width: 80%;
    appearance: none;
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

progress::-webkit-progress-bar {
    background: var(--clr-surface-alt);
}

progress::-webkit-progress-value {
    background: var(--clr-accent-dark);
}

/* -------------------- PARTNER LOGOS -------------------- */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.partner-logos img {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition);
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* -------------------- COMMUNITY LIST -------------------- */
.community-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .community-list {
        flex-direction: row;
        justify-content: center;
    }
}

/* -------------------- CONTACT -------------------- */
.contact-form {
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input,
textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    resize: vertical;
    transition: var(--transition);
    background: #fff;
}

input:focus,
textarea:focus {
    outline: 0;
    border-color: var(--clr-accent-dark);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* -------------------- FOOTER -------------------- */
.footer {
    background: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 2.5rem 0;
    font-size: 0.925rem;
}

.footer a {
    color: var(--clr-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--clr-accent);
    text-decoration: underline;
}

/* Footer Grid */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col {
    flex: 1 1 250px;
}

.is-two-thirds {
    flex: 0 0 66.666%;
}

@media (max-width: 768px) {
    .is-two-thirds {
        flex: 1 1 100%;
    }
}

/* -------------------- PARALLAX BG -------------------- */
.parallax {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* -------------------- GLASSMORPHIC SURFACES -------------------- */
.glass {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* -------------------- TEXT LINKS / "Leer más" -------------------- */
a.read-more {
    font-weight: 600;
    color: var(--clr-accent-dark);
    position: relative;
    padding-right: 1.2rem;
    transition: var(--transition);
}

a.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
    transition: var(--transition);
}

a.read-more:hover {
    color: #000;
}

a.read-more:hover::after {
    transform: translateX(4px);
}

/* -------------------- SUCCESS PAGE -------------------- */
.success-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    background: var(--clr-bg-light);
}

.success-wrapper h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
}

.success-wrapper .btn-primary {
    margin-top: 1rem;
}

/* -------------------- LEGAL PAGES -------------------- */
.legal-page {
    padding-top: 100px;
}

/* -------------------- COOKIE POPUP -------------------- */
#cookie-popup .btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
}

/* -------------------- MICROANIMATIONS KEYFRAMES -------------------- */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

[data-sr] {
    animation: fadeInUp 1s ease-out forwards;
}
@media (max-width: 768px) {
    header nav, .burger{
        display: none;
    }

}