:root {
    --brand-primary: #1C5434;
    --brand-secondary: #2C8028;
    --nav-bg: rgba(255, 255, 255, 0.12);
    --nav-bg-solid: rgba(255, 255, 255, 0.55);
    --border: rgba(28, 84, 52, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f6f7f2 0%, #e9efe6 100%);
    color: #333;
    padding-top: 96px;
    min-height: 100vh;
}

/* ── Header ── */
.header {
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-opacity: 0;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: calc(100% - 32px);
    background: var(--nav-bg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.30);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    transition: background .4s ease, border-color .4s ease,
                box-shadow .4s ease, backdrop-filter .4s ease;
}

/* Spotlight circular que sigue al mouse — DETRÁS del texto */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 120px at var(--glow-x) var(--glow-y),
        rgba(255, 255, 255, 0.40) 0%,
        rgba(230, 235, 232, 0.15) 40%,
        transparent 100%
    );
    opacity: var(--glow-opacity);
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
}
.header.header--scrolled {
    background: var(--nav-bg-solid);
    border-color: rgba(28,84,52,0.10);
    box-shadow: 0 22px 44px rgba(12,22,18,0.13);
    backdrop-filter: blur(24px);
}
.nav-container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
}
/* Resplandor blanco contenido SOLO detrás del logo */
.brand::after {
    content: '';
    position: absolute;
    inset: -8px -14px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.50) 40%,
        rgba(255, 255, 255, 0.0) 100%
    );
    border-radius: 18px;
    z-index: -1;
    pointer-events: none;
}
.brand-logo {
    width: auto;
    max-height: 72px;
    max-width: 200px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}
.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.menu a {
    color: rgba(74,90,81,0.92);
    text-decoration: none;
    font-size: .97rem;
    font-weight: 600;
    transition: color .22s ease;
    position: relative;
    z-index: 2;
}
.menu a:hover { color: rgba(30, 40, 34, 1); }
.menu a.menu-link--active {
    color: var(--brand-primary);
    font-weight: 700;
}
.menu a.menu-link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 1px;
}

/* Dropdown Productos */
.menu-item-dropdown { position: relative; display: flex; align-items: center; height: 100%; padding: 10px 0; }
.productos-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    width: 600px;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 1000;
    backdrop-filter: blur(24px);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}
.menu-item-dropdown:hover .productos-dropdown,
.menu-item-dropdown:focus-within .productos-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.producto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
    color: var(--brand-primary);
    transition: transform .2s ease;
}
.producto-item:hover { transform: translateY(-4px); }
.producto-img-box {
    width: 64px; height: 64px;
    border-radius: 12px;
    background: #f0f3ee;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding: 6px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}
.producto-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.producto-name { font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.productos-dropdown::-webkit-scrollbar { width: 6px; }
.productos-dropdown::-webkit-scrollbar-thumb { background: rgba(28, 84, 52, 0.2); border-radius: 4px; }

.actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.search-wrapper { position: relative; }
.search-button {
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 10px 22px rgba(16,44,30,0.12);
}
.search-button:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-1px);
}
.search-button svg {
    width: 20px; height: 20px;
    stroke: var(--brand-primary);
}
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    width: 340px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.search-wrapper.active .search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.search-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f3ee;
    padding: 4px 4px 4px 14px;
    border-radius: 10px;
}
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: .9rem;
    color: var(--brand-primary);
    font-family: inherit;
}
.search-input::placeholder { color: #888; }
.search-submit-btn {
    background: linear-gradient(90deg,
        var(--brand-primary) 0%, var(--brand-primary) 50%,
        var(--brand-secondary) 50%, var(--brand-secondary) 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-position .5s ease, transform .2s ease;
}
.search-submit-btn:hover { background-position: 100% 0%; transform: scale(1.05); }
.search-submit-btn svg { width: 18px; height: 18px; stroke: white; }
.search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 250px;
    overflow-y: auto;
}
.search-results:empty { display: none; }
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--brand-primary);
    transition: background .2s ease;
}
.search-result-item:hover { background: rgba(28, 84, 52, 0.08); }
.search-result-item img { width: 36px; height: 36px; object-fit: contain; mix-blend-mode: multiply; }
.search-result-item span { font-size: 0.85rem; font-weight: 600; }
.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: rgba(28, 84, 52, 0.2); border-radius: 4px; }

