/* Variables Generales */
:root {
    --rojo-albax: #d60000;
    --rojo-oscuro: #9e0000;
    --negro: #111111;
    --blanco: #ffffff;
    --gris-fondo: #f8f9fa;
    --gris-texto: #555555;
    --sombra: 0 10px 30px rgba(0,0,0,0.08);
    --sombra-hover: 0 15px 40px rgba(214,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; scroll-behavior: smooth; }
body { color: var(--gris-texto); background-color: var(--blanco); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--gris-fondo); }

/* Tipografía */
h2.section-title { font-size: 2.8rem; color: var(--negro); margin-bottom: 50px; text-transform: uppercase; font-weight: 900; }
h2.section-title span { color: var(--rojo-albax); }

/* Botones */
.btn {
    display: inline-block; padding: 15px 35px; background-color: var(--rojo-albax); color: var(--blanco);
    text-decoration: none; font-weight: 700; border-radius: 30px; text-transform: uppercase;
    letter-spacing: 1px; transition: all 0.3s ease; border: 2px solid var(--rojo-albax);
}
.btn:hover { background-color: var(--rojo-oscuro); border-color: var(--rojo-oscuro); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(214,0,0,0.3); }
.btn-outline { background-color: transparent; border-color: var(--blanco); }
.btn-outline:hover { background-color: var(--blanco); color: var(--negro); }

/* --- NAVEGACIÓN MODERNA --- */
header {
    position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); padding: 25px 0;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 15px 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav-container { max-width: 1300px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }

/* Configuración del Logo */
.logo { font-size: 32px; font-weight: 900; color: var(--blanco); transition: 0.4s; display: flex; align-items: center; }
header.scrolled .logo { color: var(--negro); }
.logo span { color: var(--rojo-albax); }
.logo img { height: 50px; transition: all 0.4s ease; } /* Altura normal en PC */

/* Efecto resplandor para el logo cuando el menú es transparente */
header:not(.scrolled) .logo img {
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.9)) drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.6));
}
header.scrolled .logo img {
    filter: drop-shadow(0px 0px 0px transparent);
}

/* Menú de navegación */
.nav-menu { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-menu li a {
    text-decoration: none; color: var(--blanco); font-weight: 600; text-transform: uppercase; font-size: 14px;
    letter-spacing: 1px; position: relative; transition: 0.3s; padding: 5px 0;
}
header.scrolled .nav-menu li a { color: var(--negro); }
.nav-menu li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--rojo-albax); transition: width 0.3s ease;
}
.nav-menu li a:hover::after { width: 100%; }
.nav-btn {
    background: var(--rojo-albax); color: var(--blanco) !important; padding: 10px 25px !important;
    border-radius: 25px; transition: 0.3s;
}
.nav-btn::after { display: none; }
.nav-btn:hover { background: var(--rojo-oscuro); transform: scale(1.05); }

/* Menú Hamburguesa (Móvil) */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.menu-toggle .bar { width: 30px; height: 3px; background-color: var(--blanco); transition: 0.3s; border-radius: 3px; }
header.scrolled .menu-toggle .bar { background-color: var(--negro); }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- SLIDER PRINCIPAL --- */
.slider-container { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; display: flex; justify-content: center; align-items: center; text-align: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide-content { color: var(--blanco); max-width: 900px; padding: 0 20px; opacity: 0; transform: translateY(30px); transition: all 1s ease 0.5s; }
.slide-content h1 { font-size: 4rem; font-weight: 900; margin-bottom: 20px; }
.slide-content p { font-size: 1.5rem; margin-bottom: 40px; }
.slider-controls { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255,255,255,0.5); cursor: pointer; transition: 0.3s; }
.dot.active { background-color: var(--rojo-albax); transform: scale(1.3); }

/* --- NOSOTROS --- */
.nosotros-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nosotros-img { position: relative; } 
.nosotros-img img { width: 100%; display: block; border-radius: 10px; box-shadow: var(--sombra); }
.experiencia-badge { 
    position: absolute; bottom: -30px; right: -30px; background-color: var(--rojo-albax); 
    color: var(--blanco); width: 170px; height: 170px; border-radius: 50%; text-align: center; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    border: 10px solid var(--blanco); z-index: 10; box-shadow: var(--sombra);
}
.experiencia-badge span { font-size: 2rem; font-weight: 900; line-height: 1; }
.experiencia-badge p { font-size: 1rem; margin-top: 5px; font-weight: 600; }
.nosotros-text .lead { font-size: 1.2rem; margin-bottom: 40px; }
.mv-box { display: flex; gap: 20px; margin-bottom: 30px; }
.mv-box i { font-size: 2.5rem; color: var(--rojo-albax); }
.mv-box h3 { color: var(--negro); font-size: 1.5rem; margin-bottom: 10px; }

