/* =========================================
   THE FLOW - MAGAZINE REDESIGN - v1.0
   ========================================= */

:root {
    --mag-primary: #0F172A;
    /* Deep Navy */
    --mag-text: #334155;
    --mag-accent: #FACC15;
    /* Vivid Yellow */
    --mag-cream: #FFFBEB;
    /* Soft light background */
    --mag-white: #FFFFFF;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body.is-magazine {
    font-family: var(--font-body);
    background-color: #FAFAFA;
    color: var(--mag-text);
    overflow-x: hidden;
}

/* UTILS */
.container {
    max-width: 1400px;
    /* Wider container for mag feel */
    margin: 0 auto;
    padding: 0 2rem;
}

.btn-mag-primary {
    display: inline-block;
    background: var(--mag-primary);
    color: var(--mag-white);
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-mag-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-mag-outline {
    display: inline-block;
    border: 2px solid var(--mag-primary);
    color: var(--mag-primary);
    padding: 0.8rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-mag-outline:hover {
    background: var(--mag-primary);
    color: var(--mag-white);
}

/* =========================================
   1. HERO: The Broken Layout
   ========================================= */
.mag-hero {
    position: relative;
    height: 95vh;
    /* Almost full screen */
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 4rem;
}

.mag-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    /* Asymmetric Image */
    height: 100%;
    z-index: 0;
}

.mag-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mag-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #FAFAFA 20%, rgba(250, 250, 250, 0.4) 60%, transparent 100%);
}

.mag-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text-block {
    max-width: 800px;
}

.eyebrow-text {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--mag-text);
    opacity: 0.7;
}

.giant-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 8rem;
    /* Massive */
    line-height: 0.85;
    color: var(--mag-primary);
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.giant-text span {
    display: block;
}

.giant-text .line-2 {
    color: transparent;
    -webkit-text-stroke: 2px var(--mag-primary);
    margin-left: 1.5rem;
    /* Offset */
}

.giant-text .line-3 {
    color: var(--mag-accent);
}

.hero-description {
    max-width: 400px;
}

.hero-description p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* =========================================
   2. EDITORIAL: Methodology
   ========================================= */
.mag-editorial {
    padding: 6rem 0;
    background: var(--mag-white);
}

.editorial-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.editorial-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    color: var(--mag-primary);
}

.accent-bar {
    width: 80px;
    height: 6px;
    background: var(--mag-accent);
    margin-top: 1.5rem;
}

.editorial-col-right {
    padding-top: 1rem;
}

.highlight-paragraph {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.txt-highlight {
    font-weight: 600;
    background: linear-gradient(120deg, rgba(250, 204, 21, 0.3) 0%, rgba(250, 204, 21, 0.3) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mag-primary);
    text-decoration: none;
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.link-arrow span {
    transition: transform 0.3s ease;
}

.link-arrow:hover span {
    transform: translateX(5px);
}

/* =========================================
   3. ASYMMETRIC LIST: Courses
   ========================================= */
.mag-courses {
    padding: 8rem 0;
}

.section-header-minimal {
    margin-bottom: 6rem;
    text-align: center;
}

.section-header-minimal h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--mag-text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header-minimal p {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--mag-primary);
}

.course-flow-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    /* Huge gaps */
}

.course-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.layout-left .course-media {
    width: 55%;
}

.layout-right {
    flex-direction: row-reverse;
}

.layout-right .course-media {
    width: 55%;
}

.course-media {
    position: relative;
    border-radius: 2px;
}

.course-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.05);
    /* Offset shadow */
    transition: transform 0.6s var(--ease-out-expo);
}

.course-item:hover .course-media img {
    transform: scale(0.98);
}

.course-number {
    position: absolute;
    top: -3rem;
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    color: #F1F5F9;
    /* Very light gray */
    z-index: -1;
    line-height: 1;
}

.layout-left .course-number {
    left: -2rem;
}

.layout-right .course-number {
    right: -2rem;
}

.course-info {
    width: 45%;
}

.tag-accent {
    display: inline-block;
    background: var(--mag-accent);
    color: var(--mag-primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.info-wrapper h4 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--mag-primary);
}

