/* Reset and Base Styles */
@font-face {
    font-family: 'DM Serif Display';
    src: url('DMSerifDisplay-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

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

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #000000;
    --text-light: #555555;
    --border-color: #e0e0e0;
    --bg-light: #f5f5f5;
    --hover-color: #eeeeee;
    --beige-light: #F5E6D3;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

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

.featured-products .container {
    max-width: 1600px;
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.header-top {
    background-color: var(--bg-light);
    padding: 8px 0;
    font-size: 12px;
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
}

.language-currency {
    display: flex;
    gap: 15px;
}

.select-custom {
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    outline: none;
}

.select-custom:hover {
    color: var(--text-color);
}

.header-main {
    padding: 22px 0;
    position: relative;
}

.header-main .container {
    max-width: 1680px;
}

.header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, 2vw, 36px);
    min-width: 0;
}

.header-brand {
    justify-self: start;
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
}

.logo {
    min-width: 0;
    flex-shrink: 1;
}

.logo h1 {
    font-family: 'Cinzel', 'DM Serif Display', serif;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 600;
    letter-spacing: 2.8px;
    color: var(--primary-color);
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}

.nav {
    justify-self: center;
    min-width: 0;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 1.2vw, 22px);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
}

.nav-menu li {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.2;
    padding: 6px 0;
}

.nav-menu a:hover {
    color: #E6B364;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 1px;
    background-color: #E6B364;
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-menu a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    justify-self: end;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 9px;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: #E6B364;
    transform: translateY(-1px);
}

.cart-btn {
    position: relative;
    transform: translateX(40%);
}

.cart-btn:hover {
    transform: translateX(40%) translateY(-1px);
}

.login-btn {
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    padding: 9px 13px;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.login-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

.user-menu {
    position: relative;
    display: none;
    margin-left: 10px;
    transform: translateX(40%);
}

.user-menu.is-visible {
    display: block;
}

.user-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(169, 142, 105, 0.35);
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--color-border, #eaeaea);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
    padding: 14px;
    z-index: 1200;
}

