/* ═══════════════════════════════════════════════════════════
   Terrazas & Patios — Site Stylesheet
   Luxury outdoor living editorial design
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --charcoal: #2A2A2A;
    --warm-black: #1A1714;
    --amber: #C8956C;
    --terracotta: #B85042;
    --cream: #FAF6F1;
    --sand: #E8DDD3;
    --sage: #8B9E7C;
    --warm-gray: #6B6560;
    --light-gray: #D4CFC9;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Announcement Bar ─── */
.announcement-bar {
    background: var(--warm-black);
    color: var(--sand);
    text-align: center;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 300;
}

/* ─── Header ─── */
.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1;
    letter-spacing: -0.5px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo strong {
    font-weight: 600;
    color: var(--terracotta);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-cta {
    display: inline-block;
    background: var(--charcoal);
    color: var(--cream);
    border: none;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.header-cta:hover {
    background: var(--terracotta);
    color: white;
}

/* Interactive mobile nav island: children stay in header-actions flex row */
.mobile-nav-island {
    display: contents;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--charcoal);
    cursor: pointer;
    padding: 4px;
}

/* ─── Navigation ─── */
.main-nav {
    background: var(--cream);
    border-bottom: 1px solid var(--light-gray);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-item {
    display: inline-block;
    padding: 14px 22px;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--warm-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
}

.nav-item:hover,
.nav-item.active {
    color: var(--charcoal);
    border-bottom-color: var(--terracotta);
}

/* ─── Hero ─── */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--warm-black);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-fallback,
.hero-photo,
.hero-tint,
.hero-overlay,
.hero-pattern {
    position: absolute;
    inset: 0;
}

.hero-fallback {
    background: linear-gradient(135deg, #1A1714 0%, #2A2A2A 30%, #B85042 60%, #C8956C 100%);
}

.hero-photo {
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
}

.hero-tint {
    background: linear-gradient(135deg, rgba(26, 23, 20, 0.35) 0%, rgba(184, 80, 66, 0.12) 50%, rgba(200, 149, 108, 0.18) 100%);
    pointer-events: none;
}

.hero-overlay {
    background-image: linear-gradient(
        115deg,
        rgba(26, 23, 20, 0.84) 0%,
        rgba(26, 23, 20, 0.5) 42%,
        rgba(42, 42, 42, 0.58) 100%
    );
    pointer-events: none;
}

.hero-pattern {
    opacity: 0.07;
    background-image: radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
                       radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px;
    animation: heroFadeIn 1.2s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(
        135deg,
        rgba(26, 23, 20, 0.5) 0%,
        rgba(26, 23, 20, 0.28) 45%,
        rgba(26, 23, 20, 0.38) 100%
    );
    backdrop-filter: blur(2px);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    color: #e4b58e;
    margin-bottom: 24px;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 78px);
    font-weight: 300;
    color: white;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.48);
}

.hero h1 em {
    font-style: italic;
    color: var(--amber);
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.65;
    font-weight: 350;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-block;
    background: var(--terracotta);
    color: white;
    border: none;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    text-align: center;
}

.btn-primary:hover {
    background: var(--amber);
    color: var(--warm-black);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.btn-outline:hover {
    background: white;
    color: var(--charcoal);
    border-color: white;
}

/* ─── Sections ─── */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.2;
}

/* ─── Category Grid ─── */
.categories-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--sand);
    transition: transform 0.4s ease;
    display: block;
}

.cat-card:hover {
    transform: translateY(-4px);
}

.cat-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}

.cat-card:hover .cat-card-bg {
    transform: scale(1.05);
}

/* Carrusel con cross-fade (Home, inspiración, productos) */
.hover-image-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hover-image-carousel__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.65s ease;
    pointer-events: none;
}

.hover-image-carousel__layer.is-active {
    opacity: 1;
}

.hover-image-carousel__fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hover-image-carousel__fallback--empty {
    background: var(--sand);
}

@media (prefers-reduced-motion: reduce) {
    .hover-image-carousel__layer {
        transition: none;
    }
}

.cat-card .hover-image-carousel {
    transition: transform 0.6s ease;
}

.cat-card:hover .hover-image-carousel {
    transform: scale(1.05);
}

.cat-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(26, 23, 20, 0.85) 0%, rgba(26, 23, 20, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.cat-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    color: white;
    font-weight: 400;
    margin-bottom: 6px;
}

.cat-card-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
}

.cat-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    pointer-events: none;
    color: white;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.3s ease;
}