.info-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--mag-text);
    opacity: 0.8;
}

.specs-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    border-top: 1px solid #E2E8F0;
    padding-top: 1.5rem;
}

.specs-list li {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Layout Center / Compact items */
.layout-center {
    justify-content: center;
}

.center-card {
    background: white;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.course-media-center img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.course-info-center h4 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--mag-primary);
}

.link-underline {
    display: inline-block;
    font-weight: 700;
    color: var(--mag-primary);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid var(--mag-accent);
    margin-top: 1rem;
}

/* Sub Courses Grid (Semi & Fam) */
.sub-courses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .sub-courses-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .sub-courses-grid .course-item {
        width: 100% !important;
    }

    .center-card {
        padding: 1.5rem;
        width: 100%;
        max-width: none;
    }

    .course-media-center img {
        height: 220px;
        /* Smaller image on mobile */
    }
}

/* =========================================
   4. THE BENTO GRID (Magazine v2 Polish)
   ========================================= */
.blog-grid-section {
    padding: 0 2rem 6rem 2rem;
}

.blog-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Column Request */
    gap: 1.5rem;
    grid-auto-flow: dense;
    /* Allow packing */
}

/* Base Card */
.bento-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--mag-text);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    background: white;
    /* Card BG */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Removed invalid 'group' property */
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

/* Image Container */
.bento-media {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* Card Content */
.bento-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bento-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bento-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--mag-primary);
    transition: color 0.3s ease;

    /* Line Clamp Fix */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-card:hover .bento-title {
    color: var(--mag-accent-dark);
    /* Darker Yellow/Gold if defined, else fallback */
    text-decoration: underline;
    text-decoration-color: var(--mag-accent);
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

/* --- ASYMMETRIC SPANS ("The Bento Feel") --- */

/* Every 1st item (after Hero) - Wide Span */
/* Adjusted for 4 columns: Span 2 cols looks good */
.bento-card:nth-child(7n+1) {
    grid-column: span 2;
}

.bento-card:nth-child(7n+1) .bento-media {
    aspect-ratio: 16/9;
}

/* Every 5th item - Tall Span */
.bento-card:nth-child(7n+5) {
    grid-row: span 2;
}

.bento-card:nth-child(7n+5) .bento-media {
    aspect-ratio: 3/4;
    height: 100%;
}

/* Mobile: Stack everything */
@media (max-width: 768px) {
    .blog-bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-media {
        aspect-ratio: 16/9 !important;
    }
}


/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .giant-text {
        font-size: 5rem;
    }

    .mag-hero-bg {
        width: 100%;
        opacity: 0.3;
    }

    .mag-hero-overlay {
        background: linear-gradient(0deg, #FAFAFA 10%, transparent 100%);
    }

    .course-item {
        flex-direction: column !important;
        gap: 2rem;
    }

    .course-media,
    .course-info {
        width: 100% !important;
    }

    .course-number {
        display: none;
    }

    .bento-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .box-residentes,
    .box-kids,
    .box-spots {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

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

    .editorial-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .giant-text {
        font-size: 4rem;
    }

    .highlight-paragraph {
        font-size: 1.4rem;
    }

    .info-wrapper h4 {
        font-size: 2.2rem;
    }

    .specs-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* =========================================
   ALQUILERES / RENTALS EXTENSIONS
   ========================================= */

/* Process Steps (Editorial List) */
.process-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.step-item:last-child {
    border-bottom: none;
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--mag-accent);
}

.step-text strong {
    display: block;
    font-size: 1.2rem;
    color: var(--mag-primary);
    margin-bottom: 0.2rem;
}

.step-text {
    font-size: 1rem;
    opacity: 0.8;
}

/* Gear Cards & Pricing */
.price-block {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-val {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--mag-primary);
    line-height: 1;
}

.price-per {
    font-weight: 700;
    color: var(--mag-text);
    opacity: 0.5;
    font-size: 0.9rem;
}

.price-block-center {
    justify-content: center;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 1rem;
}

.price-block-center .price-val {
    font-size: 3rem;
}

/* Gear Card Specifics */
.gear-card .course-media {
    background: #f8f8f8;
    /* Light gray background for product shots */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.gear-card .course-media img {
    box-shadow: none;
    /* Remove heavy shadow for isolated product shots */
    transform: scale(0.9);
}

.gear-card:hover .course-media img {
    transform: scale(1);
}

/* Split Hero Styles */
.rental-hero-split {
    display: flex;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    margin-bottom: 4rem;
    background: #FAFAFA;
}

.split-image-side {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.split-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 10s ease;
}

/* HEADER VISIBILITY FIX */
/* Transparent background + Dark Text for Magazine/Diary pages */
body.is-magazine .header:not(.scrolled),
body.is-diary .header:not(.scrolled) {
    background-color: transparent !important;
    box-shadow: none;
}

/* Ensure text is DARK (Black/Navy) for visibility on white/light backgrounds */
body.is-magazine .header:not(.scrolled) .nav-link,
body.is-diary .header:not(.scrolled) .nav-link,
body.is-magazine .header:not(.scrolled) .dropdown-toggle,
body.is-diary .header:not(.scrolled) .dropdown-toggle {
    color: var(--mag-primary) !important;
    /* Navy/Black */
    text-shadow: none;
}

/* Turn Logo Yellow (using filter to match --color-primary #FDD802 from black/white) */
/* Assuming logo starts as black or white. If white (inverted previously), we need to reset and colorize */
body.is-magazine .header:not(.scrolled) .logo img.logo-full,
body.is-diary .header:not(.scrolled) .logo img.logo-full {
    filter: none !important;
    /* Reset to original */
    /* Filter to turn black to #FDD802 approximately */
    filter: invert(78%) sepia(63%) saturate(1088%) hue-rotate(357deg) brightness(101%) contrast(99%) !important;
}



.rental-hero-split:hover .split-image-side img {
    transform: scale(1.05);
    /* Slow zoom effect */
}

.vertical-label {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 3px;
    color: white;
    text-transform: uppercase;
    z-index: 2;
}

.split-content-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: white;
}

.split-content-wrapper {
    max-width: 500px;
}

.giant-text-condensed {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 6rem;
    line-height: 0.9;
    color: var(--mag-primary);
    margin-bottom: 2rem;
}

.hero-desc-clean {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--mag-text);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.price-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--mag-primary);
}


