/* ============================================= */
/* VARIABLES GLOBALES Y RESET                    */
/* ============================================= */
:root {
    --primary-color: #008b52; 
    --secondary-color: #111827;
    --light-gray: #f8f9fa;
    --text-color: #333;
    --text-light: #E5E7EB;
    --white: #ffffff;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================= */
/* HEADER Y NAVEGACIÓN                           */
/* ============================================= */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://i.postimg.cc/6ttdkLHX/pool-5055009-1280.jpg') no-repeat center center/cover;
    height: 85vh;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(180deg, #1d293d 0%, #2e384d 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 999; 
    color: var(--white);
}

nav .logo {
    font-size: 1.1rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul a {
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

nav ul a:hover {
    color: var(--primary-color);
}

/* Ocultar por defecto los elementos solo para el menú móvil */
.nav-emoji,
.mobile-nav-socials {
    display: none;
}

.hero-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Estilos de Botones */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #00a05d;
    transform: translateY(-2px);
}

.hero-section .btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.hero-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* ============================================= */
/* SECCIÓN 1: CÓMO FUNCIONA                      */
/* ============================================= */
.how-it-works {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--light-gray);
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.how-it-works .subtitle {
    margin: 0 auto 3rem auto;
    color: #666;
    font-size: 1rem;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    max-width: 320px;
    text-align: center;
    flex-grow: 1;
}

.step-card .icon-container {
    font-size: 1.8rem;
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-card p {
    font-size: 0.95rem;
    color: #555;
}

/* ============================================= */
/* SECCIÓN 2: ¿TENÉS UN QUINCHO?                 */
/* ============================================= */
.owner-cta {
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('https://i.postimg.cc/m2YhQ2qD/outdoor-quincho-barbecue-area-with-people-enjoying.jpg') no-repeat center center/cover;
    padding: 5rem 5%;
    color: var(--white);
}

.owner-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.cta-text {
    flex: 1;
    min-width: 300px;
}

.cta-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-text p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1rem;
}

.cta-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 300px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
footer {
    background: linear-gradient(180deg, #1d293d 0%, #2e384d 100%);
    color: var(--text-light);
    padding: 4rem 5% 1rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-container h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-about p, .footer-nav ul li a, .footer-contact p {
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ============================================= */
/* MENÚ HAMBURGUESA Y RESPONSIVIDAD MÓVIL        */
/* ============================================= */

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 1.8rem;
    height: 1.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn .bar {
    display: block;
    width: 1.8rem;
    height: 2px;
    background-color: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
}

.close-menu-btn {
    display: none; 
}


/* Media Query para pantallas de 768px o menos (tablets y móviles) */
@media (max-width: 768px) {
    .hero-section {
        height: 85vh;
        justify-content: center;
    }
    
    .destacados-section .section-title {
  font-size: 1.5rem;
}



    nav {
        padding: 0.8rem 5%;
    }
    nav .logo {
        font-size: 1.2rem;
    }

    .hamburger-btn {
        display: flex;
    }
    
    .close-menu-btn {
        display: block; 
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--white);
        font-size: 2rem;
        cursor: pointer;
        z-index: 1002;
        padding: 0.5rem;
        line-height: 1;
        transition: color 0.3s ease;
    }
    .close-menu-btn:hover {
        color: var(--primary-color);
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 75%;
        height: 100vh;
        
        background: linear-gradient(180deg, #1d293d 0%, #2e384d 100%);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);

        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem;
        align-items: flex-start;
        gap: 1.5rem;
        
        transition: left 0.4s ease-in-out;
        z-index: 1000;
    }

    nav ul li {
        width: 100%;
        padding-left: 2rem;
    }

    nav ul a {
        font-size: 1.3rem;
        color: var(--white);
        display: block;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
    }

    nav ul a:hover {
        color: var(--primary-color);
    }
    
    nav ul.active {
        left: 0;
    }

    .hamburger-btn.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-text {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        max-width: 90%;
    }

    .hero-text p {
        font-size: 0.95rem;
        max-width: 90%;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
        width: 100%;
        justify-content: center;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        flex: 1;
        max-width: 180px;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    /* --- CÓDIGO AÑADIDO PARA EL CARRUSEL EN MÓVIL --- */
    
    /* Convierte la grilla de destacados en un contenedor deslizable */
    .destacados-section .quinchos-grid {
        display: flex;
        overflow-x: auto; /* Permite el scroll horizontal */
        scroll-snap-type: x mandatory; /* Activa el "enganche" al deslizar */
        gap: 1rem;
        padding: 0 5%; /* Añade padding para que las tarjetas no se peguen a los bordes */
        /* Pequeño truco para ocultar la barra de scroll */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .destacados-section .quinchos-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    /* Define el tamaño de cada tarjeta dentro del carrusel */
    .destacados-section .quincho-card {
        flex: 0 0 92%; /* Cada tarjeta ocupa el 85% del ancho y no se encoge */
        scroll-snap-align: start; /* Cada tarjeta se centrará al deslizar */
    }

    /* Mantenemos la grilla de quinchos.html en una columna */
    .results-section .quinchos-grid {
        grid-template-columns: 1fr;
    }
    /* --- AÑADE ESTE BLOQUE DENTRO DE @media (max-width: 768px) --- */

    /* Mostrar y estilizar emojis en el menú móvil */
    .nav-emoji {
        display: inline-block;
        margin-right: 0.8rem;
    }

    /* Mostrar la sección de redes sociales */
/* --- MODIFICADO: Ajuste de posición de las redes sociales en el menú --- */
    .mobile-nav-socials {
        display: block;
        
        margin-top: 3rem; /* <-- Cambiado de 'auto' a un valor fijo */
        padding-bottom: 2rem; /* <-- Reducido el padding inferior */
    }

    .mobile-nav-socials p {
        color: #a0aec0;
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .social-icons-menu {
        display: flex;
        
        gap: 2rem;
    }

    .social-icons-menu a {
        color: var(--white);
        font-size: 1.8rem;
        transition: color 0.3s ease;
    }
    
    .social-icons-menu a:hover {
        color: var(--primary-color);
    }
}

@media (max-width: 400px) {
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        max-width: 250px;
        width: 90%;
    }
    nav ul a {
        font-size: 1.1rem;
    }
}


/* ============================================= */
/* BOTÓN VOLVER ARRIBA (SCROLL TO TOP)           */
/* ============================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #2e384d;
    color: var(--white);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    display: grid;
    place-items: center;
    font-size: 1.2rem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #1d293d;
    transform: scale(1.05);
}

/* ============================================= */
/* SECCIÓN DE DESTACADOS (HOMEPAGE)              */
/* ============================================= */
.destacados-section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

@media (min-width: 1200px) {
    .destacados-section .quinchos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}