.cat-card:hover .cat-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ─── Section Detail ─── */
.section-detail {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--warm-gray);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 20px 40px;
    transition: color 0.3s ease;
    font-weight: 400;
}

.back-btn:hover {
    color: var(--charcoal);
}

.detail-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.detail-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.detail-hero-fallback,
.detail-hero-photo,
.detail-hero-tint,
.detail-hero-overlay {
    position: absolute;
    inset: 0;
}

.detail-hero-fallback {
    background-size: cover;
    background-position: center;
}

.detail-hero-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tono de marca sobre la foto sin taparla (el overlay opaco estaba ocultando la imagen). */
.detail-hero-tint {
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
}

.detail-hero-overlay {
    background-image: linear-gradient(
        105deg,
        rgba(26, 23, 20, 0.88) 0%,
        rgba(26, 23, 20, 0.42) 48%,
        rgba(42, 42, 42, 0.55) 100%
    );
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    width: 100%;
}

.detail-hero h2 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 300;
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
}

.detail-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.7;
    font-weight: 300;
}

/* ─── Detail Tabs ─── */
.detail-tabs {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 68px;
    z-index: 50;
}

.detail-tabs-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 0;
}

.detail-tab {
    padding: 18px 28px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--warm-gray);
    cursor: pointer;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 400;
    background: none;
    font-family: var(--font-body);
}

.detail-tab:hover,
.detail-tab.active {
    color: var(--charcoal);
    border-bottom-color: var(--terracotta);
}

/* ─── Product Grid ─── */
.products-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border: 1px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-thumb {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--warm-gray);
    font-style: italic;
    position: relative;
    overflow: hidden;
    padding: 16px;
    text-align: center;
}

.product-thumb--media {
    padding: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.product-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.product-thumb-carousel.hover-image-carousel {
    z-index: 0;
}

.product-info {
    padding: 20px;
}

.product-brand {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 6px;
    font-weight: 500;
}

.product-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 13px;
    color: var(--warm-gray);
    line-height: 1.5;
    font-weight: 300;
}

/* ─── Subcategory Pills ─── */
.subcategory-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.subcat-pill {
    padding: 8px 20px;
    border: 1px solid var(--light-gray);
    background: white;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--warm-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 24px;
    font-weight: 400;
}

.subcat-pill:hover,
.subcat-pill.active {
    background: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
}

/* ─── Filters ─── */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light-gray);
}

.filter-chip {
    padding: 8px 18px;
    border: 1px solid var(--light-gray);
    background: white;
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--warm-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--charcoal);
    color: var(--charcoal);
    background: var(--sand);
}

/* ─── Pagination ─── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--light-gray);
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-gray);
    background: white;
    color: var(--warm-gray);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--charcoal);
    color: white;
    border-color: var(--charcoal);
}

/* ─── Inspiration Gallery ─── */
.inspiration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.inspo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.inspo-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.inspo-item-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
    background-size: cover;
    background-position: center;
}

.inspo-item:hover .inspo-item-bg {
    transform: scale(1.05);
}

.inspo-item .hover-image-carousel {
    transition: transform 0.6s ease;
}

.inspo-item:hover .hover-image-carousel {
    transform: scale(1.05);
}

.inspo-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inspo-item:hover .inspo-overlay {
    opacity: 1;
}

.inspo-label {
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Carrusel Inspiración (tab categoría): bloque único bajo tabs */
.timed-crossfade-carousel {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.inspiration-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.inspiration-hero__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    max-height: 72vh;
    overflow: hidden;
    background: var(--sand);
}

.inspiration-hero__carousel {
    position: absolute;
    inset: 0;
}

.inspiration-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(26, 23, 20, 0.55) 0%, transparent 45%);
}

/* Visor inspiración full page */
.fullscreen-layout-root {
    min-height: 100vh;
    background: var(--warm-black);
}

.inspiration-viewer {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.85);
    outline: none;
}

.inspiration-viewer--empty {
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px;
}

.inspiration-viewer__empty-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
}

.inspiration-viewer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inspiration-viewer__backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease;
}

.inspiration-viewer__backlink:hover {
    color: var(--amber);
}

