/* VOREAL CUADROS - Premium Design System */

:root {
    --bg-primary: #FAF8F5;
    --bg-secondary: #F2EFE9;
    --text-primary: #1C1C1C;
    --text-secondary: #5A5A5A;
    --accent-gold: #C5A880;
    --accent-gold-dark: #A48962;
    --accent-rose: #DCA2A7;
    --border-color: rgba(28, 28, 28, 0.1);
    --border-focus: #C5A880;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-premium: 0 20px 45px rgba(0, 0, 0, 0.12);
    --shadow-frame: 10px 15px 25px rgba(0, 0, 0, 0.35);
    
    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
    border-radius: 6px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1ebd58;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.bold {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* Header & Banner */
.top-banner {
    background-color: var(--text-primary);
    color: var(--white);
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
}

.main-header {
    background-color: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

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

.cart-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
    padding: 8px;
    transition: transform 0.2s ease;
}

.cart-btn:hover {
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-gold);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease;
}

.accent-text {
    color: var(--accent-gold-dark);
    font-style: italic;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-bg-accent {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220,162,167,0.1) 0%, rgba(250,248,245,0) 70%);
    top: -100px;
    right: -100px;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
    padding: 0 24px;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-description {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Customizer Section */
.customizer-section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.customizer-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 0 24px;
    max-width: 860px;
    margin: 0 auto;
}

/* cust-block: each step section */
.cust-block {
    width: 100%;
    background-color: var(--white);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.cust-block--preview {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cust-block--price {
    background: linear-gradient(135deg, #1C1C1C 0%, #2d2d2d 100%);
    border: none;
}

.cust-block--price .price-row {
    color: rgba(255,255,255,0.7);
}

.cust-block--price .price-row.total-row {
    color: white;
    border-top-color: rgba(255,255,255,0.15);
}

.cust-block--price .price-amount {
    color: var(--accent-gold);
}

.cust-block--price .promo-hint {
    color: rgba(255,255,255,0.5);
}

/* Step label with number circle */
.step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 18px !important;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: white;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-sans);
    flex-shrink: 0;
}

.cust-block--price .step-num {
    background-color: white;
    color: var(--text-primary);
}

/* Rotate button controls row */
.rotate-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.rotate-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}

.rotate-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(197,168,128,0.08);
    color: var(--accent-gold-dark);
    transform: translateY(-1px);
}

.orientation-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    letter-spacing: 0.3px;
}

/* Rotated (Landscape) frame sizes — swap width/height */
.virtual-frame.size-chico.rotated {
    width: 144px;   /* 30 cm units */
    height: 120px;  /* 25 cm units — swapped */
}

.virtual-frame.size-clasico.rotated {
    width: 240px;   /* 50 cm units */
    height: 144px;  /* 30 cm units — swapped */
}

.virtual-frame.size-grande.rotated {
    width: 288px;   /* 60 cm units */
    height: 240px;  /* 50 cm units — swapped */
}

/* Rotated frame-content: sized at portrait proportions, rotated 90°
   so the photo visually turns and fills the landscape frame perfectly */
.virtual-frame.size-chico.rotated .frame-content {
    /* portrait dims: 120×144 */
    width: 120px;
    height: 144px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -60px;
    margin-top: -72px;
    transform: rotate(90deg);
}

.virtual-frame.size-clasico.rotated .frame-content {
    /* portrait dims: 144×240 */
    width: 144px;
    height: 240px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -72px;
    margin-top: -120px;
    transform: rotate(90deg);
}

.virtual-frame.size-grande.rotated .frame-content {
    /* portrait dims: 240×288 */
    width: 240px;
    height: 288px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -120px;
    margin-top: -144px;
    transform: rotate(90deg);
}

/* Legacy: preview-panel still used by JS refs */
.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.room-canvas {
    height: 480px;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(circle, #fcfcfc 0%, #dedede 100%);
    box-shadow: var(--shadow-medium);
}

.virtual-frame-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -30px; /* offset upwards so it hangs above sofa/bed/desk */
}