/* Responsive Split */
@media (max-width: 900px) {
    .rental-hero-split {
        flex-direction: column;
        height: auto;
    }

    .split-image-side {
        width: 100%;
        height: 50vh;
    }

    .split-content-side {
        width: 100%;
        padding: 3rem 1.5rem;
    }

    .giant-text-condensed {
        font-size: 4rem;
    }
}

/* =========================================
   VISUAL DIARY (BLOG) STYLES
   ========================================= */

body.is-diary {
    background-color: #ffffff;
    color: #000;
    font-family: 'Outfit', sans-serif;
}

/* Diary Header */
.diary-header {
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 4rem;
}

.diary-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1rem;
}

.diary-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    color: #666;
}

.diary-filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.filter-item {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    padding-bottom: 0.25rem;
}

.filter-item.active::after,
.filter-item:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.diary-entry {
    break-inside: avoid;
    margin-bottom: 4rem;
    cursor: pointer;
}

.diary-entry:hover .entry-media img {
    filter: grayscale(0%);
}

.entry-media {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.entry-media img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.entry-content {
    padding-right: 1rem;
}

.entry-date {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
}

.entry-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.entry-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 1rem;
}

.entry-tag {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #000;
    border: 1px solid #eee;
    padding: 0.2rem 0.5rem;
}

/* Text Only Entry Special Style */
.diary-entry.text-only {
    padding: 3rem;
    background: #fafafa;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diary-entry.text-only .entry-title {
    font-weight: 900;
    font-size: 2rem;
    margin: 2rem 0;
}

/* Responsive Masonry */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

/* =========================================
   ARTICLE EDITORIAL STYLES
   ========================================= */

.article-page {
    background-color: #ffffff;
}

