:root {
    --naranja: #ff8000;
    --naranja-oscuro: #e67300;
    --verde: #2f6a00;
    --verde-claro: #4a7c1a;
    --blanco: #ffffff;
    --negro: #1a1a1a;
    --gris: #f5f5f5;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--negro);
    overflow-x: hidden;
}

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

/* Navigation & Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1500;
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.main-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.8rem 0;
    box-shadow: none;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.05);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 1600;
}

.hamburger .bar {
    width: 32px;
    height: 3px;
    background: var(--blanco);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.scrolled .hamburger .bar {
    background: var(--negro);
}

/* Side Menu Overlay */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: var(--blanco);
    z-index: 3000;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    right: 0;
}

.menu-content {
    height: 100%;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
}

.menu-logo {
    height: 60px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 3.5rem;
    color: var(--negro);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: var(--naranja);
}

.menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.menu-links li {
    overflow: hidden;
}

.menu-links a {
    text-decoration: none;
    color: var(--negro);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.2;
}

.menu-links a:hover {
    color: var(--naranja);
    transform: translateX(10px);
}

.menu-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.menu-footer p {
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.social-mini {
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--verde) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Flying Cards Styles */
.flying-card {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 28px;
    border-radius: 50px;
    color: var(--blanco);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fly-up linear forwards;
    white-space: nowrap;
}

.flying-card span:first-child {
    font-size: 1.4rem;
}

@keyframes fly-up {
    0% { 
        transform: translateY(0) rotate(var(--rotation-start)) scale(0.6); 
        opacity: 0; 
    }
    15% { 
        opacity: 0.8; 
    }
    85% { 
        opacity: 0.8; 
    }
    100% { 
        transform: translateY(-120vh) rotate(var(--rotation-end)) scale(1.3); 
        opacity: 0; 
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--blanco);
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 7vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}

.title-break {
    display: block;
    font-size: 0.85em;
    opacity: 0.95;
    margin-top: 0.5rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.hero-tag {
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.95;
    font-style: italic;
}

.hero-cta {
    display: inline-block;
    background: var(--blanco);
    color: var(--naranja);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Floating elements */
.floating-element {
    position: absolute;
    color: var(--blanco);
    opacity: 0.1;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes jump-badge {
    0%, 100% { transform: scale(0.7) translateY(0); }
    50% { transform: scale(0.7) translateY(-30px); }
}

/* Narrative Section */
.narrative {
    padding: 6rem 0;
    background: var(--gris);
}

.narrative-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--verde);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
}

.narrative-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.narrative-card {
    background: var(--blanco);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.narrative-card:hover {
    transform: translateX(8px);
    border-color: var(--naranja);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.narrative-card.active {
    border-left: 6px solid var(--naranja);
}

.card-header {
    padding: 1.8rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    user-select: none;
}

.card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--verde);
    margin: 0;
    font-weight: 700;
}

.card-icon {
    width: 32px;
    height: 32px;
    background: var(--gris);
    color: var(--naranja);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.narrative-card.active .card-icon {
    transform: rotate(45deg);
    background: var(--naranja);
    color: white;
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    padding: 0 2.2rem;
    opacity: 0;
    background: #fff;
}

.narrative-card.active .card-body {
    max-height: 500px;
    padding-bottom: 2rem;
    opacity: 1;
}

.card-body p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* Experiences Section */
.experiences {
    padding: 5rem 0;
    background: var(--blanco);
}

.experiences h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--naranja);
    margin-bottom: 3rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-card {
    background: linear-gradient(135deg, var(--naranja-oscuro) 0%, #4d2600 100%);
    color: var(--blanco);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.exp-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background: var(--negro);
    color: var(--blanco);
}

.map-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    height: 1000px;
    background: radial-gradient(circle at center, #1a3a00 0%, #0a1a00 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    border: 2px solid rgba(255, 128, 0, 0.3);
}

.lantern {
    position: absolute;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.lantern::before {
    content: '🔦';
    display: block;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
}

.lantern.active {
    animation: lantern-glow 1.5s ease-in-out infinite;
}

.lantern.active::before {
    filter: drop-shadow(0 0 15px var(--naranja)) brightness(1.2);
}

.lantern.inactive {
    opacity: 0.4;
    filter: grayscale(1) contrast(0.8);
}

@keyframes lantern-glow {
    0%, 100% { 
        transform: scale(1) translate(-50%, -50%);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.2) translate(-50%, -50%);
        filter: brightness(1.4);
    }
}

.lantern-label {
    position: absolute;
    background: var(--blanco);
    color: var(--negro);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    transform: translateX(-50%) translateY(-45px);
    left: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 20;
}

.lantern:hover .lantern-label,
.lantern.show-label .lantern-label {
    opacity: 1;
}

/* 3D Map Effects */
.map-3d-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 20%, rgba(255, 128, 0, 0.15) 40%, transparent 60%);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.map-glow {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle at center, rgba(255, 128, 0, 0.3) 0%, rgba(255, 128, 0, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: map-pulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes map-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

/* Chile SVG Regions */
.chile-regions {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: calc(100% - 40px);
    width: auto;
    filter: drop-shadow(0 0 15px rgba(47, 106, 0, 0.4));
}

.region {
    fill: #1a4a00;
    stroke: rgba(255, 128, 0, 0.4);
    stroke-width: 0.5;
    transition: all 0.4s ease;
    cursor: pointer;
}

.region:hover {
    fill: var(--verde-claro);
    stroke: var(--naranja);
    stroke-width: 1;
    filter: brightness(1.2);
}

.region.highlight {
    fill: var(--verde-claro);
    stroke: var(--naranja);
}

/* Tooltip style */
.map-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    display: none;
    border: 1px solid var(--naranja);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
}

.map-tooltip strong {
    display: block;
    color: var(--naranja);
    margin-bottom: 2px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background: var(--blanco);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    position: relative;
    padding: 40px;
    animation: modalFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--negro);
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--negro);
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--naranja);
    font-size: 2rem;
    margin-bottom: 10px;
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.workshop-card {
    background: var(--gris);
    border-left: 5px solid var(--verde);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.workshop-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.workshop-card h4 {
    color: var(--verde);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.workshop-info {
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.workshop-info span {
    font-weight: 600;
    color: var(--naranja-oscuro);
    flex-shrink: 0;
}

.region-label {
    fill: #ffffff;
    font-size: 9px;
    font-weight: 900;
    text-anchor: middle;
    pointer-events: none;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}



/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--verde) 0%, var(--naranja) 100%);
    text-align: center;
    color: var(--blanco);
}

.cta-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.investment-info {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.investment-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blanco);
    color: var(--verde);
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.investment-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--blanco);
}