/* --- SERVICIOS --- */
.servicios-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px; 
}
.servicio-card { 
    background: var(--blanco); border-radius: 15px; overflow: hidden; box-shadow: var(--sombra); 
    transition: all 0.4s ease; border-bottom: 5px solid transparent; position: relative; 
    display: flex; flex-direction: column; cursor: pointer; /* Agregado para que salga la manito */
}
.servicio-card:hover { transform: translateY(-10px); box-shadow: var(--sombra-hover); border-bottom: 5px solid var(--rojo-albax); }
.card-img { width: 100%; height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.servicio-card:hover .card-img img { transform: scale(1.1); }
.card-body { padding: 35px 20px 20px; position: relative; flex-grow: 1; text-align: center; }
.icon-wrapper { 
    position: absolute; top: -25px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; 
    background: var(--rojo-albax); color: var(--blanco); border-radius: 50%; display: flex; 
    justify-content: center; align-items: center; font-size: 20px; border: 4px solid var(--blanco); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
.card-body h4 { color: var(--negro); font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.card-body p { color: var(--gris-texto); font-size: 0.9rem; margin-bottom: 10px; }

/* Nuevo: Estilo para "ver detalles" */
.ver-mas {
    color: var(--rojo-albax);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: 0.3s;
}
.servicio-card:hover .ver-mas { color: var(--rojo-oscuro); }

/* --- VENTANAS EMERGENTES (MODALES DE SERVICIOS) --- */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(17, 17, 17, 0.8); /* Usando un derivado oscuro de tu --negro */
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.modal-contenido {
    background-color: var(--blanco); margin: 10vh auto; padding: 35px; border-radius: 15px;
    width: 90%; max-width: 500px; position: relative; box-shadow: var(--sombra-hover);
    animation: aparecerModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes aparecerModal {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cerrar {
    position: absolute; right: 20px; top: 15px; color: var(--gris-texto); font-size: 32px;
    font-weight: 700; cursor: pointer; transition: all 0.3s ease; line-height: 1;
}
.cerrar:hover { color: var(--rojo-albax); transform: rotate(90deg); }
.modal-header h3 {
    color: var(--negro); font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; 
    padding-bottom: 15px; border-bottom: 2px solid var(--gris-fondo); text-align: center;
}
.modal-body ul { list-style: none; padding: 0; margin: 0; }
.modal-body li {
    margin-bottom: 12px; font-size: 0.95rem; color: var(--gris-texto); font-weight: 500;
    position: relative; padding-left: 25px; text-align: left;
}
/* Viñetas rojas personalizadas para la lista del modal */
.modal-body li::before {
    content: '•'; position: absolute; left: 0; top: -2px; color: var(--rojo-albax);
    font-size: 1.5rem; line-height: 1;
}

/* --- PARALLAX --- */
.parallax-banner { background-attachment: fixed; background-position: center; background-size: cover; color: var(--blanco); padding: 120px 20px; }
.parallax-banner h2 { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }

/* --- CONTACTO --- */
.contacto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.contacto-info-box { background: var(--blanco); padding: 50px 30px; text-align: center; border-radius: 15px; box-shadow: var(--sombra); transition: 0.3s; }
.contacto-info-box:hover { transform: translateY(-5px); }
.contacto-info-box i { font-size: 3rem; color: var(--rojo-albax); margin-bottom: 20px; }
.red-box { background: var(--rojo-albax); color: var(--blanco); }
.red-box i, .red-box h3, .red-box p { color: var(--blanco); }

/* --- FORMULARIO DE CONTACTO --- */
.contacto-form-container { background: var(--blanco); padding: 40px; border-radius: 15px; box-shadow: var(--sombra); max-width: 800px; margin: 50px auto 0; text-align: center; }
.contacto-form-container h3 { color: var(--negro); font-size: 1.8rem; margin-bottom: 30px; font-weight: 700; }
.contacto-form { display: flex; flex-direction: column; gap: 20px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px 20px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 1rem; font-family: 'Montserrat', sans-serif; transition: all 0.3s ease; background-color: var(--gris-fondo); color: var(--gris-texto); }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--rojo-albax); box-shadow: 0 0 8px rgba(214,0,0,0.15); background-color: var(--blanco); }
.btn-submit { width: 100%; cursor: pointer; border: none; font-size: 1.1rem; display: flex; justify-content: center; align-items: center; }

/* --- FOOTER & WHATSAPP --- */
footer { background: var(--negro); color: var(--blanco); padding: 40px 0; }
.footer-logo { font-size: 24px; font-weight: 900; margin-bottom: 15px; }
.footer-logo span { color: var(--rojo-albax); }
.whatsapp-float { position: fixed; width: 65px; height: 65px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0px 5px 20px rgba(37, 211, 102, 0.4); z-index: 100; transition: all 0.3s ease; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); background-color: #1ebe57; }

/* --- RESPONSIVE MOBILE MENU Y AJUSTES DE TAMAÑO --- */
@media (max-width: 992px) {
    .nosotros-wrapper, .contacto-grid { grid-template-columns: 1fr; }
    .experiencia-badge { display: none; }
    .menu-toggle { display: flex; }
    header.scrolled .menu-toggle .bar { background-color: var(--negro); }
    
    .nav-menu {
        position: absolute; top: 100%; left: -100%; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: flex-start; padding-top: 50px;
        transition: 0.4s ease;
    }
    .nav-menu.active { left: 0; }
    .nav-menu li a { color: var(--negro) !important; font-size: 1.2rem; }
    .nav-btn { display: inline-block; margin-top: 20px; }
}

/* AJUSTES ESPECÍFICOS PARA CELULARES (Solución Logo y Textos Largos) */
@media (max-width: 768px) {
    /* Achicamos el logo para que no choque con el menú en móviles */
    .logo img { height: 30px; width: auto; }
    
    /* Achicamos los textos principales del slider */
    .slide-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .slide-content p { font-size: 1rem; }
    
    /* Achicamos los títulos de sección para que no se corten */
    h2.section-title, .parallax-banner h2 { 
        font-size: 2rem; 
        word-wrap: break-word; 
        hyphens: auto;
    }
    
    /* Ajustamos el padding del banner para ganar espacio */
    .parallax-banner { padding: 80px 15px; }
    
    /* Ajustes para el formulario en celulares */
    .contacto-form-container { padding: 30px 20px; }
}