/* 3D Frame Styling */
.virtual-frame {
    background-color: #eaeaea;
    background-image: repeating-linear-gradient(45deg, #eaeaea, #eaeaea 10px, #f5f5f5 10px, #f5f5f5 20px);
    box-shadow: 
        1px 1px 0 #2c2c2c, 
        2px 2px 0 #2c2c2c, 
        3px 3px 0 #202020, 
        4px 4px 0 #151515, 
        var(--shadow-frame);
    position: relative;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.45s cubic-bezier(0.19, 1, 0.22, 1);
    transform: perspective(800px) rotateX(2deg) rotateY(-4deg);
    border: none;
    overflow: hidden; /* needed so rotated content doesn't spill out */
}

.frame-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    gap: 8px;
    text-align: center;
    padding: 10px;
    opacity: 0.8;
}

/* Size Proportions on Wall */
.room-canvas[data-current-room="clean"] .virtual-frame-container {
    top: 0; /* center on plain wall */
}

/* Sizes relative definitions */
.virtual-frame.size-chico {
    width: 120px;
    height: 144px; /* 25x30 ratio */
}
.virtual-frame.size-clasico {
    width: 144px;
    height: 240px; /* 30x50 ratio */
}
.virtual-frame.size-grande {
    width: 240px;
    height: 288px; /* 50x60 ratio */
}

/* Triptych layout */
.triptych-frame-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: perspective(800px) rotateX(2deg) rotateY(-4deg);
}

.triptych-panel {
    border: none;
    box-shadow: 
        1px 1px 0 #2c2c2c, 
        2px 2px 0 #2c2c2c, 
        3px 3px 0 #151515, 
        6px 10px 18px rgba(0, 0, 0, 0.3); /* Consistent 3D extrusion on triptych panels */
    margin: 0;
    transform: none; /* overrides standard 3D rotation */
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Triptych sizes in previsualizer */
.triptych-frame-container.triptico_chico {
    width: 250px;
    height: 144px;
}
.triptych-frame-container.triptico_chico .triptych-panel {
    width: 70px;
    height: 144px;
}

.triptych-frame-container.triptico_clasico {
    width: 324px;
    height: 240px;
}
.triptych-frame-container.triptico_clasico .triptych-panel {
    width: 100px;
    height: 240px;
}

.triptych-frame-container.triptico_grande {
    width: 440px;
    height: 288px;
}
.triptych-frame-container.triptico_grande .triptych-panel {
    width: 130px;
    height: 288px;
}

.panel-content {
    background-size: 300% 100% !important; /* image is 3x width */
}

#panel-1 { background-position: 0% center !important; }
#panel-2 { background-position: 50% center !important; }
#panel-3 { background-position: 100% center !important; }

.scale-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(28, 28, 28, 0.85);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
}

/* Triptych WhatsApp Preview Placeholder Card */
.triptych-preview-info {
    position: absolute;
    width: 85%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: var(--shadow-premium);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.triptych-preview-info.hidden {
    display: none !important;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.info-card-content svg {
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.info-card-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-primary);
    margin: 0;
}

.info-card-content p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.info-badge {
    display: inline-block;
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold-dark);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 4px;
}

/* Triptych Notice Box */
.triptych-notice-box {
    background-color: rgba(197, 168, 128, 0.1);
    border-left: 3px solid var(--accent-gold);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 14px;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    border-right: 1px solid rgba(197, 168, 128, 0.15);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.triptych-notice-box p {
    margin: 0;
}

/* Controls panel legacy (kept for editor compat) */
.controls-panel {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Price action box inside dark block */
.cust-block--price .price-action-box {
    border-top: none;
    padding-top: 0;
}

.control-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Drag & Drop */
.drag-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
    border-color: var(--accent-gold);
    background-color: var(--bg-primary);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    color: var(--accent-gold);
}

.upload-btn-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: underline;
}

.upload-helper {
    font-size: 12px;
    color: var(--text-secondary);
}

.upload-success-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(37, 211, 102, 0.1);
    color: #1a7f3e;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.remove-img-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 600;
    font-size: 12px;
    margin-left: auto;
    cursor: pointer;
}

/* Sample Images Preview */
.sample-images-container {
    margin-top: 14px;
    margin-bottom: 8px;
    text-align: left;
}

.sample-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sample-images-grid {
    display: flex;
    gap: 10px;
}

.sample-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--bg-secondary);
}