.investment-text strong {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--naranja);
    text-underline-offset: 4px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    background: var(--blanco);
    color: var(--naranja);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-outline {
    background: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);
}

.cta-outline:hover {
    background: var(--blanco);
    color: var(--verde);
}

/* Book & Author Sections */
.book-launch {
    padding: 6rem 0;
    background: #fdfdfd;
    overflow: hidden;
}

.book-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.book-carousel-container {
    flex: 1.2;
    min-width: 320px;
    position: relative;
}

.book-carousel {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

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

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Align image to bottom to make room for tag */
    padding: 50px 20px 20px 20px; /* More top padding for the badge */
    box-sizing: border-box;
}

.carousel-slide img, .zoomable {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-nav {
    position: absolute;
    top: 60%; /* Adjusted to be centered with the image content area */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--naranja);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--naranja);
    color: white;
}

.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--naranja);
    width: 24px;
    border-radius: 10px;
}

.zoom-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-carousel:hover .zoom-hint {
    opacity: 1;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex !important;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.book-badge {
    position: absolute;
    top: 10px; /* Moved up relative to image due to increased slide padding */
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    background: var(--naranja);
    color: white;
    padding: 8px 24px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
    white-space: nowrap;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-text-content {
    flex: 1.2;
    min-width: 320px;
}

.eyebrow {
    color: var(--naranja);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.book-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--verde);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.book-subtitle {
    display: block;
    font-size: 0.6em; /* Increased size for better readability */
    color: var(--negro);
    margin-top: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 95%;
}

.author-tag {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.book-copy {
    font-size: 1.1rem;
    color: #444;
}

.book-copy p {
    margin-bottom: 1.5rem;
}

.book-quote {
    border-left: 4px solid var(--naranja);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--negro);
    font-weight: 500;
}

.book-features {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-dot {
    width: 12px;
    height: 12px;
    background: var(--verde);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    font-size: 1rem;
}

.book-purchase-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed var(--naranja);
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 128, 0, 0.1);
}

.cta-mini-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--verde);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(47, 106, 0, 0.3);
}

.buy-button:hover {
    transform: scale(1.05) translateY(-3px);
    background: var(--verde-claro);
    box-shadow: 0 15px 30px rgba(47, 106, 0, 0.4);
}

.buy-icon {
    font-size: 1.4rem;
}

.format-icons {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
}

/* Author Bio Section Modernized */
.author-bio {
    padding: 10rem 0;
    background: #0a1400; /* Verde bosque profundo */
    position: relative;
    overflow: hidden;
    color: #fff;
}

