/* Guide Specific Styles - Editorial Design "Envejecer con Criterio" */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-paper: #FAF9F6;
    /* Cream/Paper color */
    --color-copper: #A0522D;
    /* Accent text */
    --color-text-body: #2C2C2C;
    --color-text-muted: #555555;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --spacing-section: 6rem;
}

body.guide-body {
    background-color: var(--bg-paper);
    color: var(--color-text-body);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
}

/* Global Reset for this page */
.guide-body * {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections representing "Pages" */
.guide-section {
    min-height: auto;
    /* Fixed: Auto height for better reading flow */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    border-bottom: 1px solid rgba(160, 82, 45, 0.1);
}

.guide-section.no-border {
    border-bottom: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    color: var(--color-copper);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.display-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.display-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    color: var(--color-text-body);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.headline-text {
    font-size: 5rem;
    text-transform: uppercase;
    color: var(--color-copper);
    letter-spacing: 0.05em;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    color: var(--color-copper);
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Layouts */
.cover-layout {
    text-align: center;
}

.cover-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.quote-box {
    margin-top: 3rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--color-text-body);
    font-style: italic;
}

/* Comparison Grid (Page 3) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
    width: 100%;
}

.comparison-col {
    text-align: center;
    padding: 1rem;
}

.vertical-divider {
    width: 1px;
    height: 100%;
    background-color: var(--color-copper);
    opacity: 0.3;
}

.col-title {
    font-size: 1.5rem;
    color: var(--color-copper);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.col-text {
    font-size: 1.15rem;
    color: var(--color-text-body);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.col-icon-placeholder {
    width: 200px;
    height: 150px;
    background: #f0f0f0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #999;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Page 4: Tree Section */
.tree-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.tree-content {
    flex: 1;
}

.tree-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tree-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    border-left: 2px dotted #ccc;
    padding-left: 2rem;
}

.tree-list li {
    margin-bottom: 1rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--color-text-body);
}

.tree-list li::before {
    content: '•';
    color: var(--color-copper);
    font-size: 1.5rem;
    position: absolute;
    left: -2.6rem;
    top: -0.2rem;
}

/* Page 5: Battery Section */
.battery-icon {
    font-size: 8rem;
    color: var(--color-copper);
    margin: 3rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 200px;
}

.centered-narrow-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

/* REVISED Page 6: Big Statement (HUGE) */
.statement-block {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem;
}

.statement-text {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-dark {
    color: var(--color-text-body);
}

.text-copper {
    color: var(--color-copper);
}

.statement-line {
    display: block;
}

/* Page 7: Spectrum Section */
.spectrum-container {
    text-align: center;
    max-width: 1000px;
}

.spectrum-bar-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 3rem auto;
    display: block;
}

.spectrum-list {
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-text-body);
}

/* Page 8: Arch Section */
.arch-image {
    max-width: 400px;
    margin: 2rem auto;
    display: block;
}

.quote-text-block {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--color-text-body);
}

/* Page 9: Glass Section */
.glass-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-content {
    flex: 1;
    text-align: left;
}

.glass-image {
    flex: 0 0 350px;
    max-width: 100%;
}

/* AGING WHEEL (Page 10) */
.aging-wheel-svg {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    overflow: visible;
    filter: drop-shadow(0px 10px 20px rgba(160, 82, 45, 0.15));
}

.slice path {
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.9;
}

.slice:hover path {
    opacity: 1;
    transform: scale(1.02);
    transform-origin: center;
    filter: brightness(1.1);
}

.wheel-text {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    fill: #ffffff;
    text-transform: uppercase;
    pointer-events: none;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wheel-center-circle {
    fill: var(--bg-paper);
    filter: drop-shadow(0px 5px 10px rgba(0, 0, 0, 0.1));
}

.center-text-title {
    font-family: var(--font-serif);
    font-weight: 700;
    fill: var(--color-text-body);
}

.center-text-sub {
    font-family: var(--font-sans);
    font-weight: 600;
    fill: var(--color-copper);
}

.slice[data-active="true"] path {
    fill: var(--color-copper);
}

/* Page 11: Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.pillar-card {
    text-align: left;
    border-top: 1px solid rgba(160, 82, 45, 0.2);
    padding-top: 1rem;
}

.pillar-title {
    font-family: var(--font-serif);
    color: var(--color-copper);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pillar-text {
    font-size: 1.15rem;
    color: var(--color-text-body);
}

/* Page 12: Approach Flow */
.approach-split {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    align-items: stretch;
}

.approach-col {
    text-align: center;
    padding: 0 1rem;
}

.approach-icon {
    width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
    opacity: 0.8;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--color-copper);
    margin: 1rem 0;
    opacity: 0.5;
}

.flow-step-title {
    font-weight: 700;
    color: var(--color-text-body);
    margin-bottom: 0.5rem;
}

.flow-step-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* Page 13: Promise Split */
.promise-split {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.promise-col {
    text-align: center;
    padding: 1rem;
}

.promise-icon {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    display: block;
}

.promise-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-copper);
    margin-bottom: 1rem;
}

.promise-list {
    text-align: left;
    display: inline-block;
    color: var(--color-text-body);
}

.promise-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Page 14: Questions */
.questions-block {
    text-align: center;
    max-width: 800px;
}

.question-item {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-text-body);
    margin-bottom: 0.8rem;
}

.cta-text-block {
    margin-top: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-body);
}

/* Page 15: Closing */
.closing-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text-body);
    margin-top: 2rem;
    font-weight: 700;
}

/* Missing Grid Class */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.two-col-grid.align-center {
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .guide-container {
        padding: 0 1.5rem;
    }

    .headline-text {
        font-size: 2.8rem;
    }

    .display-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Grids to Stack */
    .comparison-grid,
    .approach-split,
    .promise-split,
    .two-col-grid {
        display: flex;
        /* Override grid */
        flex-direction: column;
        gap: 3rem;
    }

    /* Exceptions for order if needed */
    .two-col-grid>div {
        width: 100%;
    }

    /* Hide dividers on mobile */
    .vertical-divider {
        display: none;
    }

    .horizontal-divider-mobile {
        display: block;
        width: 100%;
        height: 1px;
        background: #ddd;
        margin: 1rem 0;
    }

    /* Stack Glass Layout */
    .glass-layout {
        flex-direction: column-reverse;
        text-align: center;
    }

    .glass-content {
        text-align: center;
    }

    .tree-layout {
        flex-direction: column;
    }

    /* Pillars Grid: 1 col on mobile */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Promises Grid: Stack on mobile */
    .promises-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .promise-card {
        padding: 2rem 1.5rem !important;
    }

    /* Wheel adjustments */
    .aging-wheel-svg {
        max-width: 100%;
        height: auto;
    }

    .wheel-text {
        font-size: 16px;
        /* Slightly bigger on mobile */
    }

    /* Approach Col padding */
    .approach-col {
        padding: 0;
    }

    /* Images */
    .approach-icon,
    .promise-icon {
        width: 100px;
        height: 100px;
    }
}

/* Video Responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.quiz-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(160, 82, 45, 0.1);
}

.quiz-label {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text-body);
    flex: 1;
    padding-right: 1rem;
}

/* Toggle Switch Styling */
.quiz-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.quiz-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: var(--color-copper);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Reveal Animation */
.reveal-hidden {
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.reveal-visible {
    display: block;
    opacity: 1;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}