 /* Estilos Globales y Reset */
:root {
    --bg-dark: #2c3e50; /* Fondo oscuro actualizado */
    --text-light: #f5f5f5; /* Texto claro */
    --primary-red: #794f4f; /* Rojo para botones y detalles */
    --primary-red-hover: #4a4646;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Ajusta el valor de 90px según la altura real de tu navbar */
section {
    scroll-margin-top: 90px;
}

/* Estilos de la Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed; /* Mantiene la navbar fija arriba */
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegura que esté sobre otros elementos */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Logo */
.navbar-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Menú de Navegación (Escritorio) */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.navbar-menu li a {
    text-decoration: none;
    color: rgba(245, 245, 245, 0.8); /* Texto ligeramente translúcido */
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 5px 5px;
    font-weight: 700;
}

.navbar-menu li a:hover {
    color: var(--text-light);
}

/* Enlace "Solicitar Cotización" (Estilo Botón) */
.btn-quote {
    background-color: var(--primary-red);
    color: white !important; /* Asegura texto blanco */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-quote:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px); /* Efecto sutil al pasar el mouse */
}

/* Botón de Menú Móvil (Hamburguesa) */
.mobile-menu-btn {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Responsividad (Móvil) */
@media (max-width: 992px) {
    .navbar-menu {
        display: none; /* Oculta el menú normal */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Justo debajo de la navbar */
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu.active {
        display: flex; /* Muestra el menú cuando está activo */
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .navbar-menu li a {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .btn-quote {
        display: inline-block; /* Mantiene estilo botón en móvil */
        width: auto;
        margin-top: 10px;
    }

    .mobile-menu-btn {
        display: block; /* Muestra botón hamburguesa */
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: radial-gradient(circle, #4a4646 0%, #2b2929 100%);
}

/* --- HERO SECTION BASE --- */
.hero-section {
    background-size: cover;
    background-position: center; /* Mejor center para que no se corte el panel en móvil */
    background-repeat: no-repeat;
    color: #fff;
    padding: 120px 5% 80px;
    display: flex;
    justify-content: flex-end; /* Alineado a la derecha en escritorio */
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    background-color: #000; /* Fondo de respaldo */
}

/* Contenedor común para los contenidos del slider */
[class^="hero-content-"] {
    position: absolute;
    top: 50%;
    right: 5%; /* Margen derecho */
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease;
    max-width: 700px;
    text-align: right; /* Alineado a la derecha en escritorio */
    z-index: 10;
}

/* Estado activo del slider */
[class^="hero-content-"].active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* --- ESTILOS DE TEXTO (H1 y P) --- */
/* Eliminamos el estilo inline del HTML y lo controlamos aquí */

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Tamaño fluido: min 2rem, max 4rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-section h1 {
    /* Bajamos el mínimo de 2rem a 1.6rem para pantallas mini */
    font-size: clamp(1.6rem, 8vw, 4rem); 
    line-height: 1.1;
    word-break: break-word; /* Ayuda a que palabras largas no desborden */
}

/* Ajuste específico para pantallas muy angostas (iPhone Mini, SE) */
@media (max-width: 380px) {
    .hero-section h1 {
        font-size: 1.5rem; /* Forzamos un tamaño más pequeño si es necesario */
        letter-spacing: -1px; /* Juntamos un poco las letras para ganar espacio */
    }
}

/* Resaltar palabras clave con el rojo de la marca */
.hero-section h1 span.brand-color {
    color: var(--primary-red);
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* --- RESPONSIVIDAD (MÓVIL) --- */
@media (max-width: 768px) {
    .hero-section {
        justify-content: center; /* Centrar contenido en móvil */
        padding: 100px 20px 60px;
        min-height: 70vh;
    }

    [class^="hero-content-"] {
        right: 0;
        left: 0;
        margin: 0 auto;
        padding: 0 20px;
        max-width: 100%;
        text-align: center; /* Texto centrado en móvil */
        top: 55%; /* Bajamos un poco el texto por la navbar móvil */
    }

    .hero-section h1 {
        font-size: 3.1rem; /* Tamaño fijo más cómodo para móvil */
        margin-bottom: 15px;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .features-section {
        flex-direction: column;
        gap: 20px;
        padding: 60px 20px;
    }

    .feature-item {
        padding: 30px;
    }
    .servicios-section h1 {
        font-size: 2.8rem;
        font-weight: 800;
        color: #fff;
        text-align: center;
        margin: 20px 0 20px 0;
        padding: 10px;
    }

    .servicios-section h2 {
        font-size: 1.7rem;
        font-weight: 800;
        color: #fff;
        text-align: center;
        padding: 10px;
        margin-bottom: 20px;
    }
}
.servicios-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 20px 0 20px 0;
}

.servicios-section h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.features-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 50px;
}

.feature-item {
    /* Fondo semi-transparente */
    background: rgba(255, 255, 255, 0.1); 
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    
    /* Efecto Blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Borde sutil para resaltar el efecto glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Sombra suave */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Aseguramos que el texto sea legible sobre el fondo */
    color: #fff; 
    transition: transform 0.3s ease;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-red); /* Mantenemos el rojo de la marca */
}

.feature-item p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 15px;
    }
}

/* Estilo para el icono dentro del botón de cotización */
.btn-quote i {
    font-size: 1.2rem; /* Tamaño del icono */
    margin-right: 8px; /* Espacio con el texto */
}

/* Estilo para los iconos del footer */
.footer-social a {
    font-size: 1.5rem; /* Tamaño de los iconos sociales */
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #fff; /* O puedes usar var(--primary-red) para que sea rojo al pasar el mouse */
    transform: translateY(-3px);
}


.main-footer {
    /* Cambiamos el color sólido por transparente o un negro muy traslúcido */
    background-color: transparent; 
    
    /* Opcional: Si quieres que el contenido detrás se desenfoque un poco */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    padding: 40px 20px;
    text-align: center;
    color: #888; 
    font-family: var(--font-family);
    
    /* Aseguramos que no haya bordes que rompan la transparencia */
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-social a {
    font-size: 1.6rem; /* Ajustado para Font Awesome */
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.hero-section {
    cursor: pointer;
}
/* Pero mantenemos el cursor normal para el texto si lo prefieres */
.hero-section h1, .hero-section p {
    cursor: default;
}

/* Sección de Contacto CTA */
.contact-cta {
    padding: 80px 5%;
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.contact-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.red-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Botón WhatsApp con Brillo */
.btn-whatsapp {
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.4rem;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .red-line {
        margin: 0 auto 20px;
    }

    .contact-text h2 {
        font-size: 1.5rem;
    }
}

/* WhatsApp FAB Styles */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    text-decoration: none;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

/* Tooltip (Pequeño mensaje al lado) */
.fab-tooltip {
    position: absolute;
    right: 75px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Triángulo del tooltip */
.fab-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #333;
}

/* Hover Effects */
.whatsapp-fab:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-fab:hover .fab-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Animación de pulso */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Ajuste para móviles para que no estorbe */
@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
    .fab-tooltip {
        display: none; /* Ocultar tooltip en móviles */
    }
}

@media (max-width: 992px) {
    .navbar-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%; /* Se despliega justo debajo de la navbar */
        left: 0;
        width: 100%;
        
        /* --- Efecto Transparente y Blur --- */
        background-color: rgba(20, 20, 20); /* Fondo oscuro semi-transparente */
        backdrop-filter: blur(15px); /* El efecto de desenfoque */
        -webkit-backdrop-filter: blur(15px); /* Soporte para Safari */
        
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        
        /* Animación suave */
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, backdrop-filter 0.3s ease;
    }

    .navbar-menu.active {
        display: flex; 
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    /* Ajuste de los enlaces dentro del menú móvil */
    .navbar-menu li a {
        display: block;
        width: 100%;
        padding: 10px 0;
        color: #fff;
        font-size: 1.1rem;
    }

    .navbar-menu li .btn-quote {
        margin: 10px; /* Aplica 10px en los cuatro lados */
        display: block; /* Asegura que el margen se respete correctamente */
        width: auto; /* Evita que el botón ocupe todo el ancho si no lo deseas */
    }
}