/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    --primary: #0d6efd;       /* Azul acento */
    --dark: #111827;          /* Negro premium */
    --light: #f8f9fa;         /* Fondo claro */
    --text-muted: #64748b;    /* Gris para descripciones */
    --border-color: #e2e8f0;  /* Líneas divisorias sutiles */
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-shadow: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ==========================================================================
   MENÚ DE NAVEGACIÓN (Navbar Premium)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    box-shadow: 0 1px 0 0 var(--border-color);
    z-index: 1000;
}

.navbar .logo img {
    display: block;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

/* Botones del menú */
.nav-links .btn {
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Controles móviles ocultos por defecto */
.menu-toggle, .menu-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ==========================================================================
   SECCIÓN HERO (Cabecera de impacto)
   ========================================================================== */
.header {
    min-height: 90vh;
    padding: 140px 5% 60px 5%;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    display: flex;
    align-items: center;
}

.header-content {
    max-width: 700px;
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.header-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.header .btn {
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   SECCIÓN SERVICIOS (Menú Editorial de Salon)
   ========================================================================== */
.servicios .contenido {
    display: grid;
    grid-template-columns: 55% 40%;
    gap: 5%;
    align-items: center;
}

.services-list {
    margin-top: 2rem;
}

.service-item {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1rem;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h4 {
    color: var(--dark);
    letter-spacing: -0.3px;
}

.servicios .imagen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* ==========================================================================
   GALERÍA DE ESTILOS (Grid de Diseño de Vanguardia)
   ========================================================================== */
.galeria .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: var(--border-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* ==========================================================================
   PIE DE PÁGINA (Footer Corporativo)
   ========================================================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.footer .info a:hover {
    color: var(--primary) !important;
}

/* ==========================================================================
   COMPONENTES: WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
}

/* ==========================================================================
   DISEÑO ADAPTABLE (Media Queries para Móviles)
   ========================================================================== */
@media (max-width: 992px) {
    /* Responsive Menú de Navegación */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 40px;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transition: right 0.3s ease;
    }

    /* Clase que activará tu JS para abrir el menú */
    .nav-links.open {
        right: 0;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
    }

    .nav-links .btn {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    /* Reducción tipográfica en el Hero */
    .header-content h1 {
        font-size: 2.5rem;
    }

    /* Estructuras de rejilla a una sola columna */
    .servicios .contenido {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .servicios .imagen {
        order: -1; /* Sube la imagen arriba en teléfonos */
    }
}