/* =======================================================================
// style.css - CÓDIGO COMPLETO, CONSOLIDADO Y CORREGIDO
// Incluye paleta, animaciones, Hero verde sólido, Sticky Nav, Badges y Contacto.
// ======================================================================= */

/* --- 1. VARIABLES DE COLOR Y TIPOGRAFÍA --- */
:root {
    --color-principal: #3E482A; /* Verde Oscuro */
    --color-acento1: #AE431E;  /* Terracota */
    --color-acento2: #D06224;  /* Naranja Quemado */
    --color-neutro-claro: #EAC891; /* Beige */
    --color-neutro-oscuro: #A7805A; /* Marrón */
    --font-principal: 'Playfair Display', serif; 
    --font-secundaria: 'Lato', sans-serif; 
}

/* --- 2. BASE Y TIPOGRAFÍA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secundaria);
    background-color: #f7f5f0; 
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    font-family: var(--font-principal);
    color: var(--color-principal);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }

/* --- 3. ANIMACIONES --- */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInSlideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; } 
.delay-4 { animation-delay: 0.8s; } 

/* --- 4. HEADER / HERO (VUELTA A IMAGEN CON OVERLAY) --- */
.hero {
    /* 1. Fondo de Imagen Panorámica con Overlay Oscuro */
    background-image: linear-gradient(rgba(62, 72, 42, 0.7), rgba(62, 72, 42, 0.7)), /* Overlay oscuro */
                      url('assets/sierras.webp'); /* URL de la Imagen de la Sierra */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    color: white;
    padding: 100px 20px; /* Más padding para que la imagen luzca */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative; 
}

/* El resto de estilos del Hero se mantienen para garantizar la legibilidad */
.logo-container {
    margin-bottom: 20px;
}
.logo-svg {
    width: 80px; 
    height: auto;
    /* Filtro para asegurar el color blanco sobre el fondo oscuro */
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(0,0,0,0.5)); 
}
.hero h1 { 
    color: white; 
    margin-bottom: 15px; 
    font-size: 3.5rem; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Sombra para mejor lectura */
}
.hero p { 
    font-size: 1.3rem; 
    opacity: 1; /* Quitamos opacidad para mejor lectura */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- 5. NAVEGACIÓN STICKY --- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: white; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%); 
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    padding: 10px 0;
    opacity: 0;
}

.sticky-nav.visible {
    transform: translateY(0); 
    opacity: 1;
}

.sticky-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
}

.sticky-logo .logo-svg {
    height: 40px; 
    width: auto;
    filter: none; 
}

.sticky-btn {
    padding: 8px 15px;
    background-color: var(--color-acento2); 
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.sticky-btn:hover {
    background-color: var(--color-acento1);
}

/* --- 6. BARRA DE BÚSQUEDA --- */
.search-bar {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 12px 20px 12px 50px; 
    border: 2px solid var(--color-neutro-oscuro);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-bar i {
    position: absolute;
    left: 50%;
    transform: translateX(-250px); 
    color: var(--color-neutro-oscuro);
    font-size: 1.1rem;
    top: 35px; 
}

/* --- 7. CATEGORÍAS DESTACADAS (TARJETAS VISUALES) --- */
.featured-categories {
    text-align: center;
}
.featured-categories h2 {
    color: var(--color-acento1); 
    margin-bottom: 5px;
}
.featured-categories .subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-principal);
    margin-bottom: 40px;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 0 40px 0;
    justify-content: center;
}
.featured-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
.card-image {
    width: 100%;
    padding-top: 100%; 
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.featured-card:hover .card-image {
    transform: scale(1.05); 
}
.card-label {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    background-color: var(--color-acento2); 
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-categories .category-buttons {
    display: none; 
}

/* --- 8. DECORADOR SVG --- */
.svg-decorator {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.mountain-line {
    width: 100%;
    max-width: 600px;
    height: 15px; 
    fill: var(--color-principal); 
}

/* --- 9. LISTADO DE NEGOCIOS (TARJETAS) --- */
.business-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.business-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInSlideUp 0.6s ease forwards;
}

.business-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--color-acento1);
}

/* --- 10. BADGES (NUEVO) --- */
.business-badges {
    margin: 10px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-principal); 
    background-color: var(--color-neutro-claro); 
    border: 1px solid var(--color-neutro-oscuro);
}

/* --- 11. CARRUSEL SIMPLIFICADO --- */
.carousel-container {
    position: relative;
    height: 250px; 
    overflow: hidden;
}
.carousel-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none; 
}
.carousel-slide:first-child {
    display: block; 
}

