:root {
    --olive: #98A67E;
    /* Olive green pastel */
    --olive-dark: #748261;
    --olive-light: #B4BF9D;
    --winter-white: #F5F5F0;
    /* Winter white */
    --charcoal: #2D302A;
    /* Deeper charcoal-olive */
    --glass: rgba(245, 245, 240, 0.6);
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--winter-white);
    color: var(--charcoal);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    text-align: justify;
}

/* Background Canvas */
#bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 40px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

#nav-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

#nav-logo:hover {
    transform: scale(1.05);
}

#footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--olive);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: var(--charcoal);
    color: white !important;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--olive);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(152, 166, 126, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    background-color: transparent;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--charcoal);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: var(--sans);
}

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

.btn-white-black {
    display: inline-block;
    padding: 14px 35px;
    background-color: #FFFFFF;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #FFFFFF;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: var(--sans);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-white-black:hover {
    background-color: #f0f0f0;
    color: #000000;
    border-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    font-style: italic;
    font-weight: 400;
    color: var(--olive);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
.section {
    padding: 150px 0;
    position: relative;
}

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

.parallax-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 100px;
}

.parallax-wrapper.reverse {
    flex-direction: row-reverse;
}

.content-box {
    flex: 1;
    max-width: 500px;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--olive);
    margin-bottom: 15px;
    font-weight: 600;
}

.content-box h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.content-box p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.text-link {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--olive);
    padding-bottom: 4px;
    transition: var(--transition);
}

.text-link:hover {
    letter-spacing: 1px;
}

/* Floating Shapes */
.floating-image-container {
    flex: 1;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}



@keyframes float-shape {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 70%;
    }

    100% {
        transform: translate(30px, 50px) scale(1.1) rotate(20deg);
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }
}

/* Grid for Training and Publications */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.7;
}

.training-grid,
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.grid-item,
.publication-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-item:hover,
.publication-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
}

.publication-card {
    padding: 60px;
}

.publication-card h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.publication-card p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.author-info {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Research Section */
.research-featured {
    background: var(--charcoal);
    color: white;
    padding: 100px 0;
    border-radius: 60px;
    margin: 50px 20px;
}

.research-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.research-content.flex-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.research-text {
    flex: 1;
}

.research-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.guidano-img {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition);
}

.guidano-img:hover {
    filter: grayscale(20%) contrast(1);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.research-content h2 {
    font-size: 4rem;
    margin-bottom: 30px;
}

.research-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.research-footer {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .research-content.flex-layout {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    .research-footer {
        justify-content: center;
        flex-wrap: wrap;
    }

    .guidano-img {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        display: block;
        border-radius: 20px;
    }

    .research-image {
        width: 100%;
        justify-content: center;
    }

    .research-content h2 {
        font-size: 2.6rem;
    }

    .research-content p {
        font-size: 1.05rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards ease-out;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1.2s 0.3s forwards ease-out;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1.2s 0.6s forwards ease-out;
}

/* Trama de la Experiencia - Particle Section */
.trama-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #111111;
    /* Deep Charcoal Base */
    overflow: hidden;
    padding: 120px 0;
    display: flex;
    align-items: center;
}

#particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    /* To capture mouse movements */
}

.trama-overlay-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.trama-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    padding: 0 40px;
}

.trama-card {
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    color: white;
    transition: var(--transition);
    transform: translateZ(0);
    /* Hardware acceleration */
}

.trama-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 40, 0.5);
    border-color: rgba(211, 93, 30, 0.3);
    /* Copper hint */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(211, 93, 30, 0.1);
}

.trama-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #D35D1E;
    /* Copper */
}