.user-dropdown-name {
    font-family: var(--font-title, 'Cormorant Garamond', serif);
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.user-dropdown-email {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
    word-break: break-all;
}

.user-logout-btn {
    width: 100%;
    border: 1px solid #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.user-logout-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

/* ── Header: balanced navigation and account actions ── */
@media (min-width: 1221px) {
    .header-main .container {
        width: min(100% - 64px, 1560px);
    }

    .header-content {
        min-height: 76px;
        grid-template-columns: minmax(205px, 0.8fr) minmax(0, 1.8fr) auto;
        gap: clamp(20px, 2vw, 42px);
    }

    .nav {
        width: 100%;
        transform: none;
    }

    .nav-menu {
        justify-content: center;
        gap: clamp(11px, 1.05vw, 22px);
    }

    .nav-menu a {
        padding: 28px 0;
        font-size: clamp(8px, 0.66vw, 10px);
        letter-spacing: clamp(0.75px, 0.08vw, 1.2px);
    }

    .header-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }
}

.cart-btn,
.cart-btn:hover,
.user-menu {
    transform: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.cart-btn {
    margin-right: 2px;
}

.user-menu {
    margin-left: 0;
}

/* At widths where a 10-item menu would compete with account controls,
   use the existing polished mobile menu instead. */
@media (max-width: 1220px) {
    .header-main .container {
        position: static;
    }

    .header-content {
        min-height: 72px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .header-brand {
        flex: 1;
        min-width: 0;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        z-index: 200;
        pointer-events: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0 24px;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid transparent;
        box-shadow: none;
        transform: translateY(-8px);
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
            padding 0.35s ease, visibility 0s linear 0.35s;
    }

    .nav-menu.active {
        max-height: 570px;
        padding: 12px 24px 18px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border-top-color: var(--color-border);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
        transform: translateY(0);
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
            padding 0.35s ease, visibility 0s linear 0s;
    }

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

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 12px 0;
        color: var(--color-primary);
        font-size: 11px;
        letter-spacing: 1.2px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child a {
        border-bottom: 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: cartCountAppear 0.4s ease forwards;
}

.cart-count[style*="flex"] {
    opacity: 1;
    transform: scale(1);
}

@keyframes cartCountAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes cartCountBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 1px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
}

.mobile-menu-btn.active {
    border-color: rgba(0, 0, 0, 0.2);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

@media (max-width: 968px) {
    .header-main .container {
        position: static;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 200;
        pointer-events: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0 20px;
        background-color: var(--secondary-color);
        border-top: 1px solid transparent;
        box-shadow: none;
        gap: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden;
        transition:
            max-height 0.4s ease,
            opacity 0.35s ease,
            transform 0.4s ease,
            padding 0.4s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease,
            visibility 0s linear 0.4s;
    }

    .nav-menu.active {
        max-height: 520px;
        opacity: 1;
        transform: translateY(0);
        padding: 12px 20px 16px;
        border-top-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        pointer-events: auto;
        visibility: visible;
        transition:
            max-height 0.4s ease,
            opacity 0.35s ease,
            transform 0.4s ease,
            padding 0.4s ease,
            box-shadow 0.35s ease,
            border-color 0.35s ease,
            visibility 0s linear 0s;
    }

    .nav-menu li {
        width: 100%;
        white-space: normal;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 14px 0;
        font-size: 13px;
        letter-spacing: 1.4px;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a::after {
        display: none;
    }
}

/* Hero Section */
.hero {
    background-color: #ffffff;
    padding: 175px 20px 140px;
    text-align: center;
    min-height: 920px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: fit-content;
    margin: 0 auto;
    left: calc(50% - 40%);
    transform: translateX(-50%);
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 120px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 0.6;
    text-align: center;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-title-line1,
.hero-title-line2 {
    display: block;
    white-space: nowrap;
    margin: 0;
}

.hero-title-line1 {
    margin-bottom: -30px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:hover {
    background-color: #333333;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    width: 100%;
    padding: 14px;
    margin-top: auto;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #E6B364;
    color: #000000;
    border-color: #E6B364;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 179, 100, 0.3);
}

/* Image Carousel - Inside Diplomados Section */
.diplomados-image .carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.diplomados-image .carousel-wrapper {
    height: 100%;
    min-height: 500px;
    width: 100%;
}

.diplomados-image .carousel-track {
    height: 100%;
    width: 100%;
    flex-direction: row;
}

.diplomados-image .carousel-slide {
    height: 100%;
    min-height: 500px;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Featured Products */
.featured-products {
    padding: 96px 40px;
    background-color: var(--secondary-color);
}

.all-products {
    padding: 80px 40px;
    background-color: var(--secondary-color);
}

.section-title {
    font-family: 'Playfair Display', 'DM Serif Display', 'Cinzel', serif;
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 400;
    font-style: italic;
    text-align: center;
    margin-bottom: 58px;
    letter-spacing: 1.2px;
    color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding: 0;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

#allProductsGrid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    border-color: #cccccc;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 150px;
    gap: 12px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.product-description {
    font-size: 13px;
    color: #333333;
    opacity: 1;
    margin-bottom: 0;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-top: 8px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.product-card .btn-secondary {
    color: #000000;
    border-color: #000000;
}

.product-card .btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: var(--text-color);
    opacity: 0.7;
}

/* Categories */
.categories {
    padding: 80px 20px;
    background-color: var(--secondary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.category-card {
    background-color: var(--secondary-color);
    padding: 60px 120px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.category-extensiones {
    background-image: url('extensiones.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.category-extensiones::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

.category-extensiones h3 {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.category-adhesivos {
    background-image: url('adhesivos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.category-adhesivos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

.category-adhesivos h3 {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.category-tratamientos {
    background-image: url('tratamientos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.category-tratamientos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

.category-tratamientos h3 {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.category-diplomados {
    background-image: url('diplomados.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.category-diplomados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1;
    pointer-events: none;
}

.category-diplomados h3 {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.category-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.category-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

/* Diplomados Section */
.diplomados-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    min-height: 80vh;
}

/* Selección de Diplomados */
.diplomados-selection {
    margin-top: 40px;
}

.diplomados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.diplomado-card {
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.diplomado-card[data-diplomado="extensiones"] {
    background-image: url('img8.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.diplomado-card[data-diplomado="extensiones"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.3s ease;
}

.diplomado-card[data-diplomado="extensiones"] h3,
.diplomado-card[data-diplomado="extensiones"] p,
.diplomado-card[data-diplomado="extensiones"] .diplomado-select-btn {
    position: relative;
    z-index: 2;
}

.diplomado-card[data-diplomado="extensiones"] p {
    color: rgba(255, 255, 255, 0.85);
}

.diplomado-card[data-diplomado="cejas"] {
    background-image: url('img10.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.diplomado-card[data-diplomado="cejas"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    transition: background 0.3s ease;
}

.diplomado-card[data-diplomado="cejas"] h3,
.diplomado-card[data-diplomado="cejas"] p,
.diplomado-card[data-diplomado="cejas"] .diplomado-select-btn {
    position: relative;
    z-index: 2;
}

.diplomado-card[data-diplomado="cejas"] p {
    color: rgba(255, 255, 255, 0.85);
}

.diplomado-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.diplomado-card[data-diplomado="extensiones"]:hover::before,
.diplomado-card[data-diplomado="cejas"]:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.diplomado-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.diplomado-card p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.diplomado-select-btn {
    margin-top: auto;
}

.back-to-selection-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.back-to-selection-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: 0;
}

.back-to-selection-btn span,
.back-to-selection-btn svg {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.back-to-selection-btn:hover {
    color: #ffffff;
    transform: translateX(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.back-to-selection-btn:hover::before {
    left: 0;
}

.back-to-selection-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.diplomados-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    padding: 30px 0;
    position: relative;
}

.diplomados-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.diplomados-selection-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
}

.back-to-products-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0.8;
}

.back-to-products-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-3px);
}

.back-to-products-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.diplomados-title-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.diplomados-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 4px;
    text-align: center;
    margin: 0;
    position: relative;
    padding: 0 20px;
}

.diplomados-title::before,
.diplomados-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.diplomados-title::before {
    left: -80px;
}

.diplomados-title::after {
    right: -80px;
}

.diplomados-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.diplomados-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 500px;
    aspect-ratio: 16 / 9;
    order: 1;
}

.diplomados-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.diplomados-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    order: 2;
    width: 100%;
}

.diplomados-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.diplomados-info > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

.diplomados-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.diplomados-list li {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.85;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.diplomados-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.diplomados-contact {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.diplomados-day {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.diplomados-day h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diplomados-includes {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.diplomados-includes h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diplomados-investment {
    margin-top: 25px;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.04);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
}

.diplomados-investment p {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.8;
}

.diplomados-investment p:last-child {
    margin-bottom: 0;
}

.diplomados-investment strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.diplomados-investment em {
    color: var(--text-color);
    opacity: 0.9;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    padding: 100px 40px;
    background-color: var(--secondary-color);
}


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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.contact-brand {
    font-family: 'Cinzel', 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin: 0;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-light);
    max-width: 500px;
    margin: -10px 0 10px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-color);
    font-size: 15px;
    letter-spacing: 0.5px;
}

.contact-item svg {
    color: #E6B364;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: #E6B364;
}

.contact-social {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.contact-social a {
    color: var(--secondary-color);
    background-color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: #E6B364;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 179, 100, 0.2);
}

/* Footer */
.footer {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 30px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
}

.footer-section ul {
    list-style: none;
    min-width: fit-content;
    width: 100%;
}

.footer-section ul li {
    margin-bottom: 12px;
    white-space: nowrap;
    word-break: keep-all;
    min-width: fit-content;
}

.footer-section ul li a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #000000;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: #000000;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
}

/* Cart Dropdown */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-dropdown {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow-y: auto;
    color: #000000;
}

.cart-dropdown.active {
    right: 0;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-dropdown-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #000000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    color: #666666;
}

.cart-dropdown-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #333333;
}

.cart-empty p {
    font-size: 16px;
    margin: 0;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-image svg {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    background: none;
    border: 1px solid #e0e0e0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: var(--transition);
    font-size: 16px;
    border-radius: 8px;
}

.quantity-btn:hover {
    background-color: #f5f5f5;
    border-color: #000000;
}

.quantity-value {
    font-size: 14px;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    color: #000000;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 5px;
    font-size: 12px;
    transition: var(--transition);
    align-self: flex-start;
}

.cart-item-remove:hover {
    color: #dc3545;
}

.cart-dropdown-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    position: sticky;
    bottom: 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-total span:first-child {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.cart-total-price {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.cart-checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
}

.cart-checkout-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.product-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    min-height: 600px;
    background-color: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-color);
}

.product-modal.active .product-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    color: #000000;
}

.product-modal-close:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.product-modal-body {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-height: 90vh;
    overflow: hidden;
    min-height: 600px;
}

.product-modal-image {
    position: relative;
    width: 45%;
    min-width: 500px;
    background-color: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-modal-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
}

.product-modal-info {
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
    justify-content: flex-start;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--bg-light) 100%);
    gap: 30px;
}

.product-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
}

.product-modal-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 200px;
}

.product-modal-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.product-modal-price::before {
    content: '';
    width: 3px;
    height: 36px;
    background-color: var(--primary-color);
    display: block;
}

.product-modal-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.product-modal-description {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-color);
    opacity: 0.85;
    margin: 0;
    white-space: pre-line;
    padding: 30px 40px;
    background-color: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 300;
    max-height: 400px;
    overflow-y: auto;
}

.product-modal-add-cart {
    width: 100%;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-modal-add-cart:hover {
    background-color: #E6B364;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 179, 100, 0.4);
}

.product-modal-add-cart svg {
    width: 20px;
    height: 20px;
}

/* Product Modal - Light Theme */
.product-modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
}

.product-modal-content {
    max-width: 1320px;
    min-height: 700px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.2);
}

.product-modal-close {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.product-modal-body {
    width: 100%;
}

.product-modal-image {
    width: 50%;
    min-width: 520px;
    background: var(--bg-light);
    padding: 0;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: none;
    transform: none;
}

.product-modal-placeholder {
    background-color: var(--bg-light);
}

.product-modal-info {
    padding: 58px 62px 42px;
    background: #ffffff;
    gap: 22px;
    overflow: hidden;
}

.product-modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.product-modal-name {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 400;
    font-style: italic;
    color: var(--text-color);
    letter-spacing: 1.2px;
    line-height: 1;
    width: 100%;
    overflow-wrap: normal;
    hyphens: none;
}

.product-modal-price {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    color: var(--text-color);
    font-size: clamp(30px, 2.8vw, 44px);
    font-weight: 400;
    line-height: 1;
}

.product-modal-price::before {
    background-color: #E6B364;
}

.product-modal-content-wrapper {
    position: relative;
    min-height: 0;
}

.product-modal-content-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.98));
    border-radius: 0 0 18px 18px;
}

.product-modal-description {
    max-height: 450px;
    padding: 30px 34px 72px;
    color: var(--text-light);
    opacity: 1;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 3px solid #E6B364;
    border-radius: 18px;
    overflow-y: auto;
    scrollbar-width: none;
}

.product-modal-description::-webkit-scrollbar {
    display: none;
}

.product-description-section {
    margin-bottom: 28px;
}

.product-description-section:last-child {
    margin-bottom: 0;
}

.product-description-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 16px;
}

.product-description-section p {
    margin: 0 0 14px;
    color: var(--text-light);
}

.product-benefits-list {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-benefits-list li {
    position: relative;
    color: var(--text-color);
    padding-left: 34px;
}

.product-benefits-list li::before {
    content: '✓';
    position: absolute;
    top: 1px;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #E6B364;
    border-radius: 50%;
    color: #E6B364;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.product-modal-add-cart {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-modal-add-cart:hover {
    background-color: #E6B364;
    color: #000000;
    border-color: #E6B364;
    box-shadow: 0 16px 34px rgba(230, 179, 100, 0.35);
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 969px) {
    .header-content {
        gap: 14px;
    }

    .logo h1 {
        font-size: 18px;
        letter-spacing: 1.4px;
    }

    .nav-menu {
        gap: 8px;
    }
    
    .nav-menu a {
        font-size: 10px;
        letter-spacing: 0.8px;
        padding: 4px 0;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-btn {
        padding: 7px;
    }
}

@media (max-width: 968px) {
    .mobile-menu-btn {
        display: flex;
    }

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

    .header-brand {
        display: flex;
        align-items: center;
        min-width: 0;
        flex: 1;
    }

    .header-actions {
        margin-left: 0;
        flex-shrink: 0;
    }

    .hero-title {
        font-size: 56px;
        line-height: 1.1;
    }

    .hero-title-line1,
    .hero-title-line2 {
        white-space: normal;
    }

    .hero-title-line1 {
        margin-bottom: 0;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 20px;
        margin-top: 0;
        transform: none;
        text-align: left;
    }

    .hero {
        padding: 120px 20px 100px;
        min-height: 680px;
        background-position: calc(50% + 20%) center;
        background-size: 64% auto;
    }

    .hero-content {
        left: calc(50% - 20%);
    }

    .diplomados-image {
        min-height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-dots {
        padding: 15px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1.1;
    }

    .hero-title-line1,
    .hero-title-line2 {
        white-space: normal;
    }

    .hero-title-line1 {
        margin-bottom: 0;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: clamp(32px, 8vw, 42px);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .diplomados-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .diplomados-info h3 {
        font-size: 28px;
    }

    .diplomados-header {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-bottom: 40px;
        padding: 20px 0;
    }

    .diplomados-title-wrapper {
        width: 100%;
    }

    .diplomados-title {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .diplomados-title::before,
    .diplomados-title::after {
        width: 30px;
    }

    .diplomados-title::before {
        left: -50px;
    }

    .diplomados-title::after {
        right: -50px;
    }

    .diplomados-selection-footer {
        margin-top: 40px;
        padding-top: 20px;
    }

    .back-to-products-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .product-modal-content {
        overflow-y: auto;
    }

    .product-modal-body {
        flex-direction: column;
        max-height: none;
        min-height: unset;
    }

    .product-modal-image {
        width: 100%;
        min-width: unset;
        height: 320px;
        padding: 0;
    }

    .product-modal-image img {
        position: static;
        height: 100%;
    }

    .product-modal-info {
        padding: 25px 20px;
        gap: 20px;
        overflow: visible;
    }

    .product-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-bottom: 15px;
    }

    .product-modal-name {
        font-size: 22px;
        width: 100%;
    }

    .product-modal-price {
        font-size: 26px;
    }

    .product-modal-price::before {
        height: 26px;
    }

    .product-modal-description {
        padding: 20px;
        max-height: 340px;
    }

    .diplomados-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .diplomados-info h3 {
        font-size: 24px;
    }

    .diplomados-section {
        padding: 40px 20px;
    }

    .diplomados-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .diplomado-card {
        padding: 40px 30px;
        min-height: 250px;
    }

    .diplomado-card h3 {
        font-size: 20px;
    }

    .diplomado-card p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 12px;
    }

    .header-main {
        padding: 16px 0;
    }

    .header-brand {
        gap: 8px;
    }

    .logo h1 {
        font-size: 16px;
        letter-spacing: 1.4px;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 0;
        transform: none;
        text-align: left;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-btn {
        padding: 6px;
    }

    .icon-btn svg {
        width: 17px;
        height: 17px;
    }

    .mobile-menu-btn {
        width: 32px;
        height: 32px;
    }

    .mobile-menu-btn span {
        width: 18px;
    }

    .hero {
        min-height: 620px;
        padding: 125px 18px 90px;
        background-position: calc(50% + 20%) center;
        background-size: 64% auto;
    }

    .hero-content {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.2;
        margin-bottom: 24px;
        letter-spacing: 0.5px;
    }

    .hero-title-line1,
    .hero-title-line2 {
        white-space: normal;
        margin: 0;
        display: inline;
    }

    .hero-subtitle {
        max-width: 320px;
        margin: 0 auto;
        font-size: 16px;
        line-height: 1.45;
    }

    .featured-products,
    .all-products,
    .categories,
    .contact-section {
        padding: 56px 18px;
    }

    .section-title {
        font-size: clamp(36px, 11vw, 48px);
        line-height: 1.12;
        margin-bottom: 36px;
        letter-spacing: 0.6px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 0;
        max-width: 330px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 0;
    }

    .category-card {
        width: 100%;
        min-height: 180px;
        padding: 40px 24px;
        border-radius: 12px;
    }

    .category-card h3 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .product-info {
        padding: 24px 24px 26px;
    }

    .product-name {
        font-size: 16px;
        line-height: 1.3;
    }

    .product-description {
        font-size: 13px;
        line-height: 1.55;
    }

    .product-price {
        font-size: 22px;
    }

    .cart-dropdown {
        width: 100%;
        right: -100%;
    }

    .product-modal-content {
        width: 95%;
        max-height: 95vh;
        flex-direction: column;
        overflow-y: auto;
    }

    .product-modal-body {
        flex-direction: column;
        min-height: unset;
    }

    .product-modal-image {
        width: 100%;
        min-width: unset;
        height: 260px;
        padding: 0;
    }

    .product-modal-image img {
        position: static;
        height: 100%;
    }

    .product-modal-info {
        padding: 25px 20px;
        overflow: visible;
    }

    .product-modal-name {
        font-size: 22px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .product-modal-price {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .product-modal-price::before {
        height: 28px;
    }

    .product-modal-description {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 15px;
        max-height: 300px;
    }

    .diplomados-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .diplomados-info h3 {
        font-size: 24px;
    }

    .diplomados-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
        padding: 15px 0;
    }

    .diplomados-title {
        font-size: 28px;
        letter-spacing: 1.5px;
        padding: 0 10px;
    }

    .diplomados-title::before,
    .diplomados-title::after {
        display: none;
    }

    .back-to-products-btn {
        position: relative;
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .logo h1 {
        font-size: 14px;
        letter-spacing: 1px;
        margin-top: 0;
        transform: none;
    }

    .header-actions {
        gap: 4px;
    }

    .icon-btn {
        padding: 5px;
    }

    .mobile-menu-btn {
        width: 30px;
        height: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

/* ==========================================================
   PREMIUM CONNECTED REDESIGN
   Visual layer preserving the existing application contracts
   ========================================================== */

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #d4bfa0;
    --color-accent: #e8d8ce;
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #333333;
    --color-muted: #777777;
    --color-border: #eaeaea;
    --font-title: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --premium-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --premium-shadow: 0 16px 42px rgba(26, 26, 26, 0.08);

    /* Compatibility aliases used by existing components */
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-surface);
    --text-color: var(--color-text);
    --text-light: var(--color-muted);
    --border-color: var(--color-border);
    --bg-light: #f5f1ee;
    --hover-color: var(--color-accent);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    margin: 0;
    padding: 0;
    background: #fff;
    /* overflow en html (no en body) para no romper position:fixed del header */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    overflow-x: visible;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding-top: 80px;
}

body h1,
body h2,
body h3,
body h4 {
    font-family: var(--font-title);
}

body a {
    color: inherit;
}

.container,
.featured-products .container {
    width: min(100% - 48px, 1280px);
    max-width: 1280px;
    padding: 0;
}

.announcement-bar {
    min-height: 40px;
    padding: 10px 20px;
    background:
        radial-gradient(circle at 12% 18%, rgba(169, 142, 105, 0.14), transparent 28%),
        linear-gradient(135deg, #eee0d7 0%, var(--color-accent) 68%);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 1100;
}

.announcement-bar span {
    color: var(--color-secondary);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    z-index: 1090;
}

.header-main {
    padding: 0;
    margin: 0;
}

.header-main .container {
    width: min(100% - 48px, 1440px);
    max-width: 1440px;
}

.header-content {
    min-height: 80px;
    grid-template-columns: minmax(220px, 1fr) auto minmax(80px, 1fr);
    gap: 32px;
}

.header-brand {
    grid-column: 1;
}

.logo h1 {
    font-family: var(--font-title);
    font-size: clamp(21px, 2vw, 29px);
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-primary);
}

.nav {
    grid-column: 2;
    width: auto;
    transform: translateX(20%);
}

.nav-menu {
    flex-wrap: nowrap;
    gap: clamp(14px, 1.5vw, 28px);
}

.nav-menu a {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.25px;
    color: var(--color-text);
    padding: 30px 0;
}

.nav-menu a::after {
    bottom: 22px;
    background: var(--color-secondary);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.header-actions {
    grid-column: 3;
    justify-self: end;
}

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

.icon-btn:hover {
    color: var(--color-secondary);
}

.cart-count {
    top: 2px;
    right: 1px;
    width: 17px;
    height: 17px;
    background: var(--color-secondary);
    color: #fff;
}

/* ── Premium split hero ── */
.hero {
    min-height: min(82vh, 860px);
    height: min(82vh, 860px);
    padding: 0;
    background: transparent;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--color-border);
}

.hero::before {
    display: none;
}

/* Left panel */
.hero-left {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    background: #faf7f4;
    overflow: hidden;
}

.hero-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 50%, rgba(169,142,105,0.06) 0%, transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(169,142,105,0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Thin gold bar on far left edge */
.hero-accent-bar {
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #a98e69 35%, #a98e69 65%, transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 clamp(36px, 5.5vw, 96px) 0 clamp(36px, 5.5vw, 96px);
    width: 100%;
    left: auto;
    transform: none;
    text-align: left;
}

.hero-eyebrow,
.section-kicker {
    display: block;
    margin-bottom: 24px;
    color: #a98e69;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hero-title {
    max-width: none;
    margin: 0 0 0;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(60px, 6vw, 96px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-align: left;
    text-shadow: none;
    white-space: normal;
}

.hero-title em {
    color: #a98e69;
    font-weight: 400;
    font-style: italic;
}

.hero-divider {
    width: 56px;
    height: 1px;
    background: #a98e69;
    margin: 32px 0;
}

.hero-subtitle {
    max-width: 480px;
    margin: 0 0 44px;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: 0.1px;
    text-shadow: none;
}

/* Stat badges */
.hero-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 510px;
    border-top: 1px solid rgba(169, 142, 105, 0.38);
    border-bottom: 1px solid rgba(169, 142, 105, 0.2);
}

.hero-detail-item {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 16px 18px;
}

.hero-detail-item + .hero-detail-item {
    border-left: 1px solid rgba(169, 142, 105, 0.25);
}

.hero-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(169, 142, 105, 0.65);
    border-radius: 50%;
    color: #a98e69;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-detail-percent {
    font-size: 8px;
    letter-spacing: 0;
}

.hero-detail-person svg {
    width: 18px;
    height: 18px;
    letter-spacing: 0;
}

.hero-detail-label {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.55;
}

/* Right panel */
.hero-right {
    position: relative;
    width: 50%;
    overflow: hidden;
    background: var(--color-accent);
}

.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(250,247,244,0.18) 0%, transparent 20%);
    z-index: 2;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 28px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--premium-transition);
}

.btn-primary,
.product-modal-add-cart {
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
}

.btn-primary:hover,
.product-modal-add-cart:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.categories-marquee {
    padding: 10px 0;
    background: var(--color-primary);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: premiumMarquee 28s linear infinite;
}

.marquee-content span {
    position: relative;
    margin: 0 42px;
    font-family: var(--font-title);
    font-size: 25px;
    font-style: italic;
}

.marquee-content span::after {
    content: '✦';
    position: absolute;
    right: -49px;
    top: 50%;
    transform: translateY(-50%);
    font-family: serif;
    font-size: 10px;
    font-style: normal;
}

@keyframes premiumMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Sections and products */
.featured-products,
.all-products,
.categories,
.contact-section,
.diplomados-section {
    padding: 110px 0;
}

.featured-products,
.all-products {
    background: var(--color-bg);
}

.section-title-wrap,
.diplomados-title-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 54px;
    text-align: center;
}

.section-kicker {
    margin-bottom: 10px;
    color: #a98e69;
}

.section-title,
.diplomados-title {
    margin: 0;
    padding: 0;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(44px, 5vw, 66px);
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

#featuredProducts .section-title,
#productos .section-title {
    text-shadow: 0 2px 5px rgba(26, 26, 26, 0.14);
}

.section-intro {
    margin: 17px auto 0;
    color: var(--color-muted);
    font-size: 13px;
}

.product-filters {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: -22px 0 52px;
    flex-wrap: wrap;
}

.filter-link {
    position: relative;
    padding: 8px 0;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: var(--premium-transition);
}

.filter-link:hover {
    color: var(--color-primary);
}

.filter-link:hover::after {
    width: 100%;
}

.products-grid,
#allProductsGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 24px;
    max-width: none;
    margin: 0;
}

.product-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: var(--premium-transition);
}

.product-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: translateY(-7px);
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 118%;
    overflow: hidden;
    border-radius: 0;
    background: #f2efed;
}

.product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.055);
}

.product-placeholder {
    color: var(--color-muted);
}

.product-category {
    display: block;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-info {
    min-height: 0;
    padding: 20px 0 0;
    gap: 8px;
    text-align: center;
}

.product-name {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.product-description {
    max-height: 44px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.65;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin: 8px 0 14px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 500;
}

.product-card .btn-secondary {
    width: 100%;
    margin: 0;
    padding: 12px 18px;
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 0;
}

.product-card .btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.loading-message {
    color: var(--color-muted);
    font-size: 13px;
}

/* Category editorial tiles */
.categories {
    background: var(--color-surface);
}

.categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.category-card {
    min-height: 390px;
    padding: 30px;
    border: 0;
    border-radius: 0;
    background-color: #ddd;
    box-shadow: none;
    overflow: hidden;
}

.category-extensiones {
    background-image: url('https://i.postimg.cc/QxwYSBBq/1.png');
}

.category-adhesivos {
    background-image: url('https://i.postimg.cc/bNWVLGGH/2.png');
}

.category-tratamientos {
    background-image: url('https://i.postimg.cc/fTpq5337/3.png');
}

.category-diplomados {
    background-image: url('https://i.postimg.cc/MKN3tcc5/4.png');
}

.category-extensiones,
.category-adhesivos,
.category-tratamientos,
.category-diplomados {
    background-position: center;
    background-size: cover;
}

.category-card::before {
    border-radius: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.08));
    transition: var(--premium-transition);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02));
}

.category-card:hover {
    box-shadow: var(--premium-shadow);
    transform: translateY(-7px);
}

.category-card h3 {
    align-self: flex-end;
    color: #fff !important;
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Renderizado diferido de secciones bajo el fold (sin tocar calidad de medios) */
.featured-products,
.academy-feature,
.contact-section,
.all-products,
.diplomados-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

/* Diplomados editorial feature */
.academy-feature {
    background: #f5eee9;
}

.academy-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    min-height: 520px;
    background: var(--color-surface);
    box-shadow: 0 28px 70px rgba(26, 26, 26, 0.08);
}

.academy-feature-image {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--color-accent);
}

.academy-feature-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.42), transparent 46%);
    pointer-events: none;
}