.inspiration-viewer__counter {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.inspiration-viewer__stage {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 24px 16px 12px;
    min-height: 0;
}

.inspiration-viewer__viewport {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    cursor: grab;
    touch-action: none;
}

.inspiration-viewer__viewport:active {
    cursor: grabbing;
}

.inspiration-viewer__pan {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    transition: transform 0.12s ease-out;
}

.inspiration-viewer__layer {
    object-fit: contain !important;
    object-position: center;
}

.inspiration-viewer__hint {
    text-align: center;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    padding: 8px 20px 28px;
    margin: 0;
}

.carousel-arrow-btn {
    align-self: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    padding: 0;
}

.carousel-arrow-btn:hover {
    background: rgba(200, 149, 108, 0.2);
    border-color: rgba(200, 149, 108, 0.55);
}

.carousel-arrow-btn--mirror {
    transform: scaleX(-1);
}

/* Oscilación horizontal ~sin(2πt): 16 muestras, amplitud 6px, periodo 2.35s */
@keyframes carousel-arrow-sine-x {
    0% {
        transform: translateX(0);
    }
    6.25% {
        transform: translateX(1.91px);
    }
    12.5% {
        transform: translateX(3.54px);
    }
    18.75% {
        transform: translateX(4.62px);
    }
    25% {
        transform: translateX(6px);
    }
    31.25% {
        transform: translateX(4.62px);
    }
    37.5% {
        transform: translateX(3.54px);
    }
    43.75% {
        transform: translateX(1.91px);
    }
    50% {
        transform: translateX(0);
    }
    56.25% {
        transform: translateX(-1.91px);
    }
    62.5% {
        transform: translateX(-3.54px);
    }
    68.75% {
        transform: translateX(-4.62px);
    }
    75% {
        transform: translateX(-6px);
    }
    81.25% {
        transform: translateX(-4.62px);
    }
    87.5% {
        transform: translateX(-3.54px);
    }
    93.75% {
        transform: translateX(-1.91px);
    }
    100% {
        transform: translateX(0);
    }
}

.carousel-arrow-btn__oscillator {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: carousel-arrow-sine-x 2.35s linear infinite;
    will-change: transform;
}

.carousel-arrow-btn__svg {
    width: 42px;
    height: 42px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@media (prefers-reduced-motion: reduce) {
    .carousel-arrow-btn__oscillator {
        animation: none;
    }
}

@media (max-width: 768px) {
    .inspiration-hero {
        padding: 24px 16px 48px;
    }

    .inspiration-hero__stage {
        min-height: 220px;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .inspiration-viewer__stage {
        flex-direction: row;
        padding: 16px 8px 8px;
        gap: 8px;
    }

    .carousel-arrow-btn {
        width: 44px;
        height: 44px;
    }

    .carousel-arrow-btn__svg {
        width: 34px;
        height: 34px;
    }
}

/* ─── Contact Form ─── */
.contact-section {
    background-color: var(--warm-black);
    background-image:
        linear-gradient(
            rgba(26, 23, 20, 0.50),
            rgba(26, 23, 20, 0.50)
        ),
        url("/images/hablemos-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 40px;
}

.contact-inner {
    max-width: 900px;
    margin: 0 auto;
}

.contact-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 300;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    transition: border-color 0.3s ease;
    outline: none;
    width: 100%;
    border-radius: 0;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--amber);
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--warm-black);
    color: white;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    grid-column: span 2;
    margin-top: 12px;
}

.form-submit .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 13px;
}

/* Blazor form overrides — EditForm inputs */
.contact-section input.valid,
.contact-section select.valid,
.contact-section textarea.valid {
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-section input.invalid,
.contact-section select.invalid,
.contact-section textarea.invalid {
    border-color: #f66;
}

.contact-section .validation-message {
    color: #f99;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 300;
}

/* ─── Value Props Banner ─── */
.values-banner {
    background: white;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    padding: 48px 40px;
}

.values-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    flex-shrink: 0;
    overflow: hidden;
}

.value-icon-photo {
    padding: 0;
    background: var(--sand);
}

.value-icon-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.value-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--charcoal);
}

.value-desc {
    font-size: 13px;
    color: var(--warm-gray);
    line-height: 1.5;
    font-weight: 300;
}

/* ─── Brands ─── */
.brands-section {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.brands-section .section-eyebrow {
    color: var(--charcoal);
}

.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.brands-section .brand-name {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--warm-gray);
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    cursor: default;
}

.brands-section .brand-name:hover {
    color: var(--terracotta);
}

/* ─── Footer ─── */
.site-footer {
    background-color: var(--warm-black);
    background-image: linear-gradient(
            rgba(26, 23, 20, 0.84) 0%,
            rgba(26, 23, 20, 0.8) 50%,
            rgba(26, 23, 20, 0.85) 100%
        ),
        url("/images/footer-terrazas-dark.jpg");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 40px 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 24px;
    color: white;
    margin-bottom: 16px;
    font-weight: 300;
}

.footer-brand strong {
    color: var(--terracotta);
    font-weight: 600;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 320px;
}