.author-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 140%;
    background: radial-gradient(circle at center, rgba(255, 128, 0, 0.12) 0%, transparent 70%);
    z-index: 0;
    filter: blur(80px);
}

.author-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    padding: 4rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.author-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.author-image-container {
    position: relative;
    border-radius: 30px;
}

.author-img-modern {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.author-card-modern:hover .author-img-modern {
    transform: translateY(-10px) rotate(-1deg);
}

.author-badge-floating {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: white;
    padding: 10px 18px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: jump-badge 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    transform: scale(0.7);
    transform-origin: bottom right;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--verde);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.author-skills-pills {
    margin-top: 3rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.skill-pill:hover {
    background: var(--naranja);
    color: white;
    transform: translateY(-2px);
}

.author-eyebrow {
    color: var(--naranja);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.author-display-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.author-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #f7fafc;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

.author-text-details p {
    margin-bottom: 1.2rem;
    color: #cbd5e0;
    line-height: 1.8;
}

.author-quote-modern {
    margin-top: 2.5rem;
    position: relative;
    padding: 2.5rem;
    background: rgba(255, 128, 0, 0.05);
    border-radius: 24px;
    border-left: 5px solid var(--naranja);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.quote-mark {
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    color: var(--naranja);
    opacity: 0.1;
    line-height: 1;
}

.author-quote-modern p {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1.15rem;
    color: #fff;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

@media (max-width: 992px) {
    .author-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .author-card-modern {
        padding: 3rem 2rem;
    }

    .author-image-container {
        max-width: 350px;
        margin: 0 auto;
    }

    .author-bg-accent {
        display: none;
    }
}

/* Essence Banner */
.essence-banner {
    padding: 4rem 0;
    background: #1a1a1a;
    color: white;
    text-align: center;
}

.essence-box {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.essence-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
    font-weight: 400;
}

.essence-text strong {
    color: var(--naranja);
    font-weight: 900;
}

/* Thermometer Section */
.thermometer-section {
    padding: 7rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
    text-align: center;
    position: relative;
}

.thermometer-container {
    max-width: 650px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #fdfdfd);
    padding: 4rem 3rem;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(47, 106, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 128, 0, 0.1);
}

.thermometer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--verde), var(--naranja));
}

.thermometer-progress {
    width: 100%;
    height: 10px;
    background: #eef2f5;
    border-radius: 10px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.thermometer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--verde) 0%, var(--naranja) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 10px rgba(255, 128, 0, 0.3);
}

.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

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

.quiz-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--verde);
    margin-bottom: 2rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background: #fff;
    border: 2px solid #f0f0f0;
    padding: 1.2rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.quiz-option:hover {
    border-color: var(--naranja);
    background: linear-gradient(to right, #ffffff, #fff9f2);
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 128, 0, 0.1);
    color: var(--negro);
}

.quiz-option span {
    width: 34px;
    height: 34px;
    background: #f7f9fb;
    color: #888;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quiz-option:hover span {
    background: var(--naranja);
    color: white;
    transform: rotate(10deg);
}

/* Result Styles */
.result-container {
    display: none;
    text-align: center;
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.thermometer-visual {
    width: 44px;
    height: 220px;
    background: #eef2f5;
    border-radius: 40px;
    margin: 3rem auto;
    position: relative;
    border: 3px solid #d1d9e0;
    padding: 3px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.thermometer-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #3498db, #2ecc71, #f1c40f, #e67e22, #e74c3c);
    background-size: 100% 220px;
    border-radius: 40px;
    transition: height 2s cubic-bezier(0.19, 1, 0.22, 1);
    height: 0%;
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.2);
}

.thermometer-bulb {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid #d1d9e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 1.5s ease;
}

.thermometer-bulb::after {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: absolute;
    top: 20%;
    left: 20%;
}

.result-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--naranja);
    margin-top: 1rem;
}

.result-text {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.restart-btn {
    background: none;
    border: 1px solid var(--verde);
    color: var(--verde);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .title-break {
        display: inline;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 500px;
    }

    .thermometer-container {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 12px;
    }
}

/* Footer & Social Icons */
.main-footer {
    padding: 5rem 0 3rem;
    background: #000;
    color: var(--blanco);
    text-align: center;
    border-top: 1px solid rgba(255, 128, 0, 0.2);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 4px 8px rgba(255, 128, 0, 0.2));
}

.social-link:hover {
    transform: translateY(-8px) scale(1.15);
}

.social-link:hover img {
    filter: drop-shadow(0 6px 15px rgba(255, 128, 0, 0.4)) brightness(1.1);
}

.copyright {
    font-size: 0.95rem;
    opacity: 0.8;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}