.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --blue: #3e3e83;
    --blue-light: #5c5ca8;
    --blue-dark: #2c2c5e;
    --red: #c41921;
    --red-dark: #8f1218;
    --white: #ffffff;
    --off-white: #ece7e5;
    --black: #000000;
    --gray-text: #55585c;
    --border: #ddd8d5;

    --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "League Spartan", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Bebas Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

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

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--red);
    padding: 0.9rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 44px;
    width: 44px;
    display: block;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.nav-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-social svg {
    width: 17px;
    height: 17px;
}

.brand-slogan {
    margin-left: 0.75rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    max-width: 160px;
    line-height: 1.25;
}

/* TABBAR */
.tabbar {
    position: sticky;
    top: 73px;
    z-index: 99;
    display: flex;
    gap: 1.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabbar::-webkit-scrollbar {
    display: none;
}

.tabbar a {
    flex: 0 0 auto;
    padding: 1rem 0;
    color: var(--gray-text);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tabbar a:hover {
    color: var(--black);
}

.tabbar a.active {
    color: var(--black);
    border-bottom-color: var(--red);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 2.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 15, 22, 0.88) 0%, rgba(160, 25, 39, 0.72) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.hero-logo {
    max-width: 130px;
    width: 40%;
    height: auto;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.tagline {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: #cfcfcf;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    padding: 0.8rem 1.9rem;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-btn-primary {
    background: #fff;
    color: var(--red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.25rem;
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    letter-spacing: 0.03em;
    color: #fff;
    line-height: 1;
}

.hero-stat-label {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #e0d0d2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* CATEGORY GRID (INICIO) */
.category-section {
    padding: 3rem 1.5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-section h2 {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--blue);
    margin-bottom: 2rem;
}

.category-intro {
    text-align: center;
    color: var(--gray-text);
    max-width: 700px;
    margin: -1.2rem auto 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

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

.category-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--off-white);
}

.category-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    background: linear-gradient(to top, rgba(20, 10, 12, 0.85), transparent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
}

/* CATALOG SECTIONS */
.catalogo-section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.catalogo-section.alt {
    background: var(--off-white);
    max-width: 100%;
}

.catalogo-section.alt > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.catalogo-section h2 {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--blue);
    padding-left: 0.75rem;
}

.catalogo-section h1 {
    font-size: 1.9rem;
    margin-bottom: 0.75rem;
    border-left: 5px solid var(--blue);
    padding-left: 0.75rem;
}

.catalogo-section > .category-intro {
    text-align: left;
    max-width: 800px;
    margin: 0 0 2rem;
}

.subtabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.subtab {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--blue);
    background: var(--white);
    border: 1.5px solid var(--blue);
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.subtab:hover {
    background: var(--off-white);
}

.subtab.active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
    cursor: zoom-in;
}

.card-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 1rem 0;
}

.card-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid var(--border);
    background-color: #eee;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s;
}

.card-thumb:hover {
    border-color: var(--blue-light);
}

.card-thumb.active {
    border-color: var(--blue);
}

.card-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.7rem 1rem 0;
}

.card-color {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s, transform 0.15s;
}

.card-color:hover {
    transform: scale(1.1);
}

.card-color.active {
    border-color: var(--blue);
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
}

.card-price {
    margin-top: auto;
    font-weight: 800;
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.card-price-tiers {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.card-price-tier {
    color: var(--blue-dark);
    font-size: 0.88rem;
}

.card-price-tier b {
    font-weight: 700;
}

.card-nota {
    color: var(--blue-dark);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.card-descripcion {
    color: var(--gray-text);
    font-size: 0.88rem;
    line-height: 1.4;
}

/* NOSOTROS */
.nosotros-section {
    padding: 4rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.nosotros-section h2 {
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--blue);
    padding-left: 0.75rem;
}

.nosotros-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nosotros-img {
    flex: 1 1 320px;
    max-width: 380px;
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.nosotros-text {
    flex: 1 1 320px;
}

.nosotros-content p {
    margin-bottom: 1rem;
    color: var(--gray-text);
}

.nosotros-social {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.nosotros-social-label {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--blue);
    font-size: 0.95rem;
}

.nosotros-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.nosotros-social a:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.nosotros-social svg {
    width: 18px;
    height: 18px;
}

.historia-block {
    margin-top: 3rem;
    padding: 1.75rem 2rem;
    background: var(--off-white);
    border-left: 4px solid var(--red);
    border-radius: 8px;
}

.historia-title {
    font-size: 1.2rem;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.historia-block p {
    color: var(--gray-text);
    margin-bottom: 0.75rem;
}

.historia-block p:last-child {
    margin-bottom: 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.mv-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    padding: 1.75rem;
}

.mv-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--blue);
}

.mv-card p {
    color: var(--gray-text);
    margin-bottom: 0;
}

.valores-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.valores-list li {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.4;
    padding-left: 1rem;
    position: relative;
}

.valores-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.valores-list li b {
    color: var(--blue);
}

.almacenes-title {
    margin-top: 3rem;
    font-size: 1.4rem;
    color: var(--blue);
}

.almacenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.almacen-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.almacen-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.almacen-info {
    padding: 0.9rem 1rem 1.1rem;
}

.almacen-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--blue);
    margin-bottom: 0.4rem;
}

.almacen-info p {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.3rem;
}

.almacen-email {
    color: var(--blue);
    font-weight: 600;
}

.almacen-email:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.almacen-maps-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--red);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: underline;
}

.almacen-maps-link:hover {
    color: var(--red-dark);
}

/* TABS */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* FOOTER */
.site-footer {
    background: var(--red);
    color: #f0c3c8;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tabbar {
        gap: 1.25rem;
        padding: 0 1rem;
    }

    .tabbar a {
        font-size: 0.95rem;
        padding: 0.85rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero-logo {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .brand-slogan {
        display: none;
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

@media (pointer: fine) {
    .lightbox img {
        cursor: zoom-in;
    }
}

.lightbox-lens {
    display: none;
    position: fixed;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    background-repeat: no-repeat;
    background-color: #000;
    z-index: 1001;
}

.lightbox-lens.active {
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* NOVEDADES */
.novedades-home-section {
    padding: 3rem 1.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.novedades-home-section h2 {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--blue);
    margin-bottom: 2rem;
}

.novedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.novedad-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.novedad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.novedad-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
}

.novedad-body {
    padding: 1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.novedad-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--off-white);
    color: var(--blue);
}

.novedad-tag-nuevo {
    background: #e4f5e9;
    color: #1c7c42;
}

.novedad-tag-precio {
    background: #fdecea;
    color: var(--red-dark);
}

.novedad-tag-color {
    background: #eef0fb;
    color: var(--blue);
}

.novedad-tag-destacado {
    background: #fff4e0;
    color: #9a6400;
}

.novedad-fecha {
    font-size: 0.78rem;
    color: var(--gray-text);
}

.novedad-card h3 {
    font-size: 1.1rem;
    margin: 0.1rem 0 0.2rem;
}

.novedad-card p {
    font-size: 0.92rem;
    color: var(--gray-text);
    line-height: 1.45;
    margin: 0 0 0.4rem;
}

.novedad-link {
    align-self: flex-start;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--red);
    text-decoration: none;
}

.novedad-link:hover {
    text-decoration: underline;
}

.novedades-ver-todas {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--red);
    text-decoration: none;
    margin-top: 0.5rem;
}

.novedades-ver-todas:hover {
    text-decoration: underline;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

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