.academy-feature-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.academy-image-label {
    position: absolute;
    left: 34px;
    bottom: 30px;
    z-index: 1;
    color: #fff;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.academy-feature-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(50px, 6vw, 82px);
    background:
        radial-gradient(circle at 100% 0%, rgba(169, 142, 105, 0.08), transparent 34%),
        linear-gradient(145deg, #fff 0%, #fcfaf8 100%);
}

.academy-feature-content::after {
    content: '';
    position: absolute;
    top: 42px;
    right: 42px;
    width: 42px;
    height: 42px;
    border-top: 1px solid rgba(169, 142, 105, 0.42);
    border-right: 1px solid rgba(169, 142, 105, 0.42);
    pointer-events: none;
}

.academy-feature-content .section-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 17px;
    font-size: 9px;
    letter-spacing: 3px;
}

.academy-feature-content .section-kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: #a98e69;
}

.academy-feature-title {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(58px, 6.5vw, 84px);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(26, 26, 26, 0.08);
}

.academy-feature-lead {
    max-width: 560px;
    margin: 27px 0 30px;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.8;
}

.academy-programs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 0;
}

.academy-programs > div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    align-items: center;
    min-height: 86px;
    padding: 17px 18px;
    border: 1px solid var(--color-border);
    background: rgba(245, 238, 233, 0.48);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.academy-programs > div + div {
    padding-left: 18px;
    border-left: 1px solid var(--color-border);
}