/* Hero Article */
.article-hero {
    position: relative;
    height: 75vh;
    /* Slightly taller */
    display: flex;
    align-items: flex-end;
    /* Text at bottom */
    justify-content: center;
    text-align: center;
    color: white;
    padding-bottom: 6rem;
    /* More space from bottom */
    margin-top: -100px;
    /* Pull up behind transparent header */
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.article-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.8) 100%);
}

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

.article-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--mag-accent);
    /* Yellow */
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Article Body */
.article-body-container {
    padding: 6rem 1.5rem;
    max-width: 800px;
    /* Reading optimizied width */
    margin: 0 auto;
}

.article-body {
    font-family: 'Playfair Display', serif;
    /* Editorial Serif */
    font-size: 1.35rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2,
.article-body h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.article-body blockquote {
    border-left: 4px solid var(--mag-accent);
    padding-left: 2rem;
    font-style: italic;
    color: #555;
    margin: 3rem 0;
    font-size: 1.5rem;
}

.article-footer {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 1rem 2rem;
    background: #f5f5f5;
    color: #333;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #000;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }

    .article-body {
        font-size: 1.15rem;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* =========================================
   BLOG BENTO REDESIGN (Magazine Flow)
   ========================================= */

/* Main Container */
.page-container {
    padding-top: 120px;
    /* Space for fixed header */
}

/* --- FEATURED HERO (Latest Drop) --- */
.blog-featured-section {
    padding: 0 1.5rem 3rem 1.5rem;
}

.featured-card {
    display: block;
    position: relative;
    width: 100%;
    height: 70vh;
    /* Immersive Height */
    border-radius: 20px;
    overflow: hidden;
    color: white;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-card:hover {
    transform: scale(0.99);
    /* Slight press effect */
}

.featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 0;
}

.featured-card:hover .featured-bg {
    transform: scale(1.05);
    /* Zoom effect */
}

/* Dark Gradient Overlay */
.featured-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
}

.featured-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    max-width: 900px;
}

.featured-tag {
    background: var(--mag-accent);
    color: black;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.featured-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.featured-excerpt {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    gap: 0.5rem;
}

/* --- BENTO GRID --- */
.blog-grid-section {
    padding: 0 1.5rem 6rem 1.5rem;
}

.blog-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Cols */
    gap: 1.5rem;
}

/* Bento Card */
.bento-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #000;
    /* Removed invalid group property */
}

.bento-media {
    width: 100%;
    aspect-ratio: 4/3;
    /* Standard rectangle */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background: #f0f0f0;
}

.bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-card:hover .bento-media img {
    transform: scale(1.08);
}

.bento-content {
    display: flex;
    flex-direction: column;
}

.bento-meta {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.bento-cat {
    color: var(--mag-accent);
    /* Yellow Accent */
}

.bento-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    transition: color 0.3s ease;
}

.bento-card:hover .bento-title {
    text-decoration: underline;
    text-decoration-color: var(--mag-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .featured-card {
        height: 50vh;
    }

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

    .featured-content {
        padding: 1.5rem;
    }

    .blog-bento-grid {
        grid-template-columns: 1fr;
    }
}

/* END OF BENTO GRID */

/* =========================================
   5. SPECIAL PROGRAMS BENTO GRID (Surf Page)
   ========================================= */

.mag-bento-section {
    padding: 6rem 0;
    background: #fff;
}

.bento-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mag-text);
    margin-bottom: 2rem;
    font-weight: 700;
}

.bento-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

/* Base Box Style */
.bento-box {
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.box-content {
    position: relative;
    z-index: 2;
}

.bento-box h5 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.bento-box p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Specific Boxes */

/* 1. Residentes (Big Feature) */
.box-residentes {
    grid-column: span 4;
    grid-row: span 1;
    background-color: #000;
    /* Solid Black Background */
    /* NO IMAGE */
    color: white;
}

/* No overlay needed for solid color */
.box-residentes::before {
    display: none;
}

.box-residentes .box-content {
    max-width: 100%;
    /* Full width for text */
    text-align: center;
    /* Center text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.box-residentes h5 {
    font-size: 3.5rem;
    /* Bigger title */
    color: var(--mag-accent);
    /* Yellow */
    margin-bottom: 1rem;
}

.box-residentes p {
    font-size: 1.2rem;
    max-width: 600px;
}

/* 2. Kids (Tall Yellow) */
.box-kids {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--mag-accent);
    color: var(--mag-primary);
}

