/* Variables Globales */
:root {
    /* Brand Colors - Semantic */
    --color-primary: #F39620;
    --color-primary-light: #FBBB54;
    --color-teal: #3E938E;
    --color-teal-light: #69ACA7;
    --color-teal-dark: #11676A;
    --color-brown: #7E4208;
    --color-brown-dark: #3C2800;

    /* UI Colors */
    --color-ffffff: #ffffff;
    --color-fdfbf7: #fdfbf7;
    --color-f0f0f0: #f0f0f0;
    --color-e5e7eb: #e5e7eb;
    --color-eee: #eee;
    --color-ddd: #ddd;
    --color-666666: #666666;
    --color-ef4444: #ef4444;
    --color-dc2626: #dc2626;
    --color-d68215: #d68215;
    
    /* Semantic Pointers for Layout */
    --bg-main: var(--color-fdfbf7);
    --bg-surface: var(--color-ffffff);
    --bg-secondary: var(--color-f0f0f0);
    --border-main: var(--color-e5e7eb);
    --border-light: var(--color-eee);
    --border-dark: var(--color-ddd);
    --alert-danger: var(--color-ef4444);
    --alert-danger-hover: var(--color-dc2626);
    --color-btn-hover: var(--color-d68215);

    /* Tipografia */
    --font-heading: 'Chewy', cursive;
    --font-body: 'Poppins', sans-serif;
    --font-highlight: 'Georgia', serif;

    /* Layout Base */
    --container-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

/* ===== COMPONENTES: Comentarios ===== */
.comments-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-main);
}

.comments-header {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-brown-dark);
    margin-bottom: 2rem;
}

.comment-list {
    margin-bottom: 3rem;
}

.comment-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-teal-light);
}

.comment-content strong {
    display: block;
    color: var(--color-brown-dark);
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.comment-content small {
    color: var(--color-666666);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.5rem;
}

.comment-content p {
    margin: 0;
    line-height: 1.5;
}

.comment-form-container {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-main);
}

.comment-form-container h4 {
    font-family: var(--font-heading);
    color: var(--color-teal);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    resize: vertical;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

html {
    font-size: 15px;
}

body {
    font-family: var(--font-body);

    background-color: var(--bg-main);
    color: var(--color-666666);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);

    color: var(--color-teal);
    line-height: 1.2;
    font-weight: 400;

    letter-spacing: 0.5px;
}

h1 {
    color: var(--color-primary);

}

.hero p {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-teal-dark);
    font-family: var(--font-body);

}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.cart-remove-btn {
    color: var(--alert-danger);

    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;

    padding: 0 0.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: var(--alert-danger-hover);

}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn { display: inline-block; text-align: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 150, 32, 0.3);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--color-666666);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);

}

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

.hidden {
    display: none !important;
}

header {
    background-color: var(--bg-main);

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 3px solid var(--color-teal-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;

    padding: 0.5rem 0;
    position: relative;
}

.logo {
    font-family: 'Chewy', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-teal);
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: 1px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.logo img {
    height: 90px;
    width: auto;
    border-radius: 12px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.05);

}

.logo:hover img {
    transform: rotate(-5deg) scale(1.1);

}

.menu-toggle { display: block; font-size: 1.5rem; color: var(--color-teal-dark); cursor: pointer; transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease; } .menu-toggle:active, .menu-toggle:hover { transform: scale(1.15); color: var(--color-primary); opacity: 0.8; }

.nav-links {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background-color: var(--bg-main);
    flex-direction: column;
    padding: 0;
    gap: 0;
    list-style: none;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--color-teal-light);
}

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

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

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-brown);
    display: block;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);

    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;

}

.nav-links a:hover {
    color: var(--color-primary);
    transform: scale(1.15);

}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--color-teal-dark);
    width: 45px;

    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

    transition: all 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.cart-icon:hover {
    background-color: #e0e7e725;

    color: var(--color-primary);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: scale(1.15);

}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    border: 2px solid white;
    transition: background-color 0.3s ease;
}

.cart-icon:hover .cart-badge {
    background-color: var(--color-teal-dark);

}

/* ===== HEADER/NAV: Desktop ===== */

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-brown);
}

.hero h1 span {
    color: var(--color-primary);
}

section { padding: 1.5rem 0; }

section.promo-banner,
section#promo-banner,
section.slider-container,
section#home-slider {
    padding: 0;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    position: relative;
    color: var(--color-teal);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary-light);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    font-family: var(--font-highlight);
}

#galeria {
    scroll-margin-top: 120px;

}

.partners {
    background-color: transparent;
}

.partners-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.partner {
    background: #fff;
    padding: 0.25rem;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 130px;
    max-width: 160px;

    aspect-ratio: 1/1;
    border: 1px solid var(--border-main);
    overflow: hidden;
}