.academy-programs > div:hover {
    border-color: rgba(169, 142, 105, 0.7);
    transform: translateY(-2px);
}

.academy-programs span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(169, 142, 105, 0.55);
    border-radius: 50%;
    color: #a98e69;
    font-family: var(--font-title);
    font-size: 15px;
    line-height: 1;
}

.academy-programs p {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.academy-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 26px 0 30px;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.academy-benefits li {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    padding: 17px 16px 17px 42px;
    color: #57514d;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 1.5;
}

.academy-benefits li + li {
    border-left: 1px solid var(--color-border);
}

.academy-benefits li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #a98e69;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    transform: translateY(-50%);
}

.academy-feature-cta {
    width: min(100%, 350px);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 11px 12px 11px 24px;
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 13px 28px rgba(26, 26, 26, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.academy-feature-cta span {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #a98e69;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.academy-feature-cta:hover {
    background: #252525;
    transform: translateY(-2px);
    box-shadow: 0 17px 34px rgba(26, 26, 26, 0.2);
}

.academy-feature-cta:hover span {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .academy-feature-grid {
        grid-template-columns: 1fr;
    }

    .academy-feature-image {
        min-height: 400px;
    }
}

@media (max-width: 560px) {
    .academy-feature-image {
        min-height: 340px;
    }

    .academy-feature-content {
        padding: 44px 24px;
    }

    .academy-feature-title {
        font-size: 52px;
    }

    .academy-programs {
        grid-template-columns: 1fr;
    }

    .academy-programs > div + div {
        padding-left: 18px;
        border-left: 1px solid var(--color-border);
    }

    .academy-benefits {
        grid-template-columns: 1fr;
    }

    .academy-benefits li {
        min-height: 52px;
    }

    .academy-benefits li + li {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .academy-feature-cta {
        width: 100%;
    }
}

/* Diplomados: keep complete state machine, upgrade presentation */
.diplomados-section {
    min-height: 70vh;
    background: var(--color-accent);
}

.diplomados-header {
    margin: 0;
    padding: 0;
}

.diplomados-header::after,
.diplomados-title::before,
.diplomados-title::after {
    display: none;
}

.diplomados-selection {
    margin-top: 0;
}

.diplomados-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1120px;
}

.diplomado-card {
    min-height: 500px;
    padding: 52px;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    border: 0;
    border-radius: 0;
    box-shadow: var(--premium-shadow);
}

.diplomado-card[data-diplomado="extensiones"] {
    background-image: url('https://i.postimg.cc/W4VMNZY6/IMG-6382.jpg');
}

.diplomado-card[data-diplomado="cejas"] {
    background-image: url('https://i.postimg.cc/MKN3tcc5/4.png');
}

.diplomado-card[data-diplomado] {
    background-position: center;
    background-size: cover;
}

.diplomado-card::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05)) !important;
}