/* --- 12. BOTONES DE ACCIÓN --- */
.actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
.action-btn {
    flex-grow: 1;
    padding: 12px 0;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s;
    font-size: 0.9rem;
}
.whatsapp-btn {
    background-color: #25D366; 
    color: white;
}
.social-btn {
    background-color: var(--color-principal);
    color: white;
}

/* --- 13. MICRO-INTERACCIÓN: EFECTO SKELETON --- */
@keyframes pulse {
    0% { background-color: rgba(167, 128, 90, 0.1); } 
    50% { background-color: rgba(167, 128, 90, 0.3); }
    100% { background-color: rgba(167, 128, 90, 0.1); }
}

.business-card.skeleton {
    animation: pulse 1.5s infinite ease-in-out;
    min-height: 400px;
    cursor: default;
    pointer-events: none;
    background: #fff;
    box-shadow: none;
}
.business-card.skeleton .carousel-container,
.business-card.skeleton .card-content h3,
.business-card.skeleton .card-content p {
    background-color: rgba(167, 128, 90, 0.2);
    color: transparent; 
    border-radius: 4px;
}


/* --- 14. SECCIÓN DE CONTACTO / SUMATE --- */
.contact-section {
    background-color: var(--color-neutro-claro); 
    padding: 60px 20px;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.contact-text {
    flex: 1;
    max-width: 400px;
}

.contact-text h2 {
    font-size: 2.2rem;
    color: var(--color-acento1); 
    margin-bottom: 10px;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-neutro-oscuro);
    border-radius: 5px;
    font-family: var(--font-secundaria);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.submit-btn {
    padding: 15px;
    background-color: var(--color-acento2); 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.2s;
}

/* --- 15. MODAL --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease;
}
.modal-content {
    background-color: white;
    margin: 5% auto; 
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease-out;
}
.close-btn {
    color: var(--color-acento1);
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
#modalBody .modal-header h2 {
    color: var(--color-acento2);
    margin-bottom: 10px;
}
#modalBody .modal-map {
    width: 100%;
    height: 250px;
    border: 1px solid var(--color-neutro-claro);
    border-radius: 8px;
    margin: 20px 0;
}
/* ... (Animaciones del modal) ... */

/* --- 16. FOOTER --- */
.main-footer {
    background-color: var(--color-principal); 
    color: var(--color-neutro-claro); 
    padding: 40px 0;
    font-size: 0.9rem;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-section h3 {
    font-family: var(--font-principal);
    color: white; 
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-acento1); 
    padding-bottom: 5px;
    display: inline-block;
}
.footer-section.nav ul {
    list-style: none;
    padding: 0;
}
.logo-footer {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    filter: sepia(100%) saturate(2000%) hue-rotate(30deg) brightness(1.2) contrast(0.8);
}
.footer-section.logo-copy {
    text-align: right;
}


/* --- 17. RESPONSIVE --- */
@media (max-width: 850px) {
    /* Responsive para Contacto */
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    .contact-form, .contact-text {
        max-width: 100%;
    }
    .contact-text {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .search-bar i {
        left: 30px; 
        transform: none;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-section.logo-copy {
        text-align: center;
        order: -1; 
    }
}

.sierra-illustration {
    margin-top: 2rem;
  }
  
  .sierra-illustration svg {
    width: 100%;
    height: auto;
    display: block;
  }
/* --- 16. FOOTER (Añadir estilos para redes sociales) --- */

/* ... (Estilos existentes del footer) ... */

.social-links {
    margin-top: 15px;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--color-neutro-claro); /* Color beige claro del texto del footer */
    transition: color 0.3s ease;
    margin-right: 10px;
    display: inline-block;
}

.social-links a:hover {
    color: var(--color-acento2); /* Naranja Quemado como hover */
}


/* --- ESTILO PARA EL ENLACE DE WHATSAPP EN LA SECCIÓN DE CONTACTO --- */
.contact-whatsapp-link {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.contact-whatsapp-link i {
    font-size: 1.2rem;
    margin-right: 8px;
}

.contact-whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* --- Responsive para móvil: centramos el enlace --- */
@media (max-width: 850px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .contact-whatsapp-link {
        margin: 20px auto 0; /* Centra el botón en móvil */
    }
    /* ... (El resto de estilos responsive se mantiene) ... */
}  

.sierra-detail {
    margin-top: 1.8rem;
  }
  
  .sierra-detail svg {
    width: 260px;   /* jugá entre 220–320px hasta que te cierre */
    max-width: 100%;
    display: block;
  }
  