/* 
    Casas Pirineos - Global Stylesheet
    Design Estilo: Rural y Chic
    Colores: Tonos cálidos, maderas, grises piedra, blanco roto.
*/

:root {
    --primary: #2D5A27;
    /* Verde Bosque / Rural Chic */
    --primary-dark: #1E3F1A;
    --accent: #8B5E3C;
    /* Café Madera */
    --light-bg: #F9F7F2;
    /* Blanco Roto / Crema */
    --dark-bg: #1A1A1A;
    /* Negro Carbonizado */
    --stone-gray: #4A4A4A;
    /* Gris Piedra */
    --text-color: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--stone-gray);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--dark-bg);
    color: var(--white);
}

.bg-dark h2 {
    color: var(--white);
}

/* --- Header & Navigation --- */

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: var(--transition);
}

.sticky-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.sticky-nav.scrolled .logo a {
    color: var(--primary);
}

.sticky-nav.scrolled .nav-links a {
    color: var(--stone-gray);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-content h1 {
    font-size: 64px;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 800px;
}

.hero-content p {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-feature i {
    font-size: 24px;
    color: var(--primary);
}

.hero-feature span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

/* --- Section Headers --- */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Video Presentation --- */
.video-container {
    max-width: 900px;
    margin: 0 auto 80px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #000;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Houses Grid --- */

.houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.house-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.house-card:hover {
    transform: translateY(-10px);
}

.house-slider {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
}

.slider-wrapper img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--white);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.house-info {
    padding: 30px;
}

.house-info h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.capacity {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.amenities li {
    font-size: 14px;
    color: var(--text-muted);
}

.amenities i {
    color: var(--primary);
    margin-right: 5px;
}

.description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* --- Activities --- */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.activity-card {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.activity-card:hover img {
    transform: scale(1.1);
}

.activity-overlay h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 5px;
}

.activity-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* --- Services Grid --- */

.services-block {
    margin-top: 100px;
    text-align: center;
}

.services-block h3 {
    font-size: 32px;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.service-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-item h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Distances --- */

.distances-block {
    margin-top: 80px;
    text-align: center;
}

.distances-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.distances-list span {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

/* --- Map --- */

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 60px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Reservas & FAQ --- */

.reservas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.reservas-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.reservas-text p {
    font-size: 18px;
    margin-bottom: 40px;
}

.booking-badge {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-badge i {
    color: #F8B600;
    /* Booking Gold */
}

/* Accordion */

.faq-accordion h3 {
    margin-bottom: 30px;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--stone-gray);
    cursor: pointer;
    text-align: left;
}

.accordion-header i {
    transition: var(--transition);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body p {
    padding-bottom: 20px;
    color: var(--text-muted);
}

.accordion-item.active .accordion-body {
    max-height: 200px;
}

/* --- Contact & Footer --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.contact-form-block h2,
.contact-info-block h2 {
    color: var(--white);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-details {
    margin-bottom: 50px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 5px;
}

.contact-details strong {
    display: block;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

.social-links a:hover {
    background-color: var(--primary);
}

.main-footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Animations --- */

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .reservas-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 40px;
        text-align: center;
        box-shadow: var(--shadow);
    }

    .sticky-nav.mobile-active .nav-links {
        display: flex;
    }

    .nav-links a {
        color: var(--text-color);
        margin-bottom: 20px;
    }

    .sticky-nav {
        padding: 15px 0;
        background-color: rgba(255, 255, 255, 0.95);
    }

    .logo a {
        color: var(--primary);
    }

    .nav-toggle span {
        background-color: var(--primary);
    }

    .hero-features {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* WhatsApp Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-icon {
    font-size: 4rem;
    color: #25D366;
    /* WhatsApp Green */
    margin-bottom: 1.5rem;
}

.modal-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.modal-content p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.phone-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-actions .btn {
    width: 100%;
    justify-content: center;
}

.modal-actions .btn-primary {
    background-color: #25D366;
    border-color: #25D366;
}

.modal-actions .btn-primary:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

@media (min-width: 768px) {
    .modal-actions {
        flex-direction: row;
    }
}