.cta-button {
    background: linear-gradient(90deg,
        var(--brand-primary) 0%, var(--brand-primary) 50%,
        var(--brand-secondary) 50%, var(--brand-secondary) 100%);
    background-size: 200% 100%;
    background-position: 0% 0%;
    border: none;
    color: white;
    padding: 0 24px;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(28,84,52,0.18);
    transition: background-position .5s ease;
    position: relative;
    z-index: 2;
}
.cta-button:hover { background-position: 100% 0%; }

/* ── Carousel ── */
.card-carousel {
    padding: 40px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    user-select: none;
}

/*
 * La perspectiva está en .carousel-scene.
 * El anillo (.carousel-ring) rota en Y.
 * Las tarjetas son HORIZONTALES: ancho > alto.
 */
.carousel-scene {
    width: 100%;
    height: 420px;
    position: relative;
    perspective: 2000px;
    perspective-origin: 50% 48%;
    cursor: grab;
}
.carousel-scene.dragging { cursor: grabbing; }

.carousel-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.carousel-ring.initialized {
    opacity: 1;
}
/* No transform on the ring itself — each card is positioned
   individually at polygon vertices via translate3d */
/* Tarjeta HORIZONTAL: 380 × 240 px */
.tarjeta {
    position: absolute;
    top: 50%;
    left: 50%;
    /* ancho y alto se sobreescriben por JS con las dimensiones reales */
    width: 380px;
    height: 240px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 20px 56px rgba(10,24,18,0.34);
    background: #101915;
    transform-style: preserve-3d;
    will-change: transform;
    transition: filter .3s ease, box-shadow .3s ease;
    pointer-events: auto;
}
.tarjeta:hover {
    filter: brightness(1.1) saturate(1.08);
    box-shadow: 0 28px 72px rgba(10,24,18,0.44);
}
/* ── Tarjeta destacada (aplanada al frente) ── */
.tarjeta--featured {
    box-shadow:
        0 30px 80px rgba(10, 24, 18, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 0 80px rgba(220, 224, 222, 0.15);
    filter: brightness(1.08) saturate(1.1);
    z-index: 100 !important;
}
/* ── Tarjetas con blur de fondo cuando hay una destacada ── */
.tarjeta--blurred {
    filter: blur(2.5px) brightness(0.85) saturate(0.9);
    transition: filter .5s ease;
}
.tarjeta img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    draggable: false;
}
.tarjeta-copy {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 22px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.38) 40%, rgba(0,0,0,.86) 100%);
}
.tarjeta-copy h3 {
    margin: 0;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.35;
}
.tarjeta-copy p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: .74rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: .02em;
}

.carousel-hint {
    font-size: .78rem;
    color: rgba(60,80,65,.55);
    letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE — Hero + Branch Sections
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Section ── */
.contact-hero {
    padding: 60px 32px 40px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(28, 84, 52, 0.06) 0%,
        transparent 100%
    );
}
.contact-hero__title {
    margin: 0 auto;
    max-width: 800px;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.contact-hero__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    margin: 24px auto 0;
    border-radius: 2px;
}

/* ── Branches Wrapper ── */
.branches-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ── Branch Section ── */
.branch-section {
    padding: 48px 0;
    border-bottom: 1px solid rgba(28, 84, 52, 0.06);
    scroll-margin-top: 120px;
}
.branch-section:last-child {
    border-bottom: none;
}
.branch-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Alternate layout: info left, carousel right */
.branch-section--alt .branch-container {
    direction: rtl;
}
.branch-section--alt .branch-container > * {
    direction: ltr;
}

/* ── Branch Carousel (3D polygon per branch) ── */
.branch-carousel {
    position: relative;
    overflow: hidden;
}
.branch-scene {
    width: 100%;
    height: 380px;
    position: relative;
    perspective: 1200px;
    perspective-origin: 50% 48%;
    cursor: grab;
    user-select: none;
}
.branch-scene.dragging { cursor: grabbing; }

