/* =========================================
   GREENWOOD CLEANING SERVICES - HOJA DE ESTILOS FINAL
   ========================================= */

/* --- VARIABLES GLOBALES --- */
:root {
    --primary-green: #28a745;   /* Verde principal de la marca */
    --dark-green: #1e7e34;      /* Verde oscuro para textos y contrastes */
    --accent-orange: #F57F17;   /* Naranja para botones de acción (CTA) */
    --dark-text: #333333;       /* Gris oscuro para lectura */
    --light-bg: #f8f9fa;        /* Fondo gris muy suave */
    --white: #ffffff;           /* Blanco puro */
    --shadow: 0 5px 20px rgba(0,0,0,0.08); /* Sombra suave para tarjetas */
}

/* --- RESET BÁSICO --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Open Sans', sans-serif; 
    color: var(--dark-text); 
    line-height: 1.6; 
    background-color: var(--white); 
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700; 
    line-height: 1.2; 
    color: var(--dark-text); 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- ENVOLTORIO FIJO (Mantiene el menú pegado arriba) --- */
.fixed-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1001; /* Asegura que esté siempre encima */
    width: 100%;
}

/* --- BARRA SUPERIOR DE CONTACTO (TOP BAR) --- */
.top-bar {
    background-color: var(--dark-green);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end; /* Alineado a la derecha */
    gap: 25px;
}

.top-bar a { 
    color: var(--white); 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
}

.top-bar a:hover { color: #FFD54F; /* Dorado al pasar el mouse */ }
.top-bar i { margin-right: 8px; color: #FFD54F; }

/* --- MENÚ DE NAVEGACIÓN --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    position: relative; 
    z-index: 2; 
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 0; 
    min-height: 90px; 
}

.logo-img { 
    max-height: 85px; 
    width: auto; 
    transition: transform 0.3s; 
}
.logo-img:hover { transform: scale(1.02); }

.nav-menu { display: flex; align-items: center; gap: 30px; }

.nav-link { 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: #555; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.nav-link:hover, .nav-link.active { color: var(--primary-green); }

/* BOTÓN NARANJA DEL MENÚ */
.btn-cta { 
    background-color: var(--accent-orange); 
    color: var(--white) !important; 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    box-shadow: 0 4px 10px rgba(245, 127, 23, 0.3); 
}
.btn-cta:hover { background-color: #E65100; transform: translateY(-2px); }

/* --- HERO SECTION (Fondo Cocina Claro) --- */
.hero {
    /* Opacidad 0.3 para que la foto se vea clara y luminosa */
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('kitchen-bg.png');
    background-size: cover; 
    background-position: center; 
    height: 85vh; 
    display: flex; 
    align-items: center; 
    text-align: center; 
    color: var(--white);
}

.hero-text h1 { 
    font-size: 3.5rem; 
    margin-bottom: 20px; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.7); /* Sombra fuerte para leer texto */
    color: var(--white); 
}

.hero-text p { 
    font-size: 1.4rem; 
    margin-bottom: 35px; 
    max-width: 700px; 
    margin-inline: auto; 
    font-weight: 600; 
    text-shadow: 0 1px 10px rgba(0,0,0,0.7); 
}

/* Botón Hero (Verde) */
.btn-hero { 
    background: var(--primary-green); 
    color: white; 
    padding: 18px 45px; 
    border-radius: 50px; 
    font-size: 1.1rem; 
    font-weight: 700; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3); 
    text-transform: uppercase; 
}
.btn-hero:hover { background: var(--dark-green); transform: translateY(-3px); }

/* --- SECCIONES GENERALES --- */
section { padding: 90px 0; position: relative; overflow: hidden; }
.bg-light { background-color: var(--light-bg); }

/* Fondo Parallax */
.bg-kitchen-parallax {
    background-image: url('kitchen-bg.png');
    background-attachment: fixed; 
    background-position: center; 
    background-size: cover; 
    position: relative;
}
.bg-kitchen-parallax::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.9); z-index: 1;
}

/* Marca de agua del logo (Fondo sutil) */
.bg-light::after {
    content: ''; position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); width: 80%; height: 80%;
    background-image: url('logo.png'); 
    background-repeat: no-repeat; 
    background-position: center; 
    background-size: contain; 
    opacity: 0.03; z-index: 0; pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 70px; position: relative; z-index: 2; }
