/* =========================================
   ESTILOS GLOBALES Y VARIABLES
========================================= */
:root { 
    --rosa-claro: #fdf2f6; 
    --rosa-medio: #f8bbd0; 
    --rosa-fuerte: #d81b60; 
    --rosa-oscuro: #880e4f; 
    --texto: #333; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: #fff; 
    color: var(--texto); 
    padding-top: 80px; /* Espacio para el header fijo */
    line-height: 1.6; 
    overflow-x: hidden; /* Evita scroll horizontal accidental */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   CABECERA Y NAVEGACIÓN
========================================= */
header { 
    background: #fff; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--rosa-fuerte); 
    text-decoration: none; 
}

nav { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 15px; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--texto); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    transition: color 0.3s; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--rosa-fuerte); 
}

select { 
    padding: 5px; 
    border-radius: 5px; 
    border: 1px solid var(--rosa-medio); 
    background: var(--rosa-claro); 
    color: var(--rosa-oscuro); 
    cursor: pointer; 
    outline: none; 
}

/* =========================================
   ESTRUCTURAS Y CONTENEDORES (GRIDS)
========================================= */
.hero { 
    height: 80vh; 
    background: linear-gradient(rgba(253, 242, 246, 0.7), rgba(253, 242, 246, 0.7)), url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1600&q=80') center/cover; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 0 5%;
}

.hero h1 { font-size: 4rem; color: var(--rosa-oscuro); margin-bottom: 10px; }
.hero p { font-size: 1.5rem; color: var(--rosa-fuerte); }

.page-header { 
    background: var(--rosa-claro); 
    color: var(--rosa-oscuro); 
    text-align: center; 
    padding: 60px 20px; 
    border-bottom: 2px solid var(--rosa-medio); 
}
.page-header h1 { font-size: 3rem; }

/* Grid de 2 columnas (Inicio, Servicios, Contacto, Sitemap) */
.content-section, .services-grid, .contact-grid, .sitemap-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
    padding: 60px 10%; 
    align-items: start; 
}

/* Contenedores de 1 columna centrada (FAQ, Legal, Reseñas) */
.faq-container, .legal-content, .reviews-container { 
    padding: 60px 15%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Portfolio y Galerías */
.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    padding: 0 10%;
    margin-top: 30px; 
}
.portfolio-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; }

.gallery-banner { 
    display: flex; 
    width: 100%; 
    height: 300px; 
}
.gallery-banner img { width: 33.333%; object-fit: cover; }

/* Elementos específicos */
.service-card { background: var(--rosa-claro); border-left: 8px solid var(--rosa-fuerte); padding: 40px 30px; border-radius: 8px; text-align: center; }
.service-card h2 { color: var(--rosa-oscuro); font-size: 1.8rem; margin: 0; }

.review-box { background: #fff; border: 1px solid var(--rosa-medio); padding: 40px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); position: relative; margin-bottom: 30px;}
.review-box::before { content: '"'; position: absolute; top: 10px; left: 20px; font-size: 6rem; color: var(--rosa-claro); font-family: serif; line-height: 1; }
.review-box p { font-size: 1.3rem; font-style: italic; color: #555; position: relative; z-index: 2; }

.faq-block h3 { color: var(--rosa-fuerte); font-size: 1.6rem; border-bottom: 2px solid var(--rosa-claro); padding-bottom: 10px; margin-bottom: 15px; }
.faq-block p { font-size: 1.1rem; color: #555; line-height: 1.8; margin-bottom: 30px; }
.img-faq { width: 100%; max-width: 900px; margin: 40px auto; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.map-wrapper { width: 100%; height: 500px; border-radius: 12px; overflow: hidden; border: 4px solid var(--rosa-claro); }

/* =========================================
   FOOTER
========================================= */
footer { 
    background: var(--rosa-claro); 
    padding: 40px 5%; 
    text-align: center; 
    border-top: 1px solid var(--rosa-medio); 
    margin-top: 50px; 
}
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-links a { color: var(--rosa-oscuro); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.3s; }
.footer-links a:hover { color: var(--rosa-fuerte); text-decoration: underline; }
.footer-logos { display: flex; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.footer-logos img { height: 50px; object-fit: contain; }


/* =========================================
   DISEÑO RESPONSIVE (MÓVILES Y TABLETS)
========================================= */
@media (max-width: 992px) {
    /* Ajustes para Tablets */
    .content-section, .services-grid, .contact-grid, .sitemap-grid { 
        padding: 40px 5%; 
        gap: 20px; 
    }
    .faq-container, .legal-content, .reviews-container { 
        padding: 40px 10%; 
    }
}

@media (max-width: 768px) {
    /* Ajustes para Móviles */
    
    /* Reestructurar Cabecera */
    header { 
        flex-direction: column; 
        padding: 15px; 
        position: static; /* Quita el fijo para que no tape el contenido al expandirse */
    }
    body { 
        padding-top: 0; 
    }
    nav { 
        flex-direction: column; 
        width: 100%; 
        margin-top: 15px; 
    }
    .nav-links { 
        flex-direction: column; 
        width: 100%; 
        text-align: center; 
        gap: 10px; 
    }
    select { 
        margin-top: 15px; 
        width: 100%; 
        max-width: 200px; 
        text-align: center; 
    }

    /* Ajustar Tamaños de Texto */
    .hero h1, .page-header h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.2rem; }

    /* Transformar Grids de Múltiples Columnas a 1 Sola Columna */
    .content-section, .services-grid, .contact-grid, .sitemap-grid, .portfolio-grid { 
        grid-template-columns: 1fr; 
        padding: 40px 5%; 
    }
    
    /* Contenedores de texto */
    .faq-container, .legal-content, .reviews-container { 
        padding: 30px 5%; 
    }

    /* Transformar la Galería Banner */
    .gallery-banner { 
        flex-direction: column; 
        height: auto; 
    }
    .gallery-banner img { 
        width: 100%; 
        height: 250px; 
    }

    /* Reducir altura del mapa */
    .map-wrapper { height: 300px; }

    /* Ajustar Footer */
    .footer-links { 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
    }
}