.branch-ring {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.branch-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(10, 24, 18, 0.30);
    background: #101915;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow .3s ease;
    pointer-events: auto;
}
.branch-card:hover {
    box-shadow: 0 20px 56px rgba(10, 24, 18, 0.40);
}
.branch-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Branch Info Panel ── */
.branch-info {
    position: relative;
    z-index: 5;
    padding: 20px 0;
}
.branch-name {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.3;
}
.branch-info-title {
    margin: 0 0 20px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--brand-secondary);
    letter-spacing: .02em;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(28, 84, 52, 0.10);
}

/* ── Info Group (contact details) ── */
.info-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.info-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    stroke: var(--brand-secondary);
    margin-top: 2px;
}
.info-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #3a4a40;
    margin-bottom: 2px;
}
.info-value {
    display: block;
    font-size: .88rem;
    font-weight: 400;
    color: #4a5a51;
    line-height: 1.5;
}

/* ── Footer ── */
.footer {
    background: #eef2ea;
    border-top: 1px solid rgba(28, 84, 52, 0.08);
    padding: 52px 0 0;
    margin-top: 20px;
}
.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.footer-title {
    margin: 0 0 18px;
    color: var(--brand-primary);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Columna NOSOTROS */
.footer-description {
    margin: 0 0 24px;
    color: #4a5a51;
    font-size: .88rem;
    line-height: 1.6;
    font-style: italic;
}
.footer-logo-link {
    display: inline-block;
    transition: opacity .25s ease;
}
.footer-logo-link:hover {
    opacity: 0.8;
}
.footer-logo {
    max-height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Columna DEJANOS AYUDARTE */
.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--brand-primary);
    margin-bottom: 22px;
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-nav a {
    color: #3a4a40;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: color .22s ease;
}
.footer-nav a:hover {
    color: rgba(30, 40, 34, 1);
}

/* Columna CONTACTO */
.footer-subtitle {
    margin: 0 0 12px;
    color: var(--brand-secondary);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.footer-locations {
    margin: 0;
    color: #4a5a51;
    font-size: .88rem;
    line-height: 1.7;
}
.footer-locations-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-locations-nav a {
    color: #4a5a51;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: color .22s ease, padding-left .22s ease;
    position: relative;
    padding-left: 0;
}
.footer-locations-nav a:hover {
    color: var(--brand-primary);
    padding-left: 6px;
}
.footer-locations-nav a::before {
    content: '›';
    position: absolute;
    left: -14px;
    opacity: 0;
    color: var(--brand-secondary);
    font-weight: 700;
    transition: opacity .22s ease, left .22s ease;
}
.footer-locations-nav a:hover::before {
    opacity: 1;
    left: -10px;
}

/* ── Duo Gallery (2-image branches like San José de la Montaña) ── */
.branch-gallery-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}
.duo-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(10, 24, 18, 0.22);
    background: #101915;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94),
                box-shadow .4s ease;
    cursor: pointer;
}
.duo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 56px rgba(10, 24, 18, 0.35);
}
.duo-card img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.duo-card:hover img {
    transform: scale(1.05);
}

/* ── Footer Bottom (copyright + social) ── */
.footer-bottom {
    margin-top: 40px;
    padding: 22px 32px;
    border-top: 1px solid rgba(28, 84, 52, 0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}
.footer-copyright {
    margin: 0;
    font-size: .82rem;
    color: #4a5a51;
}
.footer-copyright strong {
    color: var(--brand-primary);
    font-weight: 700;
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.social-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(28, 84, 52, 0.08);
    color: var(--brand-primary);
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}
.social-link:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
}
.social-link svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   PÁGINA DE PRODUCTOS (Catálogo)
   ═══════════════════════════════════════════════════════════ */
