:root {
    --cream:        #f7f3eb;
    --warm-white:   #fefcf8;
    --forest:       #2a5c1f;
    --forest-light: #3d7a2e;
    --forest-dark:  #1a3d12;
    --amber:        #c8891e;
    --amber-light:  #e6a835;
    --stone:        #7a6a55;
    --stone-light:  #a89880;
    --text-dark:    #1e1a14;
    --text-mid:     #4a4238;
    --text-light:   #7a6a55;
    --border:       #d9cebc;
}

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

body {
    background-color: var(--warm-white);
    color: var(--text-dark);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
}

/* ── Language bar ── */
#lang-bar {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 8px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--stone);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 16px;
    letter-spacing: 0.06em;
    transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
    color: var(--forest);
}

.lang-btn.active {
    background: var(--forest);
    color: #fff;
}

/* ── Hero ── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-img-placeholder {
    position: absolute;
    inset: 0;
    background-image: url('img/casa-exterior.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@media (max-width: 700px) {
    .hero-img-placeholder {
        background-image: url('img/casa-exterior-mobile.jpg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        background-color: #0f1e0a;
    }
}

.hero-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 30, 10, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 24px;
    max-width: 680px;
}

.hero-logo {
    width: clamp(80px, 12vw, 130px);
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.hero-label {
    font-family: system-ui, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-light);
    margin-bottom: 16px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-tagline {
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    color: #fff;
    margin-bottom: 36px;
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    background: var(--amber);
    color: #fff;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
}

.btn-primary.btn-large {
    font-size: 1.1rem;
    padding: 16px 44px;
}

.btn-secondary {
    display: inline-block;
    background: none;
    color: var(--forest);
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border: 2px solid var(--forest);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--forest);
    color: #fff;
}

/* ── Sections ── */
.section {
    padding: 80px 24px;
}

.section-light {
    background: var(--warm-white);
}

.section-dark {
    background: var(--forest-dark);
    color: #fff;
}

.section-accent {
    background: var(--cream);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--forest);
}

.section-dark h2 {
    color: var(--amber-light);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 660px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.section-dark .section-desc {
    color: rgba(255,255,255,0.75);
}

/* ── Feature cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--forest);
    margin-bottom: 6px;
    font-family: system-ui, sans-serif;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}

/* ── Carousel ── */
.carousel {
    position: relative;
    margin-top: 32px;
}

.carousel-viewport {
    overflow-x: scroll;
    scrollbar-width: none;
    border-radius: 8px;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 12px;
}

.carousel-track img {
    flex: 0 0 var(--item-w, 200px);
    width: var(--item-w, 200px);
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover { background: rgba(0, 0, 0, 0.75); }
.carousel-btn.prev-btn { left: -20px; }
.carousel-btn.next-btn { right: -20px; }

/* ── Entorn photo inline ── */
.entorn-photo {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 16px;
    display: block;
}

@media (max-width: 700px) {
    .carousel-btn.prev-btn { left: -12px; }
    .carousel-btn.next-btn { right: -12px; }
}

/* ── Entorn grid ── */
.entorn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}

.entorn-block h3 {
    font-size: 1rem;
    font-weight: 700;
    font-family: system-ui, sans-serif;
    color: var(--amber-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entorn-block ul {
    list-style: none;
    padding: 0;
}

.entorn-block ul li {
    font-family: system-ui, sans-serif;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.entorn-block ul li::before {
    content: '→ ';
    color: var(--amber-light);
    font-weight: 600;
}

.entorn-block ul li a {
    color: rgba(255,255,255,0.82);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255,255,255,0.3);
    transition: color 0.15s;
}

.entorn-block ul li a:hover {
    color: var(--amber-light);
    text-decoration-color: var(--amber-light);
}

/* ── Ramadera ── */
.ramadera-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ramadera-text h2 {
    color: var(--forest);
    margin-bottom: 16px;
}

.ramadera-text p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 14px;
}

.ramadera-foto img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
    .ramadera-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ── Map ── */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

/* ── Booking & Contact ── */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.booking-block h2,
.contact-block h2 {
    color: var(--forest);
    margin-bottom: 12px;
}

.booking-block p,
.contact-block p {
    font-family: system-ui, sans-serif;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px !important;
    font-size: 1rem !important;
}

.contact-icon {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-icon--instagram svg {
    fill: #E1306C !important;
}

.contact-icon--facebook svg {
    fill: #1877F2 !important;
}

.contact-icon--whatsapp svg {
    fill: #25D366 !important;
}

/* ── Footer ── */
#footer {
    background: var(--forest-dark);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 24px;
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
}

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

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

    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo-placeholder-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 16px;
    }
}