.sample-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.sample-thumb.active-thumb {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

/* Sizes Grid */
.sizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.size-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.size-card.active {
    border-color: var(--text-primary);
    background-color: var(--text-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.size-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.size-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.size-dims {
    font-size: 11px;
    opacity: 0.7;
}

.size-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-single {
    font-size: 16px;
    font-weight: 700;
}

.size-card.active .price-single {
    color: var(--accent-gold);
}

.price-promo {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.size-card.active .price-promo {
    color: var(--accent-rose);
}

/* Summary Box */
.price-action-box {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.price-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.price-row.total-row {
    color: var(--text-primary);
    font-size: 18px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.promo-hint {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 12px;
}

/* Inspiration Section */
.gallery-section {
    background-color: var(--bg-secondary);
    padding: 80px 24px;
}

.inspiration-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.gallery-img-wrapper {
    position: relative;
    padding-bottom: 120%; /* portrait aspect-ratio */
    overflow: hidden;
}

.gallery-placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-placeholder-img {
    transform: scale(1.05);
}

.gallery-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(28, 28, 28, 0.85);
    color: var(--white);
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.gallery-info {
    padding: 16px;
}

.gallery-info h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.gallery-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Benefits Section */
.benefits-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.benefit-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 20px;
    color: var(--accent-gold-dark);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.faq-item.active {
    border-color: var(--accent-gold);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-content {
    max-height: 200px; /* arbitrary height to slide down */
    padding-bottom: 20px;
}

/* Drawer Cart Overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 990;
}

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

/* Drawer Cart Box */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px; /* off screen initially */
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 24px;
}

.close-cart-btn {
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.close-cart-btn:hover {
    color: var(--text-primary);
}

.cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* Empty Cart */
.empty-cart-message {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    margin: auto 0;
}

.close-drawer-link {
    margin-top: 12px;
}

/* Cart Items */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-preview {
    width: 60px;
    height: 80px; /* classical ratio mockup */
    background-color: var(--bg-secondary);
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-preview.triptych-item {
    display: flex;
    gap: 2px;
}

.cart-item-preview.triptych-item .sub-panel {
    flex-grow: 1;
    height: 100%;
    background-size: 300% 100%;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 700;
}

.cart-item-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: var(--bg-secondary);
}

.qty-val {
    width: 24px;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
}

.delete-item-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: 4px;
}

.delete-item-btn:hover {
    color: red;
}

/* Cart Summary & Checkout Form */
.cart-summary-box {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.promo-applied-badge {
    background-color: rgba(220, 162, 167, 0.15);
    color: #a05a60;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.original-price {
    text-decoration: line-through;
    font-size: 13px;
    opacity: 0.6;
}

.final-total {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-gold-dark);
}

/* Checkout Form */
.checkout-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-title {
    font-size: 18px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

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

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
    background-color: var(--white);
}

/* Footer styling */
.main-footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding: 64px 24px 24px 24px;
    margin-top: 80px;
}

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

.footer-brand h3 {
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.7;
    max-width: 320px;
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive CSS */
@media (max-width: 900px) {
    .customizer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-wrap: wrap;
        padding: 8px 16px;
        gap: 8px;
    }
    
    .logo-area {
        flex-grow: 1;
    }
    
    .nav-menu {
        width: 100%;
        display: flex;
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 6px 0;
        border-top: 1px solid var(--border-color);
        scrollbar-width: none;
        justify-content: flex-start;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 4px 0;
    }
    
    .hero-section {
        padding: 60px 16px;
        min-height: auto;
    }

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

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

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-cta-group .btn {
        width: 100%;
    }
    
    .customizer-section {
        padding: 30px 0;
    }

    .customizer-container {
        padding: 0 12px;
        gap: 20px;
    }

    .controls-panel {
        padding: 20px 16px;
        gap: 20px;
    }

    .sizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
    }

    .size-card {
        padding: 12px 10px;
    }

    .size-name {
        font-size: 12px;
    }

    .size-dims {
        font-size: 10px;
    }

    .price-single {
        font-size: 14px;
    }

    .price-promo {
        font-size: 9px;
    }
    
    .room-canvas {
        height: 320px;
    }
    
    .virtual-frame.size-chico {
        width: 80px;
        height: 96px;
    }
    
    .virtual-frame.size-clasico {
        width: 90px;
        height: 150px;
    }
    
    .virtual-frame.size-grande {
        width: 130px;
        height: 156px;
    }
    
    .triptych-frame-container {
        width: 190px;
        height: 140px;
        gap: 4px;
    }
    
    .triptych-panel {
        width: 58px;
        height: 140px;
        border-width: 2px;
        box-shadow: 
            1px 1px 0 #2c2c2c, 
            2px 2px 0 #151515, 
            4px 6px 12px rgba(0, 0, 0, 0.3);
    }

    .triptych-preview-info {
        padding: 16px;
        width: 90%;
    }

    .info-card-content h3 {
        font-size: 18px;
    }

    .info-card-content p {
        font-size: 12px;
    }

    .gallery-section, .benefits-section, .faq-section {
        padding: 40px 16px;
    }

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

    .section-title {
        font-size: 26px;
    }

    .benefit-card {
        padding: 16px;
        gap: 12px;
    }

    .faq-trigger {
        padding: 16px;
        font-size: 14px;
    }

    .faq-content {
        padding: 0 16px;
    }

    .faq-item.active .faq-content {
        padding-bottom: 16px;
    }

    .cart-drawer {
        max-width: 100%;
        right: -100%;
    }
}

/* Gallery Carousel Styles */
.gallery-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 28, 28, 0.7);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.gallery-item:hover .carousel-nav-btn {
    opacity: 1;
}

.carousel-nav-btn:hover {
    background-color: var(--accent-gold);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

/* Testimonials / References Section */
.testimonials-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-gold);
}

.testimonial-rating {
    color: var(--accent-gold);
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-location {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .testimonials-section {
        padding: 40px 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
}

/* Visualizer Default Placeholder */
.visualizer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-secondary);
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 2px dashed var(--accent-gold);
    border-radius: 12px;
    padding: 30px 24px;
    max-width: 320px;
    margin: 40px auto;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.4s ease-out;
}

.visualizer-placeholder p {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.visualizer-placeholder.hidden {
    display: none !important;
}

/* WhatsApp IA Chat Widget */
.wa-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.wa-bubble-btn {
    background-color: #25D366;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.wa-bubble-btn:hover {
    transform: scale(1.08);
    background-color: #1ebd50;
}

.wa-bubble-btn svg {
    width: 28px;
    height: 28px;
}

.wa-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background-color: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: opacity 0.3s ease;
}

.wa-badge.hidden {
    opacity: 0;
    pointer-events: none;
}

.wa-chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 480px;
    background-color: #e5ddd5;
    background-image: radial-gradient(rgba(0, 0, 0, 0.08) 15%, transparent 16%),
                      radial-gradient(rgba(0, 0, 0, 0.08) 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-chat-box.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chat-header {
    background-color: #075E54;
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.wa-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-header-info {
    flex-grow: 1;
}

.wa-header-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.wa-header-info p {
    font-size: 11px;
    opacity: 0.85;
}

.wa-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.wa-close-btn:hover {
    opacity: 1;
}

.wa-chat-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-message.received {
    background-color: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-message.sent {
    background-color: #dcf8c6;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-message p {
    margin: 0;
    white-space: pre-line;
}

.wa-quick-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    align-self: flex-start;
    width: 100%;
}

.wa-opt-btn {
    background-color: #ffffff;
    color: #075E54;
    border: 1px solid rgba(7, 94, 84, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wa-opt-btn:hover {
    background-color: #075E54;
    color: #ffffff;
    border-color: #075E54;
    transform: translateY(-1px);
}

.wa-chat-footer {
    background-color: #f0f0f0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: 1px solid #e0e0e0;
}

.wa-chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    outline: none;
    font-size: 13px;
    background-color: #ffffff;
    font-family: inherit;
}

.wa-chat-footer input::placeholder {
    color: #999;
}

.wa-chat-footer button {
    background-color: #075E54;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.wa-chat-footer button:hover {
    background-color: #054d44;
    transform: scale(1.05);
}

.wa-typing-indicator {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 8px;
    border-top-left-radius: 0;
    font-size: 12px;
    color: #666;
    font-style: italic;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-typing-dots {
    display: inline-flex;
    gap: 2px;
}

.wa-typing-dot {
    width: 4px;
    height: 4px;
    background-color: #666;
    border-radius: 50%;
    animation: waDotKey 1.4s infinite both;
}

.wa-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waDotKey {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .wa-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .wa-chat-box {
        width: 310px;
        height: 420px;
        bottom: 70px;
    }
}