.partner:hover {
    transform: scale(1.05);
    border-color: var(--color-teal-light);
}

.partner img {
    width: 95%;

    height: 95%;
    object-fit: contain;

    border-radius: 8px;

}

/* ===== GRIDS: base mobile (2 columnas) ===== */
.grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.card>a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image { aspect-ratio: 16 / 9; height: 120px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid var(--bg-secondary);
    overflow: hidden;
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Cards 1:1 para productos y cursos (mantener blog y álbumes en 16:9) */
#product-list .card-image,
#featured-product-list .card-image,
#course-list .card-image,
#featured-courses .card-image {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

.card-content {
    padding: 0.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-content > :last-child {
    margin-top: auto;
}

.card-title {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--color-teal-dark);
    font-family: var(--font-heading);
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-price {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0;
}

.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.25rem;
}

.card .btn:not(.btn-large) {
    width: 100%;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.card-content > .btn {
    margin-top: auto;
}

/* ===== BIO ===== */
.bio-section { background: #fff; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; border-radius: 24px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); padding: 1.25rem; margin: 1rem 1rem;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.bio-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary-light);
}

.bio-image {
    flex: 1;
    width: 100%;
    max-width: 260px;
    margin: 0 auto 0.5rem;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.bio-image img {
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    display: block;
}

.bio-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.bio-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.bio-slide.active {
    opacity: 1;
}

.bio-slideshow .bio-slide:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bio-content {
    flex: 2;
    width: 100%;
    text-align: center;
    padding-top: 0;
    padding-bottom: 1rem;
}

footer {
    background-color: var(--color-brown-dark);
    color: #fff;
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    font-family: var(--font-body);
}

.footer-content h3,
.footer-heading {
    color: var(--color-primary-light);
    font-size: 1.8rem;

    margin-bottom: 1rem;
    font-family: var(--font-heading);

}

.footer-heading.contact {
    font-family: var(--font-body);

    font-size: 1rem;

}

.bio-title::after {
    margin: 0.5rem auto 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    margin: 0.25rem;
    font-weight: 600;
    transition: transform 0.2s;
    font-family: var(--font-body);
}

.social-btn:hover {
    transform: scale(1.1);
}

.instagram {
    background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
}

.facebook {
    background: #3b5998;
}

.tiktok {
    background: #000;
}

.youtube {
    background: #ff0000;
}

.whatsapp {
    background: #25d366;
}

.email-contact {
    background: var(--color-666666);

    margin-top: 1rem;
}

.email-contact:hover {
    background: var(--color-teal-dark);
}

/* ===== CARRITO ===== */
#cart-modal {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 1.5rem;
    overflow-y: auto;
    transition: transform 0.3s ease;
    animation: slideUp 0.3s ease-out;
}

#cart-modal h3 {
    font-size: 1.2rem;
}

#cart-items {
    max-height: 180px;
    overflow-y: auto;
}

#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

#cart-total {
    font-size: 1rem;
}

#cart-modal .btn.w-full {
    width: 48%;
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.6rem 0.2rem;
    vertical-align: top;
}

#cart-modal,
#cart-modal *:not(i) {
    font-family: 'Poppins', sans-serif;

    text-shadow: none;
}

#cart-modal small {
    color: var(--color-666666);

    font-weight: 500;

}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.course-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.course-detail-title {
    color: var(--color-brown);
    font-size: 2.5rem;
}

.course-category-tag {
    color: var(--color-teal);
    font-weight: bold;
}

.course-detail-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.course-full-content {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-body);
    margin-bottom: 2rem;
}

.course-gallery-grid {
    margin-top: 2rem;
}