.trama-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .trama-glass-grid {
        padding: 0 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 100px 20px;
    background: #f0f0ed;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .parallax-wrapper,
    .parallax-wrapper.reverse {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .glass-nav {
        padding: 10px 20px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
        margin: 0;
        padding: 0;
        gap: 30px;
        backdrop-filter: blur(10px);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a.btn-primary {
        display: inline-block;
        width: auto;
    }

    .nav-links .lang-switcher {
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
        /* Above nav links */
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--charcoal);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

/* Footer & Social Integration Redesign */
footer {
    padding: 80px 0 40px;
    background: var(--winter-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-info h2 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.since-text {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.6;
    margin-bottom: 40px;
    font-family: var(--serif);
    font-style: italic;
}

.social-links-central {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.social-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Social Brand Colors */
.social-icon.linkedin {
    color: #0077b5;
}

.social-icon.instagram {
    color: #E4405F;
    /* We use a solid color for SVG fill, or could use a mask for gradient */
}

.social-icon.facebook {
    color: #1877F2;
}

.social-icon.spotify {
    color: #1DB954;
}

.social-icon.apple-music {
    color: #fa233b;
}

.footer-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    gap: 15px;
    position: relative;
    z-index: 100;
    /* Ensure clickability above decorative shapes */
}

.acceso-link {
    color: var(--charcoal);
    opacity: 0.5;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 5px;
}

.acceso-link:hover {
    opacity: 1;
    color: var(--olive);
}

.copyright {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--charcoal);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-bottom {
        justify-content: center;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128C7E;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--charcoal);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* ==========================================================================
   Multi-Language Translation (Google Translate Customization)
   ========================================================================== */

/* Hide default Google Translate widgets and banner */
body {
    top: 0px !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

#google_translate_element {
    position: absolute !important;
    top: -10000px !important;
    left: -10000px !important;
    opacity: 0 !important;
    z-index: -9999 !important;
}

.skiptranslate {
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-tooltip:hover {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure no visual layout shift from text nodes inserted by Google Translate */
font {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

/* Custom Language Switcher Flags in Navigation */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, filter 0.2s ease;
    filter: grayscale(20%);
    /* Slightly muted by default for elegance */
    opacity: 0.8;
}

.lang-flag:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
        justify-content: center;
    }
}

/* ─── Interactive Book Component ─── */
.interactive-book-container {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px auto;
    width: 100%;
}

.interactive-book {
    position: relative;
    width: 450px;
    height: 600px;
    transform-style: preserve-3d;
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1), -10px 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: 5px 15px 15px 5px;
}

@media (max-width: 500px) {
    .interactive-book {
        width: 320px;
        height: 450px;
    }
}

.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 5px 15px 15px 5px;
}

.book-page.flipped {
    transform: rotateY(-180deg);
}

.page-front,
.page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    padding: 30px;
    border-radius: 5px 15px 15px 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-front {
    background: #FFFAF0;
    /* Warm paper color */
    box-shadow: inset 5px 0 20px rgba(0, 0, 0, 0.03);
    border-left: 2px solid #e0d8c8;
}

.page-back {
    background: #FDF6E3;
    transform: rotateY(180deg);
    border-radius: 15px 5px 5px 15px;
    box-shadow: inset -5px 0 20px rgba(0, 0, 0, 0.03);
    border-right: 2px solid #e0d8c8;
}

/* Cover Design */
.cover-front-design {
    background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%);
    padding: 0;
    border: none;
    border-radius: 5px 15px 15px 5px;
    box-shadow: inset 15px 0 20px rgba(0, 0, 0, 0.2);
}

.cover-inner-border {
    position: absolute;
    top: 15px;
    left: 25px;
    right: 15px;
    bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px 10px 10px 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--winter-white);
    padding: 20px;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
}

.cover-icon {
    margin-bottom: 25px;
    color: var(--winter-white);
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cover-inner-border h3 {
    font-family: var(--serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
}

.cover-divider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
    border-radius: 2px;
}

.cover-inner-border p {
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.pub-page {
    display: flex;
    flex-direction: column;
}

.pub-page h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--charcoal);
    line-height: 1.3;
}

.pub-page p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.5;
}

.page-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: #999;
    font-weight: bold;
}

/* ==========================================================================
   Guidano Timeline (Pastel Green Theme)
   ========================================================================== */
.guidano-timeline {
    max-width: 800px;
    margin: 20px auto 0;
    /* Reduced top margin to bring it closer to cards */
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--olive), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 17px;
    top: 0;
    width: 48px;
    height: 48px;
    background: white;
    border: 3px solid var(--olive);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(156, 176, 142, 0.4);
    z-index: 2;
    color: var(--olive);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.15);
    background: var(--olive);
    color: white;
    box-shadow: 0 6px 20px rgba(156, 176, 142, 0.6);
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
}

.timeline-content {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(156, 176, 142, 0.1);
    border-left: 5px solid var(--olive);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Pastel Colors - Predominantly Green */
.item-pastel-1 .timeline-content {
    background-color: #f2f7ed;
    /* Very light pastel green */
    border: 1px solid #e0ebd4;
}

.item-pastel-2 .timeline-content {
    background-color: #ebf2e1;
    /* Slightly more saturated pastel green */
    border: 1px solid #d3e1c4;
}

.item-pastel-3 .timeline-content {
    background-color: #e3ebda;
    /* Distinct pastel green */
    border: 1px solid #c9d8bd;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(156, 176, 142, 0.3);
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--olive-dark);
    margin-bottom: 10px;
    font-family: var(--serif);
}

.timeline-content h3 span {
    font-size: 1rem;
    color: var(--olive);
    font-style: italic;
    font-family: var(--sans);
    font-weight: 500;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 15px;
    text-align: justify;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.5);
    /* Make it pop against pastel */
    padding: 15px;
    border-radius: 8px;
}

.timeline-details li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--charcoal);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
    text-align: justify;
}

.timeline-details li::before {
    content: "•";
    color: var(--olive);
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.2rem;
}

.timeline-details li strong {
    color: var(--olive-dark);
}

@media (max-width: 600px) {
    .timeline-line {
        left: 20px;
    }

    .timeline-icon {
        left: -3px;
        width: 40px;
        height: 40px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* ==========================================================================
   Mobile/Touch Optimizations
   ========================================================================== */
@media (pointer: coarse),
(max-width: 768px) {

    body,
    a,
    button,
    .grid-item,
    .posrac-card {
        cursor: auto !important;
    }

    .custom-cursor-dot,
    .custom-cursor-circle {
        display: none !important;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .therapy-hero h1,
    .formacion-hero h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .interactive-book {
        pointer-events: auto !important;
    }

    .interactive-book-container {
        transform: scale(0.9);
    }
}