/* 
  Design System for Cumbre Árbol Genealógico
  Premium, Editorial, Emotional, Professional
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;800&family=Montserrat:wght@400;700;800&display=swap');

:root {
    /* Colors */
    --color-primary-dark: #1a2f22; 
    --color-green-deep: #264630;
    --color-accent-gold: #C5A028; /* Toasted Yellow / Gold prioritized */
    --color-accent-coral: #E57362; /* More muted coral, used sparingly */
    --color-bg-light: #FDFCF8; /* Warmer light background */
    --color-text-dark: #2A2A2A; /* Softer black */
    --color-text-muted: #666666;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --section-padding: 80px 5%; /* Reduced padding for tighter layout */
    --section-padding-mobile: 50px 20px;
    --border-radius: 6px;
}

/* Navigation */
nav {
    transition: background 0.3s ease;
}

@media (max-width: 768px) {
    nav .nav-links {
        display: none !important;
    }
    nav {
        padding: 10px 20px !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.text-center { text-align: center; }
.bg-dark { background-color: var(--color-primary-dark); color: var(--color-white); }
.bg-light { background-color: var(--color-bg-light); }
.accent-coral { color: var(--color-accent-coral); }
.accent-gold { color: var(--color-accent-gold); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--color-accent-gold); /* Priority to Yellow */
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600; /* Less fat, more relaxing */
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(197, 160, 40, 0.2);
}

.btn:hover {
    background-color: #b08d20;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 160, 40, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-accent-gold);
    color: var(--color-accent-gold);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-accent-gold);
    color: var(--color-white);
}

/* Hero Section */
.hero {
    min-height: 90vh; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding);
    position: relative;
    background: linear-gradient(rgba(26, 47, 34, 0.8), rgba(26, 47, 34, 0.9)), url('assets/hero-bg.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700; /* More relaxing */
    margin-bottom: 1.2rem;
}

.hero .date {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.8rem;
    display: block;
    color: var(--color-accent-gold);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

/* Section Common Styling */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile);
    }
    .hero-btns {
        flex-direction: column;
    }
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 2.5rem;
    font-weight: 700;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.card:hover::after {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.card-dark {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-white);
}

.card-dark::after {
    background: var(--color-accent-gold);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.card-dark h3 {
    color: var(--color-accent-gold);
}

.bonus-card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    text-align: left;
    background: #fffdf5;
    border: 1px solid var(--color-accent-gold);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .bonus-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 60px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 33.333%;
    padding: 0 15px;
}

@media (max-width: 1024px) {
    .carousel-slide {
        min-width: 50%;
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        min-width: 100%;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-accent-gold);
    transform: scale(1.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--color-accent-gold);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--color-accent-gold);
    color: white;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

@media (max-width: 768px) {
    .carousel-btn { display: none; }
}

/* Speakers */
.speaker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 2rem;
}

.speaker-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-accent-gold);
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-img {
    transform: scale(1.05);
}

.speaker-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.speaker-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent-gold);
    font-weight: 600;
}

.speaker-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-accent-gold);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.badge-acercamiento {
    background: var(--color-green-deep);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

/* Footer */
footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: 60px 5% 30px;
    text-align: center;
}

.footer-logo {
    width: 70px;
    margin-bottom: 1.5rem;
}

.copyright {
    margin-top: 3rem;
    opacity: 0.6;
    font-size: 0.85rem;
}

/* Suggestions */
.suggestion-badge {
    display: inline-block;
    background: #f0f4f1;
    color: #264630;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid #d1dbd3;
}

.suggestion-block {
    border: 2px dashed #d1dbd3;
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 8px;
    background: #fafbfc;
}