.section-header h2 { font-size: 2.8rem; color: var(--dark-text); margin-bottom: 15px; position: relative; display: inline-block; }
.section-header h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-green); margin: 15px auto 0; border-radius: 2px; }
.section-header p { font-size: 1.1rem; color: #666; max-width: 650px; margin: 0 auto; }

/* --- TARJETAS (GRID) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; position: relative; z-index: 2; }

.card { 
    background: var(--white); 
    padding: 50px 35px; 
    border-radius: 12px; 
    box-shadow: var(--shadow); 
    transition: 0.3s; 
    border-bottom: 4px solid transparent; 
    text-align: center; 
}
.card:hover { 
    transform: translateY(-10px); 
    border-bottom: 4px solid var(--primary-green); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
}

.icon-box { font-size: 3rem; color: var(--primary-green); margin-bottom: 25px; }
.card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.card p { color: #666; margin-bottom: 25px; font-size: 1rem; }
.link-more { color: var(--primary-green); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- LISTA DE ÁREAS (HOME) --- */
.areas-section { background-color: #e8f5e9; padding: 60px 0; }
.area-grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: left; margin-top: 40px; }
.area-column h3 { color: var(--primary-green); font-size: 1.2rem; margin-bottom: 15px; border-bottom: 2px solid #FFD54F; padding-bottom: 10px; display: inline-block; }
.area-list li { margin-bottom: 8px; font-size: 0.95rem; color: #555; display: flex; align-items: center; }
.area-list li::before { content: '\f3c5'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: var(--primary-green); margin-right: 8px; font-size: 0.8rem; }

/* --- LISTA DE ÁREAS (CONTACTO) --- */
.compact-areas-section { padding: 50px 0; background-color: var(--white); text-align: center; border-top: 1px solid #eee; }
.area-tags-container { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.area-tag { background-color: #e8f5e9; color: var(--dark-green); padding: 8px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; border: 1px solid #c8e6c9; transition: 0.3s; cursor: default; }
.area-tag:hover { background-color: var(--primary-green); color: white; }
.area-tag.adjacent { background-color: #fff3e0; color: var(--accent-orange); border: 1px solid #ffe0b2; }
.area-tag.adjacent:hover { background-color: var(--accent-orange); color: white; }
.area-label { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: var(--dark-text); margin: 20px 0 15px; display: block; text-transform: uppercase; letter-spacing: 1px; }

/* --- FOOTER (FONDO CLARO DEFINITIVO) --- */
footer {
    background-color: #ffffff; /* Blanco puro para máxima limpieza */
    color: #333; /* Texto oscuro */
    padding: 80px 0 40px;
    border-top: 5px solid var(--primary-green); /* Línea verde superior */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

/* ESTILO NUEVO PARA EL LOGO DEL FOOTER */
.footer-logo {
    max-height: 70px; /* Un poco más grande para que destaque */
    width: auto;
    margin-bottom: 25px;
    /* ¡IMPORTANTE! Aquí NO hay filtros, se verán los colores originales */
}

/* Títulos del footer en verde oscuro fuerte */
.footer h4 {
    color: var(--dark-green);
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.footer ul li { margin-bottom: 15px; }

/* Enlaces del footer */
.footer a {
    color: #555;
    font-weight: 600;
    text-decoration: none;
}
.footer a:hover { color: var(--primary-green); }

.footer i {
    color: var(--primary-green);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Copyright */
.copyright {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #888;
}

/* =========================================
   MÓVIL: CORRECCIONES PARA QUE SE VEA BIEN
   ========================================= */
@media (max-width: 768px) {
    /* 1. Barra verde delgada y centrada */
    .top-bar { padding: 5px 0; font-size: 0.8rem; }
    .top-bar-content { justify-content: center; gap: 15px; }
    
    /* 2. OCULTAR EL EMAIL EN MÓVIL para ganar espacio (Solo se ve el teléfono) */
    .top-bar a[href^="mailto"] { display: none; }

    /* 3. Menú más compacto */
    .navbar { flex-direction: column; padding: 10px 0; min-height: auto; }
    
    /* 4. Logo más pequeño para no empujar todo hacia abajo */
    .logo-img { max-height: 60px; margin-bottom: 10px; }
    
    /* 5. Enlaces del menú más juntos */
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
    .nav-link { font-size: 0.85rem; }
    
    /* 6. Botón Get Quote ajustado */
    .btn-cta { margin-top: 5px; padding: 8px 20px; font-size: 0.8rem; }

    /* 7. Texto del Hero legible en móvil */
    .hero-text h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
}