.diplomado-card h3 {
    max-width: 470px;
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 500;
    line-height: 1.05;
    text-transform: none;
}

.diplomado-card p {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13px;
}

.diplomado-select-btn {
    width: auto;
    margin-top: 15px;
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.diplomados-selection-footer {
    margin-top: 38px;
}

.back-to-products-btn,
.back-to-selection-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    padding: 12px 20px;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.28);
    border-radius: 0;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.back-to-products-btn:hover,
.back-to-selection-btn:hover {
    color: #fff;
    background: var(--color-primary);
    transform: translateX(-3px);
}

.back-to-selection-btn::before {
    display: none;
}

.diplomados-content {
    gap: 0;
}

.diplomados-content-item {
    background: var(--color-surface);
    box-shadow: var(--premium-shadow);
}

.diplomados-image {
    min-height: 620px;
    aspect-ratio: 16 / 8;
    border-radius: 0;
    box-shadow: none;
}

.diplomados-image .carousel-container,
.diplomados-image .carousel-wrapper,
.diplomados-image .carousel-slide {
    min-height: 620px;
    border-radius: 0;
}

.diplomados-info {
    padding: clamp(42px, 6vw, 84px);
    background: var(--color-surface);
}

.diplomados-info h3 {
    color: var(--color-primary);
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: none;
}

