/*
* Palette: Terracota y Oro
* Primary: #A93226 (Terracotta Red)
* Secondary: #D4AC0D (Gold Accent)
* Text: #34495E (Dark Slate Gray)
* Background: #FDFEFE (Almost White)
* Dark Background: #212F3D (Darker Slate)
*/

:root {
    --primary-color: #A93226;
    --secondary-color: #D4AC0D;
    --text-color: #34495E;
    --light-text-color: #FDFEFE;
    --background-color: #FDFEFE;
    --light-bg-color: #F5F5F5;
    --dark-bg-color: #212F3D;
    --border-color: #E0E0E0;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Global Styles --- */
body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--dark-bg-color);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light-bg {
    background-color: var(--light-bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-size: 1.1rem;
    color: #555;
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: relative;
    width: calc(100% - 20px);
    padding: 15px 10px;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--dark-bg-color);
    text-decoration: none;
}

.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-bg-color);
    margin: 5px 0;
    transition: 0.3s;
}

.menu-checkbox {
    display: none;
}

.desktop-nav {
    display: block;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 65px; /* Adjust based on header height */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    z-index: 99;
    background-color: var(--background-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    width: 100%;
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }
    #menu-toggle:checked ~ .mobile-nav { max-height: 400px; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    #menu-toggle:checked ~ .hamburger .line:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .hamburger .line:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--dark-bg-color) !important;
    color: var(--light-text-color) !important;
    padding: 60px 0 20px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--secondary-color) !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p, .footer-column a {
    color: #ccc !important;
    font-size: 0.95rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    color: #aaa !important;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #872318;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* --- Hero Section (index.html) --- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 47, 61, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin-top: 10%;
}

.hero-content h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* --- Benefits Grid (index.html) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-align: center;
}

.card-icon-placeholder {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* --- Split Layout (index.html) --- */
.split-layout, .split-layout-reverse {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1.2fr;
    }
    .split-layout-reverse {
        grid-template-columns: 1.2fr 1fr;
    }
    .split-layout-reverse .split-image {
        order: 2;
    }
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Testimonials (index.html) --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card blockquote {
    margin: 0 0 15px 0;
    font-style: italic;
    font-size: 1.05rem;
}

.testimonial-card cite {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- CTA Section (index.html) --- */
.cta-section {
    background-color: var(--primary-color);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    color: white;
}

.cta-content .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background-color: #f0f0f0;
}

/* --- Page Header (Internal Pages) --- */
.page-header-section {
    background-color: var(--dark-bg-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header-section h1 {
    color: white;
}

.page-header-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* --- Timeline (program.html) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 30px;
}

.timeline-item {
    padding: 10px 40px 30px 80px;
    position: relative;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    left: 21px;
    z-index: 1;
}

.timeline-content h3 {
    color: var(--primary-color);
}

/* --- Image Showcase (program.html) --- */
.image-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 768px) {
    .image-showcase {
        grid-template-columns: 1fr 1fr;
    }
}

.image-showcase img {
    width: 100%;
    border-radius: 8px;
}

/* --- FAQ (program.html) --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
    padding: 0 0 20px 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* --- Values Grid (mission.html) --- */
.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Manifesto (mission.html) --- */
.manifesto-container {
    text-align: center;
    max-width: 900px;
}

.manifesto-container blockquote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    border-left: 5px solid var(--secondary-color);
    padding-left: 30px;
    margin: 0;
    text-align: left;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(169, 50, 38, 0.2);
}

.contact-info-container {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 8px;
}

.contact-info-item {
    margin-bottom: 25px;
}

.contact-info-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    margin-bottom: 0;
}

/* --- Legal & Thank You Pages --- */
.legal-page h2 {
    margin-top: 40px;
    color: var(--primary-color);
}

.thank-you-section {
    padding: 100px 0;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 3rem;
    margin: 0 auto 30px auto;
}

.next-steps {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    transform: translateY(0); transition: transform 0.4s ease;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.95rem; }
#cookie-banner a { color: var(--secondary-color) !important; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.cookie-btn-accept {
    background-color: var(--primary-color);
    color: white;
}
.cookie-btn-decline {
    background-color: #555;
    color: white;
}
@media (max-width: 600px) {
    #cookie-banner { flex-direction: column; align-items: flex-start; }
    .cookie-btns { width: 100%; }
    .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}