:root {
    --primary: #003366;
    --accent: #27ae60;
    --dark: #0a1128;
    --white: #ffffff;
    --gray: #f4f7f6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Poppins', sans-serif; 
    color: #333; 
    line-height: 1.6; 
    scroll-behavior: smooth; 
}

/* --- NAVBAR ADAPTATIVA (EFECTO TRASLÚCIDO) --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 8%; 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    position: fixed; 
    width: 100%;
    top: 0; 
    z-index: 1000; 
    transition: all 0.4s ease; 
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85); 
    padding: 10px 8%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled:hover {
    background: rgba(255, 255, 255, 0.98); 
}

/* Logo en Navbar */
.logo-container {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.nav-logo-img {
    height: 55px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

/* Enlaces de Navegación */
.nav-links { display: flex; list-style: none; }

.nav-links a { 
    text-decoration: none; 
    color: #ffffff; 
    margin-left: 25px; 
    font-weight: 600; 
    transition: 0.3s; 
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.navbar.scrolled .nav-links a {
    color: var(--primary); 
    text-shadow: none;
}

.nav-links a:hover { 
    color: var(--accent) !important; 
}

/* --- HERO SECTION --- */
.hero { 
    height: 100vh; 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    padding-top: 80px; 
}

.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

.slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; }

.slide.active { opacity: 1; }

.hero-content { 
    padding: 20px; 
    max-width: 800px; 
    z-index: 10; 
    margin-top: -30px; /* Se ajustó a negativo para subir el texto y botones hacia el logo */
}

.hero-logo { margin-bottom: 25px; }

.hero-logo img { 
    max-width: 350px; 
    height: auto; 
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.4));
    margin-bottom: 15px;
}

.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }

.hero-content span { color: var(--accent); }

.btn-primary { background: var(--accent); color: white; padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: bold; margin: 10px; display: inline-block; transition: 0.3s; }

.btn-secondary { background: transparent; border: 2px solid white; color: white; padding: 13px 40px; border-radius: 50px; text-decoration: none; display: inline-block; transition: 0.3s; }

/* --- SECCIONES GENÉRICAS --- */
.section { padding: 100px 8%; }
.container { max-width: 1200px; margin: 0 auto; }
.bg-gray { background: var(--gray); }
.bg-blue-dark { background: var(--dark); color: white; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; color: var(--primary); text-align: center; font-weight: 700; }
.white-text { color: white !important; }
.section-subtitle { margin-top: -30px; margin-bottom: 50px; color: #ccc; text-align: center; }

/* --- NOSOTROS --- */
.about-flex { display: flex; align-items: center; gap: 50px; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.tag { color: var(--accent); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 10px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.mv-card { background: var(--gray); padding: 25px; border-radius: 15px; border-left: 5px solid var(--accent); color: #333; }
.mv-card i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }

/* --- BENEFICIOS --- */
.reasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.reason-item { text-align: center; padding: 20px; transition: 0.3s; }
.reason-icon { font-size: 3rem; color: var(--accent); margin-bottom: 15px; }
.reason-item h3 { margin-bottom: 10px; font-size: 1.3rem; }
.reason-item p { color: #bbb; font-size: 0.95rem; }
.reason-cta-img { margin-top: 60px; text-align: center; }
.reason-cta-img img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 25px; border: 5px solid rgba(255,255,255,0.1); }

/* --- SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.s-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: 0.3s; }
.s-img { height: 180px; background-size: cover; background-position: center; }
.s-info { padding: 25px; text-align: center; color: #333; }
.s-icon { font-size: 3rem; color: var(--accent); margin-bottom: 15px; display: block; }
.s-card:hover { transform: translateY(-10px); }

/* --- GALERÍA --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.img-zoom {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.img-zoom:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    z-index: 1;
}

/* --- FOOTER --- */
.footer-dark { background: var(--dark); color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tel-link { font-size: 2.8rem; color: var(--accent); font-weight: 800; text-decoration: none; display: block; margin: 15px 0; }
.footer-map { border-radius: 20px; overflow: hidden; }

.social-icons { display: flex; justify-content: flex-start; gap: 15px; margin-top: 15px; }

.social-icons a { 
    width: 45px; height: 45px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; 
    color: white; font-size: 1.2rem; transition: 0.3s; text-decoration: none;
}

.social-icons a:hover { transform: scale(1.2); }

.soc-fb { background: #3b5998; }
.soc-ig { background: #e1306c; }
.soc-li { background: #0e76a8; }
.soc-wa { background: #25d366; }

/* Flotante WhatsApp */
.float-wa { position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white; width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; text-decoration: none; z-index: 2000; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

.credits { text-align: center; padding: 25px; color: #777; font-size: 0.9rem; background: #fff; }

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
    visibility: hidden;
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- MODAL ZOOM --- */
.modal-zoom {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
}

.modal-content { max-width: 80%; max-height: 80%; border-radius: 5px; animation: zoomIn 0.3s ease; }

.close-modal { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; }

@keyframes zoomIn { from {transform: scale(0)} to {transform: scale(1)} }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .about-flex, .footer-grid, .mv-grid, .reasons-grid { grid-template-columns: 1fr; text-align: center; }
    .tel-link { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .navbar { padding: 15px 5%; background: rgba(255, 255, 255, 0.9); }
    .social-icons { justify-content: center; }
    .nav-links { display: none; }
}


/* --- CORRECCIÓN GARANTÍA --- */
.quality-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent);
    border-radius: 20px;
}

.quality-header {
    text-align: center;
    margin-bottom: 40px;
}

.quality-header i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.quality-header h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.quality-content {
    display: flex;
    flex-direction: column; /* Esto evita que se encimen horizontalmente */
    gap: 25px;
}

.q-item {
    display: block; /* Fuerza a que cada punto ocupe su propio renglón */
    padding-left: 20px;
    border-left: 3px solid var(--accent);
}

.q-title {
    display: block; /* Título arriba */
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.q-text {
    display: block; /* Descripción abajo */
    color: #ccc;
    line-height: 1.5;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .quality-container {
        padding: 20px;
    }
    .quality-header h2 {
        font-size: 1.8rem;
    }
}