/* ----------------------------------------------------
   CSS VARIABLES & DESIGN TOKENS
   ---------------------------------------------------- */
:root {
    /* Colors */
    --clr-primary: #C99636;
    /* Ribbon Gold */
    --clr-primary-dark: #b0822c;
    --clr-secondary: #0A3D66;
    /* Deep Trust Blue */
    --clr-accent: #E85D04;
    /* Warm Orange for emotion/urgency */

    --clr-dark: #1A1A1A;
    --clr-light: #F8F9FA;
    --clr-white: #FFFFFF;
    --clr-grey-light: #E9ECEF;
    --clr-grey: #6C757D;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ----------------------------------------------------
   RESET & BASE STYLES
   ---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-dark);
    background-color: var(--clr-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--clr-secondary);
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----------------------------------------------------
   UTILITIES
   ---------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--clr-white) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-gold {
    color: var(--clr-primary) !important;
}

.bg-light {
    background-color: var(--clr-light);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.small {
    font-size: 0.875rem;
}

.font-weight-bold {
    font-weight: 700;
}

.ml-2 {
    margin-left: 0.5rem;
}

.d-inline-block {
    display: inline-block;
}

.w-100 {
    width: 100%;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--clr-grey);
    font-weight: 300;
    margin-bottom: 2rem;
}

.separator-line {
    height: 4px;
    width: 60px;
    background-color: var(--clr-primary);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.rounded-shadow {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.hover-zoom {
    transition: transform var(--transition-base);
}

.hover-zoom:hover {
    transform: scale(1.02);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(201, 150, 54, 0.15);
    color: var(--clr-primary);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge.dark {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
}

/* ----------------------------------------------------
   BUTTONS
   ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 8px 20px rgba(201, 150, 54, 0.3);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 150, 54, 0.4);
    color: var(--clr-white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-white {
    background-color: var(--clr-white);
    color: var(--clr-primary);
}

.btn-white:hover {
    background-color: var(--clr-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 1rem 0;
    background: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.img-logo {
    height: 180px;
    transition: var(--transition-base);
}

.header.scrolled .img-logo {
    height: 120px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--clr-white);
    /* White because it's over video initially */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--clr-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--clr-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .mobile-toggle {
    color: var(--clr-dark);
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 220px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 61, 102, 0.8) 0%, rgba(20, 20, 20, 0.6) 100%);
}

.hero-content {
    color: var(--clr-white);
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--clr-white);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
}

/* Forzado de herencia para contenido TinyMCE en Slide */
.hero-content h1 *,
.hero-content p * {
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Evitar que TinyMCE añada márgenes en párrafos anidados que rompen el centrado */
.hero-content p p,
.hero-content h1 p {
    margin: 0 !important;
    display: inline;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-bottom .shape-fill {
    fill: var(--clr-white);
}

/* Fade In Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------
   ABOUT US
   ---------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.glass-card {
    background: var(--clr-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-grey-light);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(201, 150, 54, 0.1);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list i {
    margin-top: 0.25rem;
}

.history-card {
    background-color: var(--clr-light);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border-left: 4px solid var(--clr-secondary);
}

.ribbon-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--clr-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(201, 150, 54, 0.2);
}

.ribbon-icon {
    font-size: 2.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag {
    background-color: var(--clr-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--clr-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--clr-grey-light);
}

/* ----------------------------------------------------
   IMPACT (MISION)
   ---------------------------------------------------- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.impact-card {
    background-color: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 150, 54, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: var(--clr-light);
    color: var(--clr-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition-base);
}

.impact-card:hover .card-icon {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.highlight-card {
    background: linear-gradient(135deg, var(--clr-secondary), #0d4a7a);
    color: var(--clr-white);
}

.highlight-card .card-icon {
    background: rgba(255, 255, 255, 0.1);
}

.highlight-card:hover {
    box-shadow: 0 15px 30px rgba(10, 61, 102, 0.3);
}

.card-span-2 {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .card-span-2 {
        grid-column: span 1;
    }
}

/* ----------------------------------------------------
   HOW TO SUPPORT
   ---------------------------------------------------- */
.support-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.support-block.row-reverse {
    flex-direction: row-reverse;
}

.support-content {
    flex: 1;
}

.support-visual {
    flex: 1;
    height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    display: block;
}

.club-bg {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../assets/voluntarios-bg.jpg');
}

.reacaudo-bg {
    background-image: url('../assets/semillas-manos-bg.png');
}

.fund-box {
    background-color: var(--clr-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--clr-primary);
}

/* Bonds / Bonos */
.bonds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.bond-card {
    background: var(--clr-white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--clr-grey-light);
    display: flex;
    flex-direction: column;
}

.bond-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-primary);
}

.bond-icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.bond-card p {
    font-size: 0.9rem;
    color: var(--clr-grey);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.bond-highlight {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    color: var(--clr-white);
    border: none;
}

.bond-highlight h4,
.bond-highlight p {
    color: var(--clr-white);
}

.bond-highlight .bond-icon {
    color: var(--clr-white);
}

.bond-amounts {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.bond-amounts span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dummy-input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    margin: 0.5rem;
    width: calc(50% - 2rem);
}

.monthly-donor {
    border: 1px dashed var(--clr-primary);
}

/* ----------------------------------------------------
   NEWS & EVENTS
   ---------------------------------------------------- */
.title-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.title-flex p {
    margin-bottom: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--clr-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.img-placeholder-1 {
    background-image: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80');
}

.img-placeholder-2 {
    background-image: url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80');
}

.img-placeholder-3 {
    background-image: url('https://images.unsplash.com/photo-1507206130118-b5907f817163?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80');
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--clr-primary);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--clr-grey);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.read-more {
    font-weight: 600;
    color: var(--clr-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    color: var(--clr-primary);
    gap: 0.75rem;
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.footer {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    position: relative;
    padding-top: 80px;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: scaleY(-1);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.footer-wave .shape-fill {
    fill: var(--clr-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
}

.footer-logo {
    max-width: 200px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    border-radius: 50%;
    margin-right: 0.5rem;
}

.social-links a:hover {
    background-color: var(--clr-primary);
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list i {
    margin-top: 5px;
    color: var(--clr-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN
   ---------------------------------------------------- */
@media (max-width: 992px) {

    .about-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .support-block,
    .support-block.row-reverse {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--clr-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-base);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-link {
        color: var(--clr-dark);
        font-size: 1.25rem;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .title-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}