/* Casa Alice Premium Architectural Styles */

:root {
    --alice-accent-rgb: 97, 122, 126;
    --alice-gold: #c09a6b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --premium-shadow: 0 20px 40px rgba(0,0,0,0.06);
    --premium-shadow-hover: 0 30px 60px rgba(0,0,0,0.12);
}

/* Base Aesthetics */
.section { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.text-accent { color: var(--color-accent); }
.h2 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.h2.mb-sm { margin-bottom: 0.5rem !important; } /* For the 70% reduction request */

/* Grid Utilities for Casa Alice */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.col-span-8 { grid-column: span 8; }
.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }
.gap-xl { gap: clamp(2rem, 5vw, 4rem); }
.gap-lg { gap: var(--space-md); }

@media (max-width: 991px) {
    .grid-12 { grid-template-columns: 1fr; }
    .col-span-8, .col-span-7, .col-span-5, .col-span-4 { grid-column: span 1; }
    .gap-xl { gap: var(--space-md); }
}

/* Hero Transformation Refined */
.hero-contained {
    height: 90vh;
    min-height: 850px;
    border-radius: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) 0;
}

.hero-text-content {
    max-width: 1200px;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This handles the vertical distribution */
    gap: 4rem; /* Spacing between the title block and the specs boxes */
}

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

.hero-tagline {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.alice-title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1;
}

.alice-subtitle {
    color: #fff;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.4rem, 3.5vw, 3rem);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-price {
    color: rgba(255,255,255,1);
    font-size: 1.6rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-specs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-spec-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 160px;
}

.hero-spec-card .spec-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.hero-spec-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Architecture Section (Restored) */
.technical-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: flex-start;
}

