/* ============================================
   MENTALIDAD DE SURFISTA — Landing Page
   Palette: Ocean depths, turquoise, sand, coral
   ============================================ */

:root {
    /* Ocean palette */
    --ocean-deep: #0a1628;
    --ocean-dark: #0f2440;
    --ocean-mid: #1a3a5c;
    --ocean-blue: #1e6091;
    --turquoise: #2ec4b6;
    --turquoise-light: #3dd5c7;
    --turquoise-glow: rgba(46, 196, 182, 0.15);

    /* Warm accents */
    --coral: #e76f51;
    --coral-light: #f4a261;
    --sand: #e9c46a;
    --sand-light: #faf3e0;
    --sand-cream: #fdf8ef;

    /* Neutrals */
    --white: #ffffff;
    --gray-100: #f7f7f8;
    --gray-200: #e5e5e7;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section {
    padding: var(--section-padding) 0;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-img {
    height: 36px;
    width: auto;
    transition: opacity 0.3s;
}

.nav-logo-img:hover {
    opacity: 0.8;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

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

.nav-cta {
    background: var(--turquoise);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--turquoise-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ocean-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        url('hero-bg.webp') center center / cover no-repeat;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 22, 40, 0.7) 0%,
            rgba(10, 22, 40, 0.5) 40%,
            rgba(10, 22, 40, 0.6) 70%,
            var(--ocean-deep) 100%
        ),
        radial-gradient(ellipse at 20% 50%, rgba(30, 96, 145, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(46, 196, 182, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 3rem;
    width: 80vw;
    max-width: 80vw;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-book {
    flex-shrink: 0;
    opacity: 0;
    animation: fadeInUp 0.8s 0.6s forwards;
}

.hero-book-inner {
    animation: bookFloat 4s ease-in-out infinite;
    perspective: 800px;
}

.hero-book-3d {
    position: relative;
    display: inline-block;
    transform: rotateY(-8deg);
    transform-style: preserve-3d;
}

.hero-book-3d::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 16px;
    height: calc(100% - 4px);
    background: linear-gradient(90deg, #1a3a5c, #1e4d70, #1a3a5c);
    transform: rotateY(90deg) translateZ(0px) translateX(-8px);
    transform-origin: left center;
    border-radius: 2px 0 0 2px;
}

.hero-book-3d::after {
    content: '';
    position: absolute;
    top: 4px;
    right: -12px;
    width: 12px;
    height: calc(100% - 8px);
    background:
        repeating-linear-gradient(
            to bottom,
            #f5f0e8 0px,
            #f5f0e8 1px,
            #e8e0d4 1px,
            #e8e0d4 2px
        );
    border-radius: 0 2px 2px 0;
    transform: translateZ(-1px);
    box-shadow: 2px 0 4px rgba(0,0,0,0.15);
}

.hero-book-cover {
    width: 220px;
    height: auto;
    display: block;
    border-radius: 4px 8px 8px 4px;
    position: relative;
    z-index: 2;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(46, 196, 182, 0.15),
        0 0 80px rgba(46, 196, 182, 0.08);
}

.hero-book-shimmer {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    pointer-events: none;
}

.hero-book-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.12) 60%,
        transparent 100%
    );
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 60% { left: -80%; opacity: 0; }
    61% { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

@keyframes bookFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero event banner with countdown */
.hero-event-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s forwards;
}

.hero-event-info {
    text-align: left;
}

.hero-event-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 0.4rem;
}

.hero-event-place {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

.hero-tag {
    display: inline-block;
    color: var(--turquoise-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--turquoise-light), var(--sand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s 0.9s forwards;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s 1.1s forwards;
}

.hero-meta-divider {
    color: var(--turquoise);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--turquoise), transparent);
    animation: scrollPulse 2s infinite;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--turquoise), var(--ocean-blue));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(46, 196, 182, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 196, 182, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    border-color: var(--turquoise-light);
    color: var(--turquoise-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.75rem;
    font-size: 1.05rem;
}

/* ---- Event Section ---- */
.section-event {
    background: linear-gradient(180deg, var(--ocean-deep) 0%, #0d1f35 100%);
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.event-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.event-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.08), transparent 70%);
    pointer-events: none;
}

.event-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.4rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 111, 81, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(231, 111, 81, 0.2); }
}

.event-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: center;
}

.event-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.event-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.event-description strong {
    color: rgba(255,255,255,0.9);
}

.event-details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 196, 182, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-detail-icon svg {
    width: 20px;
    height: 20px;
    color: var(--turquoise-light);
}

.event-detail strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

.event-detail span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.event-media-wrapper {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/16;
    max-height: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    cursor: pointer;
}

.event-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity 0.3s;
}

.event-poster.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.event-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.event-video.active {
    z-index: 1;
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s;
}

.video-play-btn svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: transform 0.3s;
}

.video-play-btn:hover svg {
    transform: scale(1.1);
}

.video-play-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
}