.cart-empty-msg {
    font-family: var(--font-body);
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.course-card-category {
    background: var(--bg-surface);
    color: var(--color-teal);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid var(--color-teal);
    align-self: start;
    margin-bottom: 0.5rem;
}

.course-card-description {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.course-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.ml-1 {
    margin-left: 1rem;
}

.blog-date {
    color: #666;
    font-family: var(--font-body);
    font-size: 0.7rem;
}

.blog-excerpt {
    display: none;
}

.post-date {
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

.post-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: var(--font-body);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0;
}

.video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

.cart-item-name,
.cart-item-price {
    font-family: var(--font-body);
}

.course-gallery-img {
    width: 100%;
    border-radius: 8px;
}

/* Utilidades */
.w-full {
    width: 100%;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.text-primary {
    color: var(--color-primary);
}

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

.gap-2 {
    gap: 1rem;
}

.col-full {
    grid-column: 1 / -1;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: 4rem 0;
}

.nav-links a.active {
    color: var(--color-primary);
}

/* ===== HERO: encabezado de página ===== */
.hero { padding: 1.5rem 0; background-color: transparent; text-align: center; }

.bio-title-text {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    line-height: 1.2;
}

.bio-subtitle {
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-top: -0.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.bio-quote {
    margin-bottom: 1.2rem;
    font-style: italic;
    font-weight: normal;
    color: var(--color-teal-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.bio-content p:not(.bio-quote) {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.bio-content .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    margin-top: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/* ===== UBICACIÓN ===== */
.location-title {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.location-address {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.location-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.location-info {
    flex: 0 0 30%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.location-map {
    flex: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.location-info .btn {
    text-align: center;
    width: fit-content;
}

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

.footer-contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    text-align: center;
}

.slide.active { opacity: 1; }

.slider-overlay { opacity: 0.8; user-select: none; pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1rem;
    z-index: 2;
}

.slider-overlay h2 { color: white !important; text-shadow: 0 2px 6px rgba(0,0,0,0.9); font-size: 1rem; margin-bottom: 0.2rem; }
.slider-overlay p { color: #dddddd !important; text-shadow: 0 2px 4px rgba(0,0,0,0.9); font-size: 0.75rem; line-height: 1.3; }

/* ===== BANNER PROMOCIONAL ===== */
section.promo-banner,
section#promo-banner {
    width: 100%;
    aspect-ratio: 4 / 1;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-secondary);
    padding: 0;
    margin: 0;
}

.promo-slide,
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
    isolation: isolate;
}

.promo-slide::before,
.slide::before {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: var(--banner-bg);
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    z-index: 0;
}

.promo-slide::after,
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--banner-bg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.promo-slide.active {
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-brown);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    font-family: var(--font-body);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    color: var(--color-666666);
}

.album-title {
    color: var(--color-brown-dark);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

/* ===== CARRUSEL (galería) ===== */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    overflow: hidden;
}

.carousel-stage {
    position: relative;
    width: 100%;

    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-main-img {
    width: 100%;
    max-width: 100%;

    height: auto;
    max-height: 600px;

    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 60%;
    font-size: 1.5rem;
    color: var(--color-brown-dark);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

.thumbnail-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 1rem 0;
    justify-content: flex-start;
    scrollbar-width: thin;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail-btn {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail-btn.active {
    border-color: var(--color-brown-dark);
    transform: scale(1.05);
}

.thumbnail-btn:hover {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: var(--color-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60%;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2002;
    transition: all 0.3s ease;
    border-radius: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev {
    left: 2%;
}

.lightbox-next {
    right: 2%;
}

body > *:not(canvas):not(header) { 
    position: relative; 
    z-index: 1; 
}

/* ===== HERO/SLIDER: contenedor home-slider ===== */
section.slider-container,
section#home-slider {
    width: 100%;
    aspect-ratio: 4 / 1;
    max-height: 500px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
}

.course-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-teal);
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    text-align: center;
    display: block;
    letter-spacing: 0.5px;
}

/* Créditos de autoría — PF! Estudio Creativo */
.credits-line {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
}

.credits-line a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.credits-line a:hover {
    color: var(--color-primary, #F39620);
    text-decoration: underline;
}

/* ======================================================== */
/*  TABLET + DESKTOP  ·  min-width: 769px                    */
/* ======================================================== */
@media (min-width: 769px) and (min-height: 501px) {

    html {
        font-size: 16px;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    section { padding: 2.5rem 0; }
    .section-title {
        font-size: 2.5rem;
        margin-bottom: var(--spacing-lg);
    }
    .partners-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    .partner {
        max-width: 180px;
    }
    .grid {
        gap: var(--spacing-lg);
    }
    .card-image {
        height: auto;
    }
    .card-content {
        padding: 1.5rem;
        justify-content: flex-start;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-price {
        font-size: 1.3rem;
        text-align: center;
    }
    .container.bio-section {
        flex-direction: row;
        gap: 1.5rem;
        padding: 2.5rem;
        margin: 2rem auto;
    }
    .bio-image {
        max-width: 400px;
        margin: 0;
        border-radius: 0;
        overflow: visible;
    }
    .bio-image img {
        border-radius: 20px;
    }
    .bio-content {
        text-align: left;
        padding-bottom: 0;
    }
    #cart-modal {
        top: 0;
        bottom: auto;
        right: 0;
        left: auto;
        width: 350px;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
        padding: 1rem;
        animation: none;
    }
    #cart-items {
        max-height: none;
    }
    #cart-modal .btn.w-full {
        width: 100%;
        display: block;
        margin-top: 0.5rem;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        vertical-align: baseline;
    }
    .course-card-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .course-actions {
        flex-direction: row;
    }
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
    .blog-date {
        font-size: 1rem;
    }
    .blog-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        font-family: var(--font-body);
    }
    .hero { padding: 2rem 0; text-align: left; }
    .hero h1 { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
    .hero p { font-size: 1.5rem; }
    .bio-title::after {
        margin-left: 0;
        margin-right: 0;
    }
    .bio-title-text {
        text-align: left;
        font-size: 2rem;
    }
    .bio-subtitle {
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
        text-align: left;
    }
    .bio-quote {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    .bio-content p:not(.bio-quote) {
        font-size: 1rem;
        margin-bottom: 0;
    }
    .bio-content .btn {
        display: inline-block;
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .location-title {
        margin-bottom: 1rem;
        font-size: 1.8rem;
    }
    .location-address {
        font-size: 1.2rem;
        line-height: 1.8;
    }
    .location-container {
        flex-direction: row;
        gap: 2rem;
        text-align: right;
    }
    .location-info {
        width: auto;
        align-items: flex-end;
    }
    .location-map {
        height: 450px;
        aspect-ratio: auto;
    }
    .slider-overlay h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
    .slider-overlay p { font-size: 1.2rem; line-height: 1.6; }
    section.promo-banner,
    .carousel-container {
        padding: 1rem;
        overflow: visible;
    }
    .carousel-prev {
        left: -70px;
    }
    .carousel-next {
        right: -70px;
    }
    .thumbnail-strip {
        justify-content: center;
    }
    .lightbox-nav-btn {
        width: 60px;
        height: 80%;
        background: rgba(255, 255, 255, 0.05);
        font-size: 2rem;
    }
    .lightbox-prev {
        left: 5%;
    }
    .lightbox-next {
        right: 5%;
    }
    #featured-courses .card-image,
    #featured-product-list .card-image,
    #featured-gallery-list .card-image,
    #featured-blog-list .card-image {
        height: 180px;
    }
    .course-price {
        font-size: 1.8rem;
    }

}

/* ======================================================== */
/*  SOLO DESKTOP  ·  min-width: 1025px                       */
/* ======================================================== */
@media (min-width: 1025px) and (min-height: 501px) {

    .container {
        padding: 0 var(--spacing-md);
    }
    .hero h1 {
        font-size: 3rem;
    }

}

/* Tienda agrupada por categorías + menú flotante */
.category-section-title {
    font-size: 1.6rem;
    color: #2c3e50;
    border-bottom: 3px solid #1dc47b;
    padding-bottom: 8px;
    margin: 2.5rem 0 1.2rem;
    scroll-margin-top: 115px;
}
.category-section-title:first-child { margin-top: 0.5rem; }

#floating-cat-menu {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 28, 34, 0.6);
    border-radius: 0 10px 10px 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    min-width: 120px;
    pointer-events: none;
}
#floating-cat-menu .fcm-title,
#floating-cat-menu .fcm-link,
#floating-cat-menu .fcm-top {
    pointer-events: auto;
}
#floating-cat-menu .fcm-title {
    color: #9fe1cb;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 4px;
}
#floating-cat-menu .fcm-link,
#floating-cat-menu .fcm-top {
    color: #fff;
    font-size: 0.82rem;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
#floating-cat-menu .fcm-link:hover,
#floating-cat-menu .fcm-top:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-primary);
}
#floating-cat-menu .fcm-top {
    color: #9fe1cb;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 4px;
}

/* Mobile: menú compacto pegado al borde */
@media (max-width: 768px) {
    #floating-cat-menu {
        padding: 7px 4px;
        min-width: 0;
        max-width: 100px;
        border-radius: 0 8px 8px 0;
        gap: 2px;
    }
    #floating-cat-menu .fcm-title { font-size: 0.6rem; padding: 1px 6px 4px; }
    #floating-cat-menu .fcm-link,
    #floating-cat-menu .fcm-top {
        font-size: 0.7rem;
        padding: 4px 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 92px;
    }
}

/* Hover de las cards: nombre a naranja */
.card:hover .card-title {
    color: var(--color-primary);
}

/* Grillas de cards: flex con tamaño fijo y centrado (2 columnas en mobile, 4 en escritorio) */
.grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.grid-4 > * {
    flex: 0 0 calc(50% - 0.375rem);
}
@media (min-width: 769px) and (min-height: 501px) {
    .grid-4 { gap: 2rem; }
    .grid-4 > * { flex-basis: calc(25% - 1.5rem); }
}

/* Reserva de espacio mientras el JS carga el contenido (anti-CLS) */
.js-reserve { min-height: 60vh; display: grid; place-items: center; }

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        gap: clamp(1.75rem, 3vw, 3rem);
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        border-bottom: none;
    }
    .nav-links li {
        width: auto;
    }
    .nav-links a {
        display: inline-block;
        padding: 0;
        text-align: left;
        border-bottom: none;
    }
}