.box-kids h5 {
    color: black;
}

/* 3. Uni (Dark) */
.box-uni {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--mag-primary);
    color: white;
}

/* 4. Groups (Light) */
.box-groups {
    grid-column: span 1;
    grid-row: span 1;
    background: #F1F5F9;
    color: var(--mag-primary);
}

/* 5. Spots (Wide) */
.box-spots {
    grid-column: span 1;
    grid-row: span 1;
    background: #000;
    color: white;
}

.btn-clean {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: white;
    color: black;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.link-arrow-white {
    color: white;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
    .bento-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-box {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: 250px;
    }

    .box-residentes .box-content {
        max-width: 100%;
    }
}

/* =========================================
   6. NOSOTROS TIMELINE (Premium Bio)
   ========================================= */

.story-intro {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 500;
    color: var(--mag-primary);
}

.story-intro em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    background: linear-gradient(120deg, transparent 0%, transparent 100%, #ffee58 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 90%;
}

.timeline-container {
    position: relative;
    padding-left: 2rem;
    margin-top: 2rem;
    border-left: 2px solid #E2E8F0;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--mag-accent);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.2);
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mag-primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    background: #fff;
    padding-right: 1rem;
}

.timeline-content {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.mission-box {
    margin-top: 4rem;
    background: #000;
    color: #fff;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: serif;
    font-size: 10rem;
    opacity: 0.1;
    color: var(--mag-accent);
}

.mission-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--mag-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.mission-text {
    font-size: 1.3rem;
    line-height: 1.5;
    font-weight: 300;
}

/* Price Tag */
.price-tag {
    display: inline-block;
    background: var(--mag-accent);
    color: var(--mag-primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(253, 216, 2, 0.3);
}

.course-info-center .price-tag {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   PRICING TABLES (Magazine Style)
   ========================================= */
.pricing-section {
    padding: 4rem 0;
    background: #fff;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--mag-primary);
    text-transform: uppercase;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--mag-accent);
    box-shadow: 0 10px 30px rgba(250, 204, 21, 0.2);
    transform: scale(1.05);
    z-index: 2;
}

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.price-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--mag-primary);
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--mag-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.price-suffix {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.price-desc {
    color: #666;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    flex-grow: 1;
}

.btn-price {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--mag-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: auto;
}

.featured .btn-price {
    background: var(--mag-accent);
    color: var(--mag-primary);
}

.btn-price:hover {
    opacity: 0.9;
}

/* Mobile Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto 0;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}

/* =========================================
   SUBPAGE DESIGN POLISH (Magazine Style)
   ========================================= */

/* Hero Section */
.subpage-hero {
    position: relative;
    height: 70vh;
    /* Taller hero */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    /* Removing margin to flow into content */
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.subpage-tag {
    display: inline-block;
    background: var(--mag-accent);
    color: var(--mag-primary);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    /* Slanted look */
}

.subpage-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.subpage-desc {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Grid (Replaces List) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--mag-accent);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-text {
    font-weight: 600;
    color: var(--mag-primary);
    line-height: 1.4;
}

/* Typography Polish */
.mag-section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--mag-primary);
}

.mag-text-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #444;
    font-weight: 300;
}

@media (max-width: 768px) {
    .subpage-title {
        font-size: 3rem;
    }

    .subpage-hero {
        height: 60vh;
    }
}

/* =========================================
   THEME: SEMI-PRIVATE (The Duo)
   ========================================= */
.theme-semi .subpage-tag {
    background: transparent;
    border: 2px solid var(--mag-white);
    color: var(--mag-white);
}

.theme-semi .section {
    text-align: center;
}

.theme-semi .cards-grid {
    grid-template-columns: 1fr;
    /* Centered Stack */
    max-width: 800px;
    margin: 0 auto;
}

.theme-semi .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for Symmetry */
    gap: 3rem;
}