.catalog-main {
    padding: 60px 24px;
    background: #f4f6f1;
    min-height: calc(100vh - 200px);
}
.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.catalog-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(28, 84, 52, 0.05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(28, 84, 52, 0.12);
}
.catalog-card-img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.catalog-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.catalog-card-info h3 {
    margin: 0;
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.3;
}
.pagination {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--brand-primary);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.page-btn:hover:not(:disabled) {
    background: #eef2ea;
    transform: translateY(-2px);
}
.page-btn.active {
    background: var(--brand-primary);
    color: white;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   PÁGINA DE DETALLE DE PRODUCTO
   ═══════════════════════════════════════════════════════════ */
.product-detail-main {
    padding: 60px 24px;
    background: #fcfdfb;
    min-height: calc(100vh - 200px);
}
.product-detail-container {
    max-width: 1100px;
    margin: 0 auto;
}
.product-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.product-gallery {
    display: flex;
    justify-content: center;
}
.product-image-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: #f8f9f6;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.product-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}
.breadcrumb a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: color .2s ease;
}
.breadcrumb a:hover {
    color: var(--brand-primary);
}
.breadcrumb span {
    color: var(--brand-primary);
    font-weight: 700;
}
.product-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.2;
}
.product-short-desc {
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}
.product-actions {
    margin-top: 12px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(28, 84, 52, 0.2);
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(28, 84, 52, 0.3);
}
.product-features {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(28, 84, 52, 0.1);
    display: flex;
    gap: 32px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    font-weight: 600;
    font-size: 0.9rem;
}
.feature-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--brand-secondary);
}
.product-not-found {
    text-align: center;
    padding: 80px 20px;
    color: var(--brand-primary);
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN NOSOTROS
   ═══════════════════════════════════════════════════════════ */
.about-section {
    margin-top: 140px;
    padding: 100px 24px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brand-primary);
    margin: 0 0 24px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 2px;
    margin-top: 12px;
}
.text-center {
    text-align: center;
}
.text-center::after {
    margin-left: auto;
    margin-right: auto;
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5a51;
    margin-bottom: 40px;
    font-weight: 400;
}
.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 30px 60px rgba(28, 84, 52, 0.15);
}
.about-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(220, 224, 222, 0.1) 40%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(20px);
}
.about-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN PROVEEDORES
   ═══════════════════════════════════════════════════════════ */
.suppliers-section {
    padding: 80px 0 120px;
    background: #f6f7f2;
    overflow: hidden;
    text-align: center;
}
.marquee-container {
    margin-top: 50px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
/* Gradientes a los lados para disolver el efecto */
.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #f6f7f2, transparent);
}
.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #f6f7f2, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 50s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-group {
    display: flex;
    gap: 40px;
    padding-right: 40px; /* para unir perfectamente con el siguiente grupo */
}

.supplier-card {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05),
                0 0 15px rgba(255, 255, 255, 1);
    transition: transform .3s ease, box-shadow .3s ease;
}
.supplier-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(28, 84, 52, 0.12),
                0 0 25px rgba(255, 255, 255, 1);
}
.supplier-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

.wa-link {
    color: #25D366;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}
.wa-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   POLÍTICAS Y ACORDEÓN
   ═══════════════════════════════════════════════════════════ */
.policies-section {
    padding: 140px 24px 80px;
    background: #fdfdfd;
    min-height: calc(100vh - 400px);
}
.policies-container {
    max-width: 800px;
    margin: 0 auto;
}
.policies-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin-bottom: 30px;
    text-align: center;
}
.policies-intro {
    background: #f6f7f2;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    border-left: 5px solid var(--brand-secondary);
}
.policies-intro h2 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 12px;
}
.policies-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s;
}
.accordion-item:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}
.accordion-header:hover {
    background: #fafafa;
}
.accordion-header svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    stroke: var(--brand-secondary);
}
.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-content-inner {
    padding: 0 24px 24px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

/* ═══════════════════════════════════════════════════════════
   VACANTES (TRABAJA CON NOSOTROS)
   ═══════════════════════════════════════════════════════════ */
.vacantes-main {
    padding: 140px 24px 80px;
    background: #fdfdfd;
    min-height: calc(100vh - 400px);
}
.vacantes-container {
    max-width: 900px;
    margin: 0 auto;
}
.vacantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.vacante-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.vacante-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 128, 40, 0.15);
}
.vacante-title {
    font-size: 1.4rem;
    color: var(--brand-primary);
    margin-bottom: 12px;
    font-weight: 800;
}
.vacante-date {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

/* Detalle Vacante */
.vacante-detail {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-top: 5px solid var(--brand-secondary);
}
.vacante-detail-title {
    font-size: 2.2rem;
    color: var(--brand-primary);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 900;
}
.vacante-info-group {
    margin-bottom: 24px;
}
.vacante-label {
    font-weight: 800;
    color: var(--brand-primary);
    font-size: 1.1rem;
    display: inline-block;
    margin-right: 8px;
}
.vacante-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    display: inline;
}
.vacante-text-block {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-top: 8px;
}
.btn-mail-inline {
    background: var(--brand-primary);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-block;
    margin: 0 6px;
    transition: background 0.3s;
}
.btn-mail-inline:hover {
    background: #1c5434;
}