.modern-tabs {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.tab-pill {
    background: #f0ede8;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-pill.active {
    background: var(--color-accent);
    color: #fff;
}

/* Ultra-Thin Modern Sliders */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 2px;
    background: #e5e0d8;
    outline: none;
    margin: 1.5rem 0;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a5d5e;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.slider-val-large {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.4rem;
}

.slider-limits {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #ccc;
    margin-top: -10px;
}

/* Savings Modern Card */
.savings-card-dark {
    background: #2d3b36;
    padding: 2rem;
    border-radius: 15px;
    color: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.savings-card-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.savings-result-large {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.savings-card-footer {
    font-size: 1rem;
    opacity: 0.8;
}

/* Comparison Bars (Refined) */
.comp-row {
    margin-top: 2rem;
}

.comp-bar-container {
    height: 6px;
    background: #f0ede8;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.comp-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.comp-bar.trad { background: #d4c4b0; }
.comp-bar.alice { background: #4a5d5e; }

/* Configurator Layout (Vertical Revert) */
/* Configurator Layout (Redesigned) */
.pack-compact-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pack-item-compact {
    background: #fff;
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid #eee;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.pack-item-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: #ddd;
}

.pack-item-compact.active {
    border-color: #2d3b36;
    background: #fafafa;
}

.pack-item-compact .pack-checkbox {
    position: absolute;
    top: 3rem;
    right: 3rem;
    width: 28px;
    height: 28px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pack-item-compact.active .pack-checkbox {
    background: #2d3b36;
    border-color: #2d3b36;
}

.pack-item-compact.active .pack-checkbox::after {
    content: '✓';
    color: #fff;
    display: block;
    text-align: center;
    line-height: 26px;
    font-size: 16px;
}

.pack-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.pack-price-accent {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.pack-desc-light {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 90%;
}

/* Distribution Full Row */
.specs-full-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.premium-summary {
    background: #fff;
    border-radius: 40px;
    padding: 3.5rem 2rem;
    position: sticky;
    top: 120px;
    border: 1.5px solid #2d3b36;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3b36;
    line-height: 1.1;
}

.summary-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #333;
}

.summary-divider {
    height: 1px;
    background: #c09a6b; /* Golden corporate divider */
    margin: 2.5rem 0;
    opacity: 0.6;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.total-label-caps {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: #999;
}

.total-amount-serif {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #2d3b36;
    font-style: italic;
}

.summary-disclaimer {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.4;
    margin-top: 1rem; /* Reduced from 2rem */
    font-style: italic;
}

.btn-summary-send {
    background: var(--color-accent);
    color: #fff;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    width: 100%;
    margin-top: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-summary-send:hover {
    background: #4a5d5e;
    transform: scale(1.02);
}

.spec-item-box {
    padding: 2rem;
    background: #fafafa;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.spec-item-box .h4 {
    font-weight: 700 !important;
}

.spec-item-box:hover {
    background: #fff;
    box-shadow: var(--premium-shadow);
    transform: translateY(-5px);
}

/* Compact Savings Calculator Redesign */
.slider-group {
    margin-bottom: 1rem;
}

.slider-header-stack {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.25rem;
}

.slider-label-caps {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b0ada6;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.slider-val-compact {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #1a1a1a;
}

.range-wrapper {
    position: relative;
    padding: 0;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 1px;
    background: #d4c4b0;
    outline: none;
    margin: 0.75rem 0;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #2d3b36;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-limits-refined {
    display: flex;
    justify-content: space-between;
    margin-top: -1rem;
    font-size: 0.8rem;
    color: #b0ada6;
}

/* Results Column */
.savings-card-dark-minimal {
    background: #2d3b36;
    border-radius: 30px;
    padding: 1.8rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.savings-card-header-caps {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.savings-result-serif {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1;
}

.savings-card-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
}

.comp-row-compact {
    margin-top: 1rem;
    padding: 0 1rem;
}

.comp-bar-rail {
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.comp-bar {
    height: 100%;
    transition: width 1s ease;
}

.trad-bar { background: #d4c4b0; }
.alice-bar { background: #2d3b36; }

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

/* Horizontal Timeline Refinements */
.timeline-horizontal-container {
    position: relative;
    padding: 2rem 0;
    margin-top: 0.5rem;
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background: #eaeaea;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    cursor: pointer;
}

.step-node {
    width: 100px;
    height: 100px;
    background: #fff;
    border: 2px solid #eaeaea;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.timeline-step.active .step-node {
    background: #2d3b36;
    border-color: #2d3b36;
    color: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.step-icon {
    width: 38px;
    height: 38px;
    stroke: currentColor;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.timeline-step.active .step-icon {
    opacity: 1;
    stroke-width: 2;
}

.timeline-detail-box {
    margin-top: 4rem;
    padding: 3rem;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--premium-shadow);
    border-left: 6px solid var(--color-accent);
    min-height: 150px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-detail-box.active {
    opacity: 1;
    transform: translateY(0);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.detail-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Cleaner FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--premium-shadow);
}

.faq-question {
    padding: 2rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

.faq-item[open] .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2.5rem 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Premium Form Refinement */
.form-container-premium {
    background: #fff;
    padding: 5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--premium-shadow-hover);
    border: 1px solid rgba(var(--alice-accent-rgb), 0.1);
}

.form-header {
    margin-bottom: 4rem;
    text-align: center;
}

.form-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-group-premium {
    margin-bottom: 2.5rem;
}

.form-group-premium label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--color-text-light);
}

.form-input-premium {
    width: 100%;
    padding: 1.5rem 0;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 0;
    outline: none;
}

.form-input-premium:focus {
    border-bottom-color: var(--color-accent);
}

/* Responsive Fixes */
@media (max-width: 991px) {
    .technical-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-specs-container { grid-template-columns: 1fr 1fr; }
    .specs-full-row { grid-template-columns: 1fr 1fr; }
    .timeline-track { flex-direction: column; gap: 3rem; align-items: center; }
    .timeline-track::before { display: none; }
    .timeline-step { width: 100%; }
}

@media (max-width: 575px) {
    .hero-specs-container { grid-template-columns: 1fr; }
    .specs-full-row { grid-template-columns: 1fr; }
    .form-container-premium { padding: 3rem 2rem; }
}

/* Refined Pack Cards (Reduced Grid) */
.pack-grid-reduced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pack-card-small {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.pack-card-small:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: var(--premium-shadow-hover);
}

.pack-card-small.active {
    border-color: var(--color-accent);
    background: rgba(var(--alice-accent-rgb), 0.03);
    box-shadow: var(--premium-shadow);
}

.pack-card-small.active .pack-checkbox {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.pack-card-small .pack-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pack-card-small .pack-price {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pack-card-small .pack-desc {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.pack-card-small .pack-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pack-card-small .pack-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-card-small .pack-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 14px;
    display: none;
}

.pack-card-small.active .pack-checkbox::after {
    display: block;
}

/* Gallery and Layout helpers */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--premium-shadow);
    transition: transform 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Pack "Més informació" button */
.btn-more-info {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    margin-top: 1rem;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-more-info:hover {
    opacity: 1;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

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

.modal-title-serif {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #2d3b36;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.modal-divider {
    height: 1px;
    background: var(--alice-gold);
    width: 50px;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.modal-text-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

.modal-text-content b, .modal-text-content strong {
    color: #2d3b36;
}

/* Budget Modal Form */
.form-group-modal {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group-modal label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.modal-input:focus {
    border-bottom-color: var(--color-accent);
}

.modal-input::placeholder {
    color: #ccc;
    opacity: 0.7;
}
