/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #333;
    background-color: #fff;
}

body.no-scroll {
    overflow: hidden;
}

/* --- HEADER Y NAVEGACIÓN --- */
.hero-services {
    height: 100vh; 
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('fondoserviciosardiles.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 8%;
    width: 100%;
}

.logo-container {
    display: none; 
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 300; /* Fino como en la imagen */
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff7826; 
}

/* --- TEXTO CENTRAL Y TÍTULO --- */
.hero-content {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.main-title {
    margin-bottom: 40px;
}

.title-nuestros {
    display: block;
    font-family: 'Playfair Display', serif; /* Fuente elegante exacta a la imagen */
    font-style: normal;
    font-weight: 400;
    font-size: 4rem; /* Ajustado para proporción */
    color: #D0D0CE; 
    line-height: 1;
}

.title-servicios {
    display: block;
    font-family: 'Playfair Display', serif; /* Fuente elegante */
    font-size: 7.5rem;
    font-weight: 700; /* Bold Serif */
    line-height: 0.9;
    letter-spacing: -1px;
    color: #c5a059; /* Dorado */
    text-shadow: 2px 2px 15px rgba(0,0,0,0.6); 
}

/* --- BOTONES DE SERVICIOS Y ANIMACIÓN --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes floatUpFade {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    text-decoration: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 300; 
    transition: all 0.3s ease;
    
    opacity: 0; 
    animation: floatUpFade 0.8s ease-out forwards;
}

.service-item:nth-child(1) { animation-delay: 0.2s; }
.service-item:nth-child(2) { animation-delay: 0.5s; }
.service-item:nth-child(3) { animation-delay: 0.8s; }

.service-item:hover {
    color: #c5a059; 
    transform: translateY(-5px); 
}

/* =========================================================
   6. FOOTER Y BOTÓN FLOTANTE
   ========================================================= */
.floating-btn { position: fixed; bottom: 40px; right: 30px; background-color: #eab332; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0px 5px 20px rgba(234, 179, 50, 0.4); z-index: 1000; transition: all 0.3s ease; }
.floating-btn:hover { background-color: #d19f2a; transform: scale(1.1); }

.site-footer { background-color: #030614; color: #ffffff; padding-top: 150px; }
.footer-container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 40px; margin-bottom: 30px; }
.brand-col { display: flex; flex-direction: column; align-items: center; }
.footer-logo-container { position: relative; height: 100px; width: 100%; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; }
.footer-logo { position: absolute; height: 320px; width: auto; top: 80%; left: 10%; transform: translate(-50%, -50%); }
.footer-phone { font-weight: 500; font-size: 24px; letter-spacing: 0.5px; margin-top: 50px; margin-left: -300px; }
.col-title { font-weight: 300; font-size: 14px; margin-bottom: 25px; color: #ffffff; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: #ffffff; text-decoration: none; font-weight: 300; font-size: 13px; transition: color 0.3s ease; }
.footer-links a:hover { color: #ff7826; }
.footer-social { display: flex; justify-content: flex-end; gap: 15px; padding-bottom: 30px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid #ffffff; border-radius: 50%; color: #ffffff; text-decoration: none; transition: all 0.3s ease; }
.social-icon:hover { background-color: #ff7826; border-color: #ff7826; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 20px 0; }
.footer-bottom-content { max-width: 1300px; margin: 0 auto; padding: 0 5%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.copyright, .developer { font-weight: 300; font-size: 12px; color: rgba(255, 255, 255, 0.7); margin: 0; }
.developer { color: rgba(255, 255, 255, 0.4); }
/* =========================================================
   RESPONSIVE: TELÉFONOS MÓVILES (Menos de 768px)
   ========================================================= */
@media screen and (max-width: 768px) {
    body.no-scroll { overflow: hidden; }
    
    .navbar { 
        height: 80px; 
        padding: 0 20px; 
        justify-content: flex-start; 
        background-color: transparent; 
    }
    
    .logo-container { 
        display: block; /* Muestra el contenedor para la hamburguesa */
        z-index: 200;
    }
    
    /* Configuración Hamburguesa (Idéntica a tu base) */
    .hamburger-menu { 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        width: 38px; 
        height: 38px; 
        cursor: pointer; 
        z-index: 200; 
        border: 1px solid transparent; 
        border-radius: 4px; 
        transition: all 0.3s ease; 
        position: relative; 
    }
    .hamburger-menu span { 
        display: block; 
        height: 2px; 
        width: 22px; 
        background-color: #ffffff; 
        border-radius: 2px; 
        transition: all 0.3s ease; 
        position: absolute; 
    }
    .hamburger-menu span:nth-child(1) { transform: translateY(-7px); }
    .hamburger-menu span:nth-child(2) { transform: translateY(0); }
    .hamburger-menu span:nth-child(3) { transform: translateY(7px); }
    .hamburger-menu.active { border-color: #ffffff; }
    .hamburger-menu.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
    
    /* Configuración Menú Desplegable Lateral */
    .nav-links { 
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 100%; 
        height: 100vh; 
        background-color: rgba(25, 28, 33, 0.98); 
        flex-direction: column; 
        justify-content: flex-start; 
        align-items: stretch; 
        padding: 100px 0 0 0; 
        margin: 0; 
        gap: 0; 
        transition: left 0.4s ease; 
        z-index: 100; 
        overflow-y: auto; 
    }
    .nav-links.active { left: 0; }
    .nav-links li { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
    .nav-links a { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 18px 25px; 
        font-size: 16px; 
        text-align: left; 
        width: 100%; 
        color: #ffffff; 
    }

    /* Textos Centrales Ajustados para Móvil */
    .main-title { margin-bottom: 25px; }
    .title-nuestros { font-size: 2.2rem; margin-bottom: 5px; }
    .title-servicios { font-size: 3.8rem; letter-spacing: -1px; line-height: 0.9; }
    
    .services-list { gap: 10px; }
    .service-item { font-size: 1.3rem; }

    /* Botón flotante más pequeño */
    .floating-btn { bottom: 25px; right: 20px; width: 50px; height: 50px; }

    /* FIX FOOTER MÓVIL */
    .site-footer { padding-top: 80px; padding-bottom: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .brand-col { align-items: center; }
    .footer-logo-container { height: auto; margin-bottom: 10px; }
    .footer-logo { position: static; height: auto; max-width: 160px; transform: none; }
    .footer-phone { margin-top: 10px; margin-left: 0; font-size: 20px; }
    .footer-social { justify-content: center; padding-bottom: 20px; }
    .footer-bottom-content { gap: 10px; }
        .footer-bottom { padding: 20px 0 20px 0; }
}

/* =========================================================
   RESPONSIVE: TABLETS Y SURFACE PRO VERTICAL (768px a 1024px)
   ========================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar { padding: 0 20px; height: 100px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 14px; }
    
    /* Textos Centrales para Tablet */
    .title-nuestros { font-size: 3rem; }
    .title-servicios { font-size: 5.5rem; }
    .service-item { font-size: 1.5rem; }

    /* FIX FOOTER TABLET */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .brand-col { grid-column: 1 / -1; text-align: center; } 
    .footer-logo-container { height: auto; margin-bottom: 20px; }
    .footer-logo { position: static; height: 180px; transform: none; } 
    .footer-phone { margin-top: 10px; margin-left: 0; text-align: center; }
    /* SOLUCIÓN AL CORTE: Añadimos espacio inferior para salvar la barra del navegador y el botón de WhatsApp */
    .footer-bottom { padding: 20px 0 90px 0; }}


/* =========================================================
   RESPONSIVE: LAPTOPS Y SURFACE PRO HORIZONTAL (1025px a 1600px)
   ========================================================= */
@media screen and (min-width: 1025px) and (max-width: 1600px) {
    .navbar { padding: 1%; }
    .nav-links { gap: 30px; }
    
    /* Textos Centrales Ajuste Fino */
    .title-nuestros { font-size: 3.5rem; }
    .title-servicios { font-size: 6.5rem; }
    .service-item { font-size: 1.6rem; }

    .footer-top { grid-template-columns: 1fr 1fr 1.2fr; gap: 20px; }
    .footer-logo { 
        height: 260px; 
        left: 50%; 
        top: 60%; 
        /* SOLUCIÓN: Evita que la imagen del logo bloquee los clicks de los enlaces en laptops */
        pointer-events: none; 
    }
    .footer-phone { margin-left: 0; font-size: 22px; text-align: center; width: 100%; }
    
    /* Aseguramos que los links estén por encima y reciban el click */
    .footer-links a, .social-icon {
        position: relative;
        z-index: 60;
    }
}

/* =========================================================
   RESPONSIVE: PANTALLAS CHATAS HORIZONTALES (ej. 1280x800)
   ========================================================= */
@media screen and (min-device-width: 1024px) and (max-device-width: 1280px) and (orientation: landscape) {
    .navbar { height: 80px; padding: 20px 5%; }
    
    /* Evita que los textos choquen con los bordes al no tener mucha altura */
    .main-title { margin-bottom: 20px; }
    .title-nuestros { font-size: 2.8rem; }
    .title-servicios { font-size: 5rem; }
    
    .services-list { gap: 10px; }
    .service-item { font-size: 1.4rem; }
    
    /* FOOTER PANTALLA CORTA */
    .footer-logo { height: 200px; top: 50%; left: 50%; }
    .footer-phone { margin-left: 0; text-align: center; font-size: 18px; margin-top: 20px; }
    .footer-top { gap: 15px; }
}