/* ── Botón Menú Móvil (Hamburguesa) ── */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--brand-primary);
    z-index: 2000;
}
.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}
body.menu-open .mobile-menu-btn svg {
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE Y MEDIA QUERIES (1024px, 768px, 480px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .about-container {
        gap: 40px;
    }
    .section-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 860px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Carrusel con texto debajo de la imagen en negro */
    .carousel-scene { height: 420px; }
    .tarjeta { 
        width: 300px; 
        height: 340px; 
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .tarjeta img {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    .tarjeta-copy {
        position: static;
        background: none;
        padding: 20px 16px;
    }
    .tarjeta-copy h3 {
        color: #000;
        font-size: 0.95rem;
    }
    .tarjeta-copy p {
        color: #333;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    
    .contact-hero__title { font-size: 1.35rem; }
    .branch-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .branch-section--alt .branch-container {
        direction: ltr;
    }
    .branch-scene { height: 320px; }
    .branch-card { width: 240px; height: 170px; }
    .branch-info { text-align: left; }
    .branch-gallery-duo { gap: 12px; }
    .duo-card img { min-height: 200px; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-view {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    
    /* Imagen de Nosotros más grande en móviles */
    .about-image-wrapper {
        transform: scale(1.15);
        margin-top: 20px;
    }
    
    /* Navbar móvil */
    .mobile-menu-btn {
        display: block;
    }
    .header {
        position: relative !important;
        width: 90% !important;
        margin: 10px auto !important;
        padding: 0 !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        border-radius: 16px;
    }
    .nav-container {
        justify-content: space-between;
        padding: 10px !important;
    }
    
    .menu, .actions {
        position: fixed;
        left: -100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        width: 80%;
        max-width: 320px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.15);
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1500;
        backdrop-filter: blur(20px);
    }
    .menu {
        top: 0;
        height: 100vh;
        padding: 100px 24px 24px;
        justify-content: flex-start;
        gap: 12px;
    }
    
    /* Estilos de los links del menú lateral */
    .menu a {
        font-size: 1.25rem;
        width: 100%;
        text-align: left;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        color: #000;
        font-weight: 700;
    }
    .menu a.menu-link--active::after {
        display: none;
    }
    .actions {
        top: auto;
        bottom: 24px;
        height: auto;
        padding: 24px;
        background: transparent;
        box-shadow: none;
    }
    body.menu-open .menu {
        left: 0;
    }
    body.menu-open .actions {
        left: 0;
    }
    
    .productos-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        max-height: none;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
    }
    .menu-item-dropdown:hover .productos-dropdown,
    .menu-item-dropdown:focus-within .productos-dropdown {
        display: grid;
    }
    
    /* Overlay fondo negro cuando se abre el menú */
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1400;
    }
    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .vacantes-grid {
        grid-template-columns: 1fr;
    }
    .carousel-scene { height: 380px; }
    .tarjeta { width: 260px; height: 320px; }
    .tarjeta img { height: 160px; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-divider {
        margin: 0 auto 22px;
    }
    .footer-locations-nav a::before {
        display: none;
    }
    .footer-locations-nav a:hover {
        padding-left: 0;
    }
    
    /* Contact page */
    .contact-hero { padding: 40px 20px 24px; }
    .contact-hero__title { font-size: 1.15rem; }
    .branches-wrapper { padding: 0 16px 40px; }
    .branch-section { padding: 32px 0; }
    .branch-scene { height: 260px; }
    .branch-card { width: 200px; height: 140px; }
    .branch-name { font-size: 1.15rem; }
    .branch-gallery-duo {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .duo-card img { min-height: 180px; }
}