.diplomados-info > p,
.diplomados-list li,
.diplomados-investment p {
    color: var(--color-muted);
    font-size: 14px;
}

.diplomados-day,
.diplomados-includes,
.diplomados-investment {
    padding: 25px 28px;
    background: var(--color-bg);
    border: 0;
    border-left: 2px solid var(--color-secondary);
    border-radius: 0;
}

.diplomados-day h4,
.diplomados-includes h4,
.diplomados-investment strong {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 23px;
    text-transform: none;
}

.diplomados-list li::before {
    color: #a98e69;
}

.whatsapp-btn {
    padding: 15px 25px;
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Unified diplomado sales layout */
.diplomados-info {
    display: block;
    padding: clamp(42px, 6vw, 78px);
}

.course-heading {
    max-width: 940px;
    margin-bottom: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--color-border);
}

.course-kicker,
.investment-label {
    display: block;
    margin-bottom: 13px;
    color: #a98e69;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.course-heading h3 {
    max-width: 980px;
    margin: 0 0 22px;
    font-size: clamp(40px, 5vw, 66px);
    line-height: 0.98;
}

.course-lead {
    max-width: 870px;
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.course-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 34px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.course-facts > div {
    display: grid;
    gap: 6px;
    padding: 21px 24px;
}

.course-facts > div + div {
    border-left: 1px solid var(--color-border);
}

.course-facts span {
    color: #a98e69;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.course-facts strong {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
}

.course-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.course-block {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    padding: 30px;
    border: 1px solid var(--color-border);
    border-left: 2px solid #a98e69;
    background: #fbf9f7;
}

.course-block.course-includes {
    background: #fbf9f7;
}

.course-number {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(169, 142, 105, 0.65);
    border-radius: 50%;
    color: #a98e69;
    font-family: var(--font-title);
    font-size: 16px;
}

.course-block h4 {
    margin: 4px 0 10px;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    text-transform: none;
}

.course-block p {
    margin: 0 0 18px;
    color: #514d49;
    font-size: 13px;
    line-height: 1.75;
}

.course-block .diplomados-list {
    gap: 10px;
}

.course-block .diplomados-list li {
    padding-left: 22px;
    color: #514d49;
    font-size: 12px;
    line-height: 1.65;
}

.course-block .diplomados-list li::before {
    top: 1px;
    color: #a98e69;
    font-size: 14px;
}

.course-requirement {
    margin: 20px 0 0 !important;
    padding: 13px 15px;
    border-left: 2px solid #a98e69;
    background: #fff;
    color: var(--color-primary) !important;
}

.diplomados-investment {
    margin-top: 28px;
    padding: 32px 36px;
    border: 0;
    border-top: 2px solid #a98e69;
    background: #fbf9f7;
}

.course-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.course-price strong {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
}

.course-price span {
    color: #514d49;
    font-size: 12px;
}

.diplomados-investment > p {
    max-width: 720px;
    margin: 0;
    color: #514d49;
    font-size: 13px;
    line-height: 1.7;
}

.diplomados-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    margin-top: 18px;
    padding: 28px 34px;
    background: var(--color-primary);
}

.diplomados-contact > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.7;
}

.diplomados-contact .whatsapp-btn {
    min-width: 260px;
    display: inline-flex;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 15px 18px 15px 22px;
    border: 1px solid #a98e69;
    border-radius: 0;
    background: #a98e69;
    color: #fff;
    box-shadow: none;
    font-size: 10px;
    letter-spacing: 1.3px;
}

.diplomados-contact .whatsapp-btn span {
    font-size: 18px;
    line-height: 1;
}

.diplomados-contact .whatsapp-btn:hover {
    border-color: #fff;
    background: transparent;
    color: #fff;
    box-shadow: none;
}

