/* ═══════════════════════════════════════════════════════════════════
   respeten.css – Estilos exclusivos de la landing "RESpeten la Casa"
   ═══════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

body.res-page {
    background: var(--surface-2, #f5f5f0);
}

/* Botones más compactos acá (el .btn global es 18px 35px, pensado para heroes
   grandes) — este hero es más bajo, así que achicamos solo en esta landing. */
.res-page .btn {
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border: none;
}

/* ─── Header simple (logo + volver + carrito) ──────────────────────── */
.res-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 16, 14, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.res-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.res-header-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: normal;
    white-space: nowrap;
}
.res-header-address i { color: var(--primary, #c54132); }

/* ─── Subnav fija (links + buscador) ───────────────────────────────── */
.res-subnav {
    position: sticky;
    top: 80px; /* justo debajo del header (80px de alto) */
    z-index: 49;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.res-subnav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.res-subnav-links {
    display: flex;
    gap: 28px;
}
.res-subnav-links a {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.res-subnav-links a:hover { color: var(--primary, #c54132); }
.res-search-wrap {
    position: relative;
    max-width: 320px;
    width: 100%;
}
.res-subnav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2, #f5f5f0);
    border-radius: 50px;
    padding: 8px 18px;
    width: 100%;
}
.res-subnav-search i { color: var(--text-muted, #888); font-size: 0.85rem; }
.res-subnav-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    width: 100%;
    color: #222;
}
.res-subnav-search input::placeholder {
    font-style: italic;
    color: rgba(34, 34, 34, 0.45);
}

/* ─── Dropdown de búsqueda (busca en todo el catálogo, no solo esta landing) ── */
.res-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    z-index: 60;
    padding: 8px;
}
.res-search-dropdown.open { display: block; }
.res-search-dropdown .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border: none;
    box-shadow: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.res-search-dropdown .product-card:hover { background: var(--surface-2, #f5f5f0); }
.res-search-dropdown .card-img-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    aspect-ratio: unset;
}
.res-search-dropdown .card-content { flex: 1; min-width: 0; }
.res-search-dropdown .product-title {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.res-search-dropdown .product-price {
    font-size: 0.78rem;
    color: var(--primary, #c54132);
    font-weight: 700;
}
.res-search-dropdown .btn-buy { display: none; } /* en el dropdown solo abrimos el drawer, no agregamos directo */
.res-search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
}

/* ─── Respiro blanco entre el hero y el resto ──────────────────────── */
.res-hero-spacer {
    height: 25px;
    background: #fff;
}

/* ─── Hero slider ───────────────────────────────────────────────────── */
.res-hero {
    position: relative;
    height: 56vh;
    min-height: 420px;
    max-height: 560px;
    overflow: hidden;
    color: #fff;
}
.res-slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.res-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.res-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.75) 100%);
}
.res-slide-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}
.res-eyebrow {
    display: inline-block;
    /* background: var(--primary, #c54132); */
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.res-h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 12px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
.res-h1 .res-mark { color: var(--primary, #c54132); }
.res-sub {
    font-size: clamp(0.92rem, 1.6vw, 1.1rem);
    max-width: 520px;
    margin: 0 0 20px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.res-slide-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 12px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.res-hero-seal {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: clamp(280px, 28vw, 460px);
    z-index: 3;
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}
.res-bullets {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.res-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.res-bullet.active { background: #fff; transform: scale(1.3); }

/* ─── Banderas / ventajas ───────────────────────────────────────────── */
.res-ventajas {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.res-ventaja-card {
    background: var(--surface, #fff);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.res-ventaja-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary, #c54132);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.res-ventaja-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.res-ventaja-card p {
    font-size: 0.88rem;
    color: var(--text-muted, #555);
    margin: 0;
    line-height: 1.5;
}

/* ─── Sección de producto ───────────────────────────────────────────── */
.res-productos {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 40px 70px;
    scroll-margin-top: 161px; /* header (80px) + subnav (56px) + 25px de aire */
}
.res-section-header {
    text-align: center;
    margin-bottom: 36px;
}
.res-section-header h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    margin: 0 0 10px;
}
.res-section-header p {
    color: var(--text-muted, #555);
    font-size: 1rem;
}
.res-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.res-grid .product-card { min-width: 0; } /* pisa el min-width:240px de .product-card: acá el ancho lo da el grid */
.res-grid .placeholder-card {
    background: var(--surface-2, #f5f5f0);
    border: 1px solid rgb(0 0 0 / 9%);
    box-shadow: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.res-grid .placeholder-card:hover { transform: none; box-shadow: none; }

/* ─── RESolvé con Packs (fondo oliva, mismo tono que .gondola-section) ── */
.res-packs-section {
    background: #849260;
    padding: 70px 40px;
    scroll-margin-top: 161px; /* header (80px) + subnav (56px) + 25px de aire */
}
.res-packs-header h2,
.res-packs-header p {
    color: #fff;
}
.res-packs-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.res-packs-grid .product-card { min-width: 0; }
.res-packs-cta {
    text-align: center;
    margin-top: 40px;
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.res-faq {
    max-width: 880px;
    margin: 0 auto;
    padding: 90px 40px 80px;
}
.res-faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.res-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}
.res-faq-q i { transition: transform 0.25s; color: var(--primary, #c54132); }
.res-faq-item.open .res-faq-q i { transform: rotate(45deg); }
.res-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-muted, #555);
    font-size: 0.92rem;
    line-height: 1.6;
}
.res-faq-item.open .res-faq-a { max-height: 240px; padding-bottom: 20px; }

/* ─── CTA final ──────────────────────────────────────────────────────── */
.res-cta-final {
    text-align: center;
    padding: 50px 20px 90px;
}
.res-cta-final p {
    font-size: 1.05rem;
    color: var(--text-muted, #555);
    margin-bottom: 20px;
}

/* ─── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .res-ventajas, .res-grid, .res-packs-grid { grid-template-columns: repeat(2, 1fr); }
    /* 10 cortes cierran parejo en 2 columnas, los placeholders son solo para 4 */
    .res-grid .placeholder-card { display: none; }
}
@media (max-width: 768px) {
    .res-header-inner { padding: 8px 16px; }
    .res-header-inner .main-logo-svg { width: 120px; height: 27px; }
    .res-subnav { top: 68px; } /* se achica el header en mobile (68px de alto) */
    .res-subnav-inner { padding: 6px 16px; gap: 10px; }
    .res-subnav-links { gap: 14px; }
    .res-subnav-links a { font-size: 0.68rem; letter-spacing: 0.3px; }
    .res-search-wrap { max-width: 56%; }
    .res-subnav-search { padding: 5px 12px; gap: 6px; }
    .res-subnav-search i { font-size: 0.72rem; }
    .res-subnav-search input { font-size: 0.72rem; }
    .res-hero { height: 62vh; min-height: 380px; max-height: 480px; }
    .res-slide-content { padding: 0 20px; }
    .res-hero-seal { display: none; }
    .res-header-address { display: none; }
    .res-ventajas { padding: 40px 20px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .res-ventaja-card { padding: 20px 14px; }
    .res-productos { padding: 10px 20px 50px; }
    .res-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .res-packs-section { padding: 50px 20px; }
    .res-packs-grid { gap: 14px; }
    .res-packs-grid .card-img-wrapper { height: 150px !important; }
    .res-faq { padding: 10px 20px 60px; }
    .res-productos, .res-packs-section { scroll-margin-top: 128px; } /* header (68px) + subnav (35px) + 25px de aire */
}