.countdown-number {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.countdown-unit {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
}

.countdown-sep {
    font-size: 1.25rem;
    color: var(--turquoise);
    opacity: 0.4;
    margin-top: -0.75rem;
}

.btn-event {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    box-shadow: 0 4px 20px rgba(231, 111, 81, 0.3);
}

.btn-event:hover {
    box-shadow: 0 8px 30px rgba(231, 111, 81, 0.4);
    transform: translateY(-2px);
}

/* ---- Wave Dividers ---- */
.wave-divider {
    margin-top: -1px;
    line-height: 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
}

.wave-divider-flip {
    margin-bottom: -1px;
    margin-top: 0;
}

/* ---- Section Tags & Titles ---- */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--turquoise);
    margin-bottom: 1rem;
}

.section-tag-light {
    color: var(--turquoise-light);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* ---- Book Section ---- */
.section-book {
    background: var(--sand-light);
}

.book-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
}

.book-cover-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-cover-wrapper {
    perspective: 800px;
}

.book-3d {
    position: relative;
    display: inline-block;
    transform: rotateY(-8deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-cover-wrapper:hover .book-3d {
    transform: rotateY(-12deg) translateY(-6px);
}

.book-cover {
    width: 280px;
    display: block;
    border-radius: 4px 8px 8px 4px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Spine / lomo del libro */
.book-3d::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 18px;
    height: calc(100% - 4px);
    background: linear-gradient(90deg, #1a3a5c, #1e4d70, #1a3a5c);
    transform: rotateY(90deg) translateZ(0px) translateX(-9px);
    transform-origin: left center;
    border-radius: 2px 0 0 2px;
}

/* Paginas / borde derecho */
.book-3d::after {
    content: '';
    position: absolute;
    top: 4px;
    right: -14px;
    width: 14px;
    height: calc(100% - 8px);
    background:
        repeating-linear-gradient(
            to bottom,
            #f5f0e8 0px,
            #f5f0e8 1px,
            #e8e0d4 1px,
            #e8e0d4 2px
        );
    border-radius: 0 2px 2px 0;
    transform: translateZ(-1px);
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.book-cover-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 24px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.15) 0%, transparent 70%);
}

.book-description {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.book-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.book-detail strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.book-detail span {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.book-isbn {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-top: 1rem;
}

/* ---- Quote Section ---- */
.section-quote {
    padding: 0;
}

.quote-bg {
    background:
        linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-dark) 100%);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.quote-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--turquoise-glow), transparent 70%);
    pointer-events: none;
}

.main-quote {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-family: var(--font-serif);
    font-size: 8rem;
    line-height: 0;
    color: var(--turquoise);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: -2rem;
}

.main-quote p {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--white);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.main-quote footer {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--turquoise-light);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ---- Pillars Section ---- */
.section-pillars {
    background: var(--sand-light);
}

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

.pillar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--turquoise-glow);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    color: var(--turquoise);
}

.pillar-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ---- Author Section ---- */
.section-author {
    background: var(--white);
}

.author-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.author-role {
    font-size: 1rem;
    color: var(--turquoise);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.author-bio {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.author-visual {
    display: flex;
    justify-content: center;
}

.author-image-frame {
    position: relative;
    width: 450px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--turquoise-glow), var(--sand-light));
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ---- CTA Section ---- */
.section-cta {
    padding: 0;
}

.cta-bg {
    background:
        linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-dark) 50%, var(--ocean-mid) 100%);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg::before,
.cta-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-bg::before {
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.08), transparent 70%);
}

.cta-bg::after {
    bottom: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233, 196, 106, 0.06), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.25rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--turquoise-light);
    font-weight: 600;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.price-format {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 1rem;
}

.cta-actions {
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Comments Section ---- */
.section-comments {
    background: var(--sand-light);
}

.comment-form-card {
    max-width: 640px;
    margin: 0 auto 3rem;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
}

.comment-form-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--turquoise);
    background: var(--white);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--gray-400);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.btn-submit {
    padding: 0.65rem 1.75rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.form-success {
    text-align: center;
    padding: 1.5rem;
    color: var(--turquoise);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Displayed comments */
.comments-display {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.public-comment {
    background: var(--white);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
}

.public-comment:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.public-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.public-comment-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.public-comment-date {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.public-comment-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
}

.comments-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .form-note {
        text-align: center;
    }
}

/* ---- Footer ---- */
.footer {
    background: var(--gray-900);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-isbn {
    font-size: 0.8rem !important;
    color: var(--gray-600) !important;
}

.footer-editorial {
    font-size: 0.8rem !important;
    color: var(--gray-600) !important;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--turquoise-light);
}

.footer-wave {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wave svg {
    width: 100%;
    height: 30px;
    opacity: 0.5;
}

.footer-powered {
    text-align: center;
    padding-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    letter-spacing: 0.02em;
}

.footer-powered a {
    color: var(--turquoise);
    font-weight: 500;
    transition: color 0.3s;
}

.footer-powered a:hover {
    color: var(--turquoise-light);
}

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Scroll-triggered animations */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .event-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-media-wrapper {
        max-height: 400px;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-bg {
        background-position: 35% center;
    }

    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-book-cover {
        width: 160px;
    }

    .hero-event-banner {
        flex-direction: column;
        gap: 1.25rem;
    }

    .hero-event-info {
        text-align: center;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .book-cover {
        width: 220px;
    }

    .book-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .author-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .author-image-frame {
        width: 320px;
        height: 230px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .hero-meta-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .quote-mark {
        position: static;
        display: block;
        margin-bottom: -2rem;
    }

    .price-format {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cta-price {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .book-details {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.75rem;
    }
}