.footer-col-title {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    font-weight: 400;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-link:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px 24px;
    font-size: 12px;
    font-weight: 300;
}

.footer-copy {
    justify-self: start;
}

.footer-developer {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    max-width: 42ch;
}

.footer-bottom .footer-contact {
    grid-column: 3;
    justify-self: end;
}

.footer-dev-link {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
    transition:
        color 0.35s ease,
        text-shadow 0.35s ease,
        box-shadow 0.35s ease,
        background-color 0.35s ease;
}

.footer-dev-link:hover {
    color: rgba(255, 248, 220, 0.98);
    background-color: rgba(212, 175, 55, 0.12);
    text-shadow:
        0 0 10px rgba(255, 215, 120, 0.55),
        0 0 22px rgba(218, 165, 32, 0.45),
        0 0 36px rgba(184, 134, 11, 0.3);
    box-shadow:
        0 0 0 1px rgba(255, 215, 100, 0.25),
        0 0 18px rgba(218, 165, 32, 0.35),
        0 0 36px rgba(184, 134, 11, 0.22);
}

.footer-contact {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Mobile Menu ─── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 200;
    flex-direction: column;
    padding: 80px 40px 40px;
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--charcoal);
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-item {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--charcoal);
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 400;
}

.mobile-menu-item:hover {
    color: var(--terracotta);
}

/* ─── Blazor Overrides ─── */
#blazor-error-ui {
    background: var(--terracotta);
    color: white;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    text-align: center;
    display: none;
}

.blazor-error-boundary {
    background: var(--sand);
    padding: 40px;
    text-align: center;
}

.blazor-error-boundary::after {
    content: "Algo salió mal. Recarga la página.";
    font-family: var(--font-body);
    color: var(--warm-gray);
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--warm-gray);
    font-size: 14px;
    font-weight: 300;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-inner > div:first-child {
        grid-column: 1 / -1;
    }

    .values-inner {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .header-main {
        padding: 14px 20px;
    }

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .hero {
        min-height: 560px;
        height: 78vh;
    }

    .hero-content {
        padding: 24px 18px;
        max-width: min(92vw, 680px);
        border-color: rgba(255, 255, 255, 0.16);
        background: linear-gradient(
            165deg,
            rgba(26, 23, 20, 0.62) 0%,
            rgba(26, 23, 20, 0.4) 60%,
            rgba(26, 23, 20, 0.52) 100%
        );
    }

    .hero h1 {
        font-size: clamp(40px, 8vw, 52px);
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 2.2px;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 28px;
        max-width: 36ch;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

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

    .products-area {
        padding: 30px 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .inspiration-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        padding: 30px 20px;
    }

    .inspo-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

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

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

    .form-group.full {
        grid-column: span 1;
    }

    .form-submit {
        grid-column: span 1;
    }

    .detail-tabs-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-hero-content {
        padding: 60px 20px 40px;
    }

    .values-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-copy,
    .footer-developer,
    .footer-bottom .footer-contact {
        grid-column: 1;
        justify-self: center;
    }

    .footer-developer {
        max-width: 100%;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }

    .brands-row {
        gap: 24px;
    }

    .brands-section .brand-name {
        font-size: 18px;
    }

    .subcategory-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .subcat-pill {
        flex-shrink: 0;
    }

    .back-btn {
        padding: 16px 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .announcement-bar {
        font-size: 10px;
        letter-spacing: 1.5px;
        padding: 8px 12px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 600px;
    }

    .hero-content {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: clamp(34px, 10vw, 42px);
    }

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

    .cat-card-title {
        font-size: 22px;
    }

    .detail-hero h2 {
        font-size: 32px;
    }

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

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ── Auth (Identity) ── */
.auth-panel {
    max-width: 420px;
    margin: 4rem auto;
    padding: 2rem 2.25rem;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(26, 23, 20, 0.06);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--warm-black);
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--warm-gray);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 0.4rem;
}

.auth-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--light-gray);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--cream);
}

.auth-input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 2px rgba(200, 149, 108, 0.25);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--warm-black);
    color: var(--cream);
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.auth-submit:hover:not(:disabled) {
    background: var(--terracotta);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--warm-gray);
    text-align: center;
}

.auth-footer a {
    color: var(--terracotta);
    text-decoration: underline;
}

.auth-error {
    color: var(--terracotta);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth-validation {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--terracotta);
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.header-auth a {
    color: var(--warm-black);
    letter-spacing: 0.04em;
}

.header-auth a:hover {
    color: var(--terracotta);
}
