:root {
    --primary: #323c2d;
    --accent: #c0a062;
    /* Gold/Wood tone */
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Header */
/* Header */
header {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0.5rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    list-style: none;
}

.nav-links li {
    flex-grow: 1;
    text-align: center;
}

.logo img {
    height: 130px;
    width: auto;
    transition: var(--transition);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-button {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: calc(100vh - 220px);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/Portada.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-bottom: 4rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features/Projects */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 250px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Testimonials */
.testimonials {
    background-color: var(--light-bg);
    margin-top: 5rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 5rem 2rem 2rem;
    border-top: 1px solid #f0f0f0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --- MEGA EXPERIENCE UPGRADES --- */

/* Comparison Charts (Histograms) */
.comparison-section {
    background: var(--light-bg);
}

.chart-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-row {
    margin-bottom: 2rem;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bar-wrapper {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    width: 0;
    /* Animated to width */
    transition: width 1.5s ease-out;
}

.bar-cuik {
    background: linear-gradient(90deg, var(--accent), #eacda3);
}

.bar-trad {
    background: #95a5a6;
}

/* Timeline/Process */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Materials Cards */
.tech-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: var(--transition);
}

.tech-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.tech-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

/* Models Section */
.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}

.model-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.model-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.model-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.model-img.garajonay {
    background-image: url('images/Modelo Garajonay_Frente.png');
    transition: background-image 0.5s ease-in-out;
}

.model-img.garajonay:hover {
    background-image: url('images/Modelo Garajonay_Trasera.png');
}

.model-img.single-sunday {
    background-image: url('images/Modelo Single Sunday.png');
    transition: background-image 0.5s ease-in-out;
}

.model-img.single-sunday:hover {
    background-image: url('images/Modelo Single Sunday trasera.png');
}

.model-img.max-day {
    background-image: url('images/Modelo Max Day.png');
    transition: background-image 0.5s ease-in-out;
}

.model-img.max-day:hover {
    background-image: url('images/Modelo Max Day trasera.png');
}

.model-img.tyni-house {
    background-image: url('images/Tyni house o ampliacion de vivienda.png');
    transition: background-image 0.5s ease-in-out;
}

.model-img.tyni-house:hover {
    background-image: url('images/Tyni house interior.png');
}

.model-content {
    padding: 2rem;
}

.model-price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.model-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
    font-size: 0.9rem;
}

.spec-item i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    display: none;
    /* Hidden by default, toggled via JS or details element */
}

/* Using details/summary for native accordion behavior */
details.faq-item>summary {
    list-style: none;
}

details.faq-item>summary::-webkit-details-marker {
    display: none;
}

details[open] .faq-answer {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }
}