/*
  Palette: Lavanda y Terracota
  - Dark: #2C2A3A (Dark Slate)
  - Light: #F5F3F0 (Creamy White)
  - Accent 1: #D87A4D (Terracota)
  - Accent 2: #B39DDB (Soft Lavender)
  - Text Light: #EAEAEA
  - Text Dark: #333333
*/

:root {
    --color-dark: #2C2A3A;
    --color-light: #F5F3F0;
    --color-accent1: #D87A4D;
    --color-accent2: #B39DDB;
    --color-text-light: #EAEAEA;
    --color-text-dark: #333333;
    --font-family-base: 'Poppins', sans-serif;
    --border-radius: 0; /* Sharp border style */
    --box-shadow: none; /* Flat shadow style */
}

/* Global Resets and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.7;
    background-color: var(--color-light);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.section {
    padding: 48px 0;
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-text-light);
}

.section-light {
    background-color: var(--color-light);
    color: var(--color-text-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background: linear-gradient(135deg, var(--color-dark), #3f3c56);
    color: var(--color-text-light);
}

.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(--color-text-light);
}

.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(--color-text-light);
    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;
}

.desktop-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent1);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 67px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 99;
    background-color: var(--color-dark);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    text-align: center;
    padding: 12px 0;
}

.mobile-nav a {
    color: var(--color-text-light);
    font-size: 18px;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: var(--color-accent1);
    color: var(--color-dark);
    border-color: var(--color-accent1);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-dark);
    transform: translateY(-2px);
}


/* Hero Section (Floating Card) */
.hero-floating-card {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-card {
    background: rgba(44, 42, 58, 0.85);
    backdrop-filter: blur(8px);
    color: var(--color-text-light);
    padding: 40px;
    max-width: 700px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card h1 {
    color: var(--color-accent2);
}

.hero-card p {
    margin: 24px auto;
}

/* Benefits Asymmetrical Grid */
.benefits-asymm-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

.benefit-card {
    padding: 24px;
    border: 1px solid #ddd;
    background-color: #fff;
}
.featured-card {
    background: linear-gradient(145deg, var(--color-light), #e0dce7);
    border: 1px solid var(--color-accent2);
}

/* Comparison Table */
.comparison-table {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 900px;
    margin: 0 auto;
}
.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.table-header {
    background-color: rgba(0,0,0,0.2);
    font-weight: bold;
}
.table-row:last-child {
    border-bottom: none;
}
.table-cell {
    padding: 16px;
    text-align: center;
}
.feature-cell {
    text-align: left;
    font-weight: 500;
}
.checkmark { color: #81c784; }
.cross { color: #e57373; }

/* Expert Block */
.expert-block {
    display: grid;
    gap: 32px;
    align-items: center;
}
.expert-image-placeholder {
    width: 100%;
    height: 300px;
}
.expert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.expert-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    border-left: 3px solid var(--color-accent2);
    padding-left: 20px;
    margin: 24px 0;
}
.expert-name {
    display: block;
    font-weight: bold;
}
.expert-role {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Quote Highlight Section */
.quote-highlight-section {
    background: linear-gradient(135deg, var(--color-accent1), #e89a74);
    color: var(--color-dark);
    padding: 80px 0;
    text-align: center;
}
.quote-wrapper {
    position: relative;
}
.quote-mark {
    font-size: 6rem;
    font-family: serif;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
}
.quote-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 16px;
}
.quote-author {
    font-style: italic;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-placeholder {
    background-color: var(--color-accent2);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}
.cta-section {
    text-align: center;
}
/* Horizontal Tabs (Program Page) */
.tabs {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
input[name="tabs"] { display: none; }
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
}
.tabs-nav label {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}
.tab-panel {
    display: none;
    padding: 32px 0;
}
#t1:checked ~ #p1, #t2:checked ~ #p2, #t3:checked ~ #p3, #t4:checked ~ #p4 {
    display: block;
}
#t1:checked ~ .tabs-nav label[for="t1"],
#t2:checked ~ .tabs-nav label[for="t2"],
#t3:checked ~ .tabs-nav label[for="t3"],
#t4:checked ~ .tabs-nav label[for="t4"] {
    color: var(--color-accent1);
    border-bottom-color: var(--color-accent1);
}

/* Split Layout (Mission Page) */
.split-layout {
    display: grid;
    gap: 32px;
    align-items: center;
}
.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Values Grid (Mission Page) */
.values-grid {
    display: grid;
    gap: 24px;
}
.value-card {
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.value-card h3 {
    color: var(--color-accent2);
    margin-bottom: 12px;
}

/* Contact Page */
.contact-layout {
    display: grid;
    gap: 48px;
}
.contact-heading { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: #fff;
    font-family: inherit;
}
.form-submit-btn { width: 100%; }
.contact-info-block { margin-bottom: 24px; }
.contact-info-block h4 { color: var(--color-accent1); }
.contact-info-block p { margin-bottom: 0; }

/* Legal & Thank You Pages */
.legal-page .container, .thank-you-section .container {
    padding-top: 48px;
    padding-bottom: 48px;
}
.legal-page h1, .thank-you-section h1 {
    text-align: center;
    margin-bottom: 32px;
}
.thank-you-section .btn-secondary {
    border-color: var(--color-text-light);
    color: var(--color-accent1);
}
.legal-page section { margin-bottom: 32px; }
.thank-you-content { text-align: center; }
.next-steps { margin-top: 48px; }
.next-steps-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-text-light) !important;
    padding: 48px 0 24px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    gap: 32px;
    padding-bottom: 32px;
}
.footer-heading {
    color: var(--color-accent2);
    margin-bottom: 16px;
}
.footer-nav a, .footer-contact a {
    color: var(--color-text-light) !important;
}
.footer-contact p { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    opacity: 0.7;
}

/* Cookie Banner */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    background: linear-gradient(135deg, #3c3a4e, var(--color-dark));
    color: var(--color-text-light);
    transform: translateY(0); transition: transform 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; font-size: 0.9rem; }
#cookie-banner a { 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: 1px solid var(--color-text-light);
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}
.cookie-btn-accept:hover {
    background-color: var(--color-accent1);
    border-color: var(--color-accent1);
    color: var(--color-dark);
}
.cookie-btn-decline:hover {
    background-color: var(--color-text-light);
    color: var(--color-dark);
}

/* Media Queries (Mobile-First) */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger, .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); }

    .comparison-table {
        display: block;
    }
    .table-header, .table-row {
        display: block;
        text-align: center;
    }
    .table-cell {
        display: block;
        padding: 10px;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .feature-cell {
        background-color: rgba(0,0,0,0.2);
        font-weight: bold;
        text-align: center;
    }
    .tabs-nav label {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 600px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-card {
        grid-column: 1 / -1;
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@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; }
}

@media (min-width: 768px) {
    .section { padding: 80px 0; }
    .container { padding-left: 24px; padding-right: 24px; }
    .expert-block { grid-template-columns: 1fr 1.5fr; }
    .split-layout { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1.5fr 1fr; }
}

@media (min-width: 1024px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .featured-card {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}