@media (max-width: 850px) {
    .course-sections {
        grid-template-columns: 1fr;
    }

    .course-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-facts > div:nth-child(3) {
        border-left: 0;
    }

    .course-facts > div:nth-child(n + 3) {
        border-top: 1px solid var(--color-border);
    }

    .diplomados-contact {
        grid-template-columns: 1fr;
    }

    .diplomados-contact .whatsapp-btn {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .course-facts {
        grid-template-columns: 1fr;
    }

    .course-facts > div + div {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .course-block {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .diplomados-investment,
    .diplomados-contact {
        padding: 25px 20px;
    }

    .course-price strong {
        font-size: 42px;
    }
}

.carousel-btn {
    width: 46px;
    height: 46px;
    color: var(--color-primary);
}

.carousel-dot {
    width: 8px;
    height: 8px;
}

/* Contact and footer */
.contact-section {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 1240px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(169, 142, 105, 0.5), transparent);
    transform: translateX(-50%);
}

.contact-wrapper {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(470px, 1.1fr) minmax(360px, 0.9fr);
    gap: clamp(54px, 8vw, 120px);
    align-items: center;
    margin: 0 auto;
    text-align: left;
}

.contact-intro {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    min-height: 230px;
}

.contact-logo-circle {
    position: relative;
    width: 190px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 20px 45px rgba(26, 26, 26, 0.16);
}

.contact-logo-circle::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

.contact-logo-circle img {
    position: relative;
    z-index: 1;
    width: 94%;
    height: 94%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: scale(1.28);
}

.contact-copy {
    padding: 32px 0 32px 32px;
    border-left: 1px solid #a98e69;
}

.contact-brand {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
}

.contact-desc {
    max-width: 430px;
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.9;
}

.contact-info {
    width: 100%;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 40px;
    border: 1px solid var(--color-border);
    border-top: 2px solid #a98e69;
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 18px 45px rgba(26, 26, 26, 0.05);
}

.contact-info-title {
    margin: 0;
    color: #a98e69;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.contact-details {
    width: 100%;
    margin: 0;
    gap: 0;
}

.contact-item,
.contact-item a {
    color: var(--color-muted);
}

.contact-item {
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.45;
}

.contact-item + .contact-item {
    border-top: 1px solid var(--color-border);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: #a98e69;
    flex-shrink: 0;
}

.contact-item > div {
    display: grid;
    gap: 2px;
}

.contact-item-label {
    color: #a98e69;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.contact-item a,
.contact-item > div > span:last-child {
    color: var(--color-primary);
    font-size: 13px;
}

.contact-social {
    width: 100%;
    margin-top: 4px;
    gap: 12px;
}

.contact-social a {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 0;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-intro {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 20px;
    }

    .contact-logo-circle {
        width: 140px;
    }

    .contact-copy {
        padding: 20px 0 20px 20px;
    }

    .contact-info {
        padding: 30px;
    }
}

@media (max-width: 520px) {
    .contact-intro {
        grid-template-columns: 1fr;
    }

    .contact-logo-circle {
        width: 160px;
        margin: 0 auto 10px;
    }

    .contact-copy {
        padding: 22px 0 0;
        border-top: 1px solid #a98e69;
        border-left: 0;
        text-align: center;
    }

    .contact-desc {
        margin-inline: auto;
    }
}

.footer {
    padding: 0;
    color: #fff;
    background: var(--color-primary);
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 55px;
}

.footer-logo {
    margin-bottom: 12px;
    color: var(--color-secondary);
    font-size: 31px;
    font-weight: 500;
    letter-spacing: 2px;
}

.footer-main p {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.footer-bottom {
    margin: 0;
    padding: 22px 0;
    border: 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.46);
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.4px;
}

/* Premium cart drawer */
.cart-overlay {
    background: rgba(26, 26, 26, 0.42);
    backdrop-filter: blur(4px);
}

.cart-dropdown {
    right: -460px;
    width: min(440px, 100vw);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: -16px 0 50px rgba(0, 0, 0, 0.12);
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-dropdown-header {
    padding: 28px 30px;
    background: var(--color-surface);
    border-color: var(--color-border);
}

.cart-dropdown-header h3 {
    font-family: var(--font-title);
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.cart-dropdown-content {
    padding: 20px 30px;
}

.cart-item {
    gap: 16px;
    padding: 20px 0;
    border-color: var(--color-border);
}

.cart-item-image {
    width: 82px;
    height: 102px;
    border: 0;
    border-radius: 0;
    background: #f3f0ee;
}

.cart-item-name {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
}

.cart-item-price {
    color: var(--color-muted);
}

.cart-item-quantity {
    display: inline-flex;
    width: fit-content;
    align-self: flex-start;
    gap: 0;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.cart-item-quantity .quantity-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 0;
}

.cart-item-quantity .quantity-value {
    min-width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.cart-dropdown-footer {
    padding: 25px 30px;
    background: var(--color-bg);
}

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

/* Product detail modal */
.product-modal-overlay {
    background: rgba(26, 26, 26, 0.56);
    backdrop-filter: blur(7px);
}

.product-modal-content {
    width: min(94%, 1220px);
    min-height: min(720px, 88vh);
    max-height: 90vh;
    border: 0;
    border-radius: 4px;
    background: var(--color-surface);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24);
}

.product-modal-close {
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-primary);
}

.product-modal-image {
    width: 52%;
    min-width: 0;
    background: #f2efed;
}

.product-modal-info {
    padding: clamp(38px, 5vw, 68px);
    background: var(--color-surface);
}

.product-modal-header {
    border-color: var(--color-border);
}

.product-modal-name {
    color: var(--color-primary);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 600;
}

.product-modal-price {
    color: #a98e69;
    font-size: 29px;
}

.product-modal-price::before {
    background: var(--color-secondary);
}

.product-modal-description {
    color: var(--color-muted);
    background: var(--color-bg);
    border-color: var(--color-border);
    border-left-color: var(--color-secondary);
}

.product-modal-content-wrapper::after {
    background: linear-gradient(transparent, var(--color-surface));
}

.product-description-section h3 {
    color: var(--color-primary);
}

.product-description-section p,
.product-benefits-list li {
    color: var(--color-muted);
}

/* Responsive premium layout */
@media (max-width: 1180px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .logo h1 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .products-grid,
    #allProductsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 968px) {
    body {
        padding-top: 70px;
    }

    html {
        scroll-padding-top: 80px;
    }

    .header {
        top: 0;
        margin: 0;
        border-radius: 0;
    }

    .header-main {
        padding: 0;
    }

    .header-content {
        min-height: 70px;
        display: flex;
    }

    .header-brand {
        flex: 1;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }

    .nav-menu {
        padding: 0 24px;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid transparent;
    }

    .nav-menu.active {
        padding: 13px 24px 18px;
        border-top-color: var(--color-border);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
    }

    .nav-menu a {
        padding: 13px 0;
        color: var(--color-primary);
        border-color: var(--color-border);
    }

    .hero {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left {
        padding: 80px 0 60px;
    }

    .hero-right {
        display: none;
    }

    .hero-content {
        padding: 0 32px;
        text-align: left;
    }

    .hero-title {
        font-size: clamp(48px, 10vw, 68px);
    }

    .diplomados-image,
    .diplomados-image .carousel-container,
    .diplomados-image .carousel-wrapper,
    .diplomados-image .carousel-slide {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .container,
    .featured-products .container,
    .header-main .container {
        width: min(100% - 32px, 1280px);
    }

    .featured-products,
    .all-products,
    .categories,
    .contact-section,
    .diplomados-section {
        padding: 78px 0;
    }

    .hero {
        min-height: 590px;
        padding: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 80px 24px;
        left: auto;
        transform: none;
    }

    .hero-title {
        font-size: clamp(42px, 11vw, 58px);
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-details {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .hero-detail-item {
        min-height: 64px;
        padding: 12px 14px;
    }

    .hero-detail-item + .hero-detail-item {
        border-top: 1px solid rgba(169, 142, 105, 0.25);
        border-left: 0;
    }

    .section-title {
        font-size: clamp(40px, 11vw, 55px);
    }

    .product-filters {
        gap: 18px;
    }

    .products-grid,
    #allProductsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .product-name {
        font-size: 20px;
    }

    .categories-grid,
    .diplomados-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 430px;
    }

    .diplomado-card {
        min-height: 460px;
        padding: 34px;
    }

    .diplomados-image,
    .diplomados-image .carousel-container,
    .diplomados-image .carousel-wrapper,
    .diplomados-image .carousel-slide {
        min-height: 360px;
    }

    .diplomados-info {
        padding: 34px 25px;
    }

    .footer-main {
        flex-direction: column;
    }

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

    .product-modal-content {
        width: 94%;
        min-height: 0;
    }

    .product-modal-body {
        min-height: 0;
    }

    .product-modal-image {
        width: 100%;
        min-height: 310px;
    }

    .product-modal-info {
        padding: 34px 24px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        letter-spacing: 1px;
    }

    .logo h1 {
        max-width: 205px;
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .products-grid,
    #allProductsGrid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .product-image {
        padding-top: 112%;
    }

    .product-filters {
        gap: 12px 18px;
    }

    .filter-link {
        font-size: 9px;
    }

    .category-card {
        min-height: 350px;
    }

    .cart-dropdown {
        width: 100%;
    }
}

/* Compact product information card */
.product-modal-content {
    width: min(94%, 900px);
    min-height: 560px;
    max-height: min(90vh, 620px);
    border-radius: 14px;
}

.product-modal-body {
    width: 100%;
    min-height: 560px;
}

.product-modal-image {
    width: 50%;
    min-width: 0;
}

.product-modal-info {
    padding: 48px;
    gap: 22px;
    justify-content: center;
    overflow: visible;
}

.product-modal-header {
    gap: 14px;
    padding: 0;
    border: 0;
}

.product-modal-category {
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.product-modal-name {
    font-size: clamp(30px, 3.5vw, 40px);
    font-style: normal;
    letter-spacing: 0;
    line-height: 1.1;
}

.product-modal-price {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-size: 28px;
    font-style: normal;
}

.product-modal-price::before,
.product-modal-content-wrapper::after {
    display: none;
}

.product-modal-content-wrapper {
    flex: 0 1 auto;
}

.product-modal-description {
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.75;
    overflow: visible;
}

.product-modal-purchase {
    display: flex;
    align-items: center;
}

.product-modal-quantity {
    display: grid;
    grid-template-columns: 40px 40px 40px;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
}

.product-modal-quantity button,
.product-modal-quantity span {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--color-surface);
    color: var(--color-primary);
    font: 500 15px var(--font-body);
}

.product-modal-quantity button {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-modal-quantity button:hover {
    background: var(--color-bg);
}

/* Auth modal (login before checkout) */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.55);
}

.auth-modal-content {
    position: relative;
    width: min(100%, 420px);
    background: #fff;
    border: 1px solid var(--color-border, #eaeaea);
    padding: 42px 32px 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    text-align: left;
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.auth-modal.active .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
    padding: 6px;
}

.auth-modal-kicker {
    display: block;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a98e69;
    margin-bottom: 12px;
}

.auth-modal-title {
    font-family: var(--font-title, 'Cormorant Garamond', serif);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.auth-modal-text,
.auth-modal-note {
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 22px;
}

.auth-modal-note {
    margin: 18px 0 0;
    font-size: 12px;
}

.auth-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
}

.auth-google-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Shipping checkout */
.cart-summary {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-muted);
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
}

.shipping-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shipping-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.shipping-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.55);
}

.shipping-modal-content {
    position: relative;
    width: min(100%, 580px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--color-border, #eaeaea);
    padding: 42px 32px 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.shipping-modal.active .shipping-modal-content {
    transform: translateY(0);
}

.shipping-form {
    display: grid;
    gap: 15px;
}

.shipping-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.shipping-field {
    display: grid;
    gap: 7px;
}

.shipping-field label {
    color: #333;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.shipping-field label span {
    color: #888;
    font-weight: 400;
}

.shipping-field input,
.shipping-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--color-border, #ded8d4);
    border-radius: 0;
    background: #fff;
    color: #1a1a1a;
    font: inherit;
    font-size: 13px;
    padding: 10px 12px;
}

.shipping-field input:focus,
.shipping-field select:focus {
    outline: 1px solid #a98e69;
    border-color: #a98e69;
}

.shipping-field input[readonly] {
    color: #777;
    background: #f7f5f3;
}

.shipping-order-summary {
    display: grid;
    gap: 9px;
    border-top: 1px solid var(--color-border, #eaeaea);
    border-bottom: 1px solid var(--color-border, #eaeaea);
    margin-top: 4px;
    padding: 16px 0;
    color: #555;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 13px;
}

.shipping-order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.shipping-order-summary .shipping-order-total {
    color: #1a1a1a;
    font-size: 15px;
}

.shipping-form-error {
    color: #ad2f2f;
    font-family: var(--font-body, 'Montserrat', sans-serif);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.shipping-submit-btn {
    width: 100%;
    min-height: 48px;
}

@media (max-width: 768px) {
    .shipping-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 12px;
    }

    .shipping-modal-content {
        width: 100%;
        max-height: none;
        margin: auto 0;
        padding: 38px 20px 24px;
    }

    .shipping-form-grid {
        grid-template-columns: 1fr;
    }

    .product-modal-content {
        max-height: 92vh;
        overflow-y: auto;
    }

    .product-modal-body {
        flex-direction: column;
        min-height: 0;
    }

    .product-modal-image {
        width: 100%;
        height: 300px;
        min-height: 300px;
    }

    .product-modal-info {
        padding: 30px 24px;
        gap: 18px;
    }

    .product-modal-name {
        font-size: 30px;
    }
}

/* Final header overrides: keep navigation and account actions elegant. */
.cart-btn,
.cart-btn:hover,
.user-menu {
    transform: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.cart-btn {
    margin-right: 2px;
}

.user-menu {
    margin-left: 0;
}

@media (min-width: 1221px) {
    .header-main .container {
        width: min(100% - 64px, 1560px);
    }

    .header-content {
        min-height: 76px;
        grid-template-columns: minmax(205px, 0.8fr) minmax(0, 1.8fr) auto;
        gap: clamp(20px, 2vw, 42px);
    }

    .nav {
        width: 100%;
        transform: none;
    }

    .nav-menu {
        justify-content: center;
        gap: clamp(11px, 1.05vw, 22px);
    }

    .nav-menu a {
        padding: 28px 0;
        font-size: clamp(8px, 0.66vw, 10px);
        letter-spacing: clamp(0.75px, 0.08vw, 1.2px);
    }

    .header-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 1220px) {
    .header-main .container {
        position: static;
    }

    .header-content {
        min-height: 72px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .header-brand {
        flex: 1;
        min-width: 0;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        z-index: 200;
        pointer-events: none;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0 24px;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        pointer-events: none;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid transparent;
        box-shadow: none;
        transform: translateY(-8px);
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
            padding 0.35s ease, visibility 0s linear 0.35s;
    }

    .nav-menu.active {
        max-height: 570px;
        padding: 12px 24px 18px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border-top-color: var(--color-border);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
        transform: translateY(0);
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease,
            padding 0.35s ease, visibility 0s linear 0s;
    }

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

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 12px 0;
        color: var(--color-primary);
        font-size: 11px;
        letter-spacing: 1.2px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child a {
        border-bottom: 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