.theme-semi .feature-item {
    background: #fff;
    border: 1px solid var(--mag-primary);
    box-shadow: 10px 10px 0 rgba(15, 23, 42, 0.1);
}

.theme-semi .card.pricing-card.featured {
    max-width: 500px;
    margin: 0 auto;
    border-color: var(--mag-primary);
    box-shadow: 20px 20px 0 rgba(15, 23, 42, 0.1);
}

/* =========================================
   THEME: FAMILY (Playful / Bento)
   ========================================= */
.theme-family .subpage-hero {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
}

.theme-family .cards-grid {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.theme-family .feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Bento Layout for Features */
.theme-family .feature-item:nth-child(1) {
    grid-column: span 3;
    background: #FFFBEB;
    border-color: #FCD34D;
}

.theme-family .feature-item:nth-child(2) {
    grid-column: span 3;
    background: #EFF6FF;
    border-color: #93C5FD;
}

.theme-family .feature-item:nth-child(3) {
    grid-column: span 2;
    background: #F0FDF4;
    border-color: #86EFAC;
}

.theme-family .feature-item:nth-child(4) {
    grid-column: span 4;
    background: #FEF2F2;
    border-color: #FCA5A5;
}

.theme-family .feature-item {
    border-radius: 20px;
    border-width: 2px;
    box-shadow: none;
}

.theme-family .feature-icon {
    font-size: 3rem;
}

.theme-family .pricing-section {
    background: #FFFBEB;
    /* Cream background for warmth */
    border-radius: 50px 50px 0 0;
    margin-top: -50px;
    padding-top: 6rem;
    position: relative;
    z-index: -1;
}

/* =========================================
   THEME: SURFCAMPS (The Escape)
   ========================================= */
.surfcamp-hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.surfcamp-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.surfcamp-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.badge-coming-soon {
    display: inline-block;
    background: var(--mag-accent);
    color: var(--mag-primary);
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    transform: rotate(-2deg);
}

.waitlist-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 3rem;
    display: inline-block;
}

/* Bento Grid for Features */
.surfcamp-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 4rem 0;
}

.bento-item {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--mag-primary);
    color: #fff;
}

.bento-tall {
    grid-row: span 2;
    background: var(--mag-accent);
    color: var(--mag-primary);
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bento-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

/* =========================================
   SURFCAMPS PAGE - MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    /* Hero Section */
    .surfcamp-hero {
        padding: 6rem 1.5rem 4rem 1.5rem;
        /* Adjusted padding */
        text-align: center;
        /* Center text on mobile */
        min-height: 80vh;
        /* Allow it to shrink a bit */
    }

    .surfcamp-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .surfcamp-content .giant-text {
        font-size: 3.5rem !important;
        /* Smaller title */
        line-height: 1;
        margin-top: 1rem;
    }

    .surfcamp-content p {
        font-size: 1.1rem !important;
        /* Readable text */
    }

    /* Waitlist Form */
    .waitlist-form form {
        flex-direction: column;
        gap: 1rem;
    }

    .waitlist-input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .btn-waitlist {
        width: 100%;
    }

    /* Bento Grid */
    .surfcamp-bento {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .bento-item {
        min-height: auto;
        padding: 2rem;
    }

    .bento-wide {
        grid-column: span 1;
    }

    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-tall {
        grid-row: span 1;
    }

    .bento-wide>div {
        flex-direction: column;
        text-align: center;
        gap: 1rem !important;
    }
}

/* =========================================
   BONO RESIDENTE - MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    /* Main Layout Stacking */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        display: flex;
        flex-direction: column;
    }

    /* Sticky Sidebar Reset */
    .cards-grid>div:last-child>div {
        position: static !important;
        margin-top: 2rem;
    }

    /* Feature Grid Stacking */
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Kids Section specific override */
    .cards-grid[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Ensure images in grids are full width */
    .cards-grid img {
        width: 100%;
        height: auto;
    }
}