body {
    background-color: #ffffff; 
    position: relative;
    min-height: 100vh; 
}

body::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagenes/fondo-marca-agua.jpeg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    
    opacity: 0.04; 
    filter: grayscale(100%) contrast(150%); 
    z-index: -1; 
    pointer-events: none; 
}
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    gap: 40px; 
}

.nav-logo {
    height: 30px;
    vertical-align: middle;
}

/* --- Barra de Navegación (Enlaces convertidos en botones de colores) --- */
.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Estructura base del botón (El molde sin color) */
.nav-links a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: bold;
    border: 2px solid transparent; 
}

/* Animación general al pasar el ratón y botón activo */
.nav-links a:hover {
    transform: translateY(-3px);
    background-color: #ffffff !important; 
}
.nav-links a.active {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}
.nav-links a:nth-child(1) {
    background-color: #E53935;
    border-color: #E53935;
    color: #ffffff;
}
.nav-links a:nth-child(1):hover { color: #E53935; box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4); }
.nav-links a:nth-child(2) {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #333333;
}
.nav-links a:nth-child(2):hover { color: #D4A000; box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4); }
.nav-links a:nth-child(3) {
    background-color: #1E88E5;
    border-color: #1E88E5;
    color: #ffffff;
}
.nav-links a:nth-child(3):hover { color: #1E88E5; box-shadow: 0 6px 15px rgba(30, 136, 229, 0.4); }
.nav-links a:nth-child(4) {
    background-color: #43b02a;
    border-color: #43b02a;
    color: #ffffff;
}
.nav-links a:nth-child(4):hover { color: #43b02a; box-shadow: 0 6px 15px rgba(67, 176, 42, 0.4); }
.nav-links a:nth-child(5) {
    background-color: #F57C00;
    border-color: #F57C00;
    color: #ffffff;
}
.nav-links a:nth-child(5):hover { color: #F57C00; box-shadow: 0 6px 15px rgba(245, 124, 0, 0.4); }
.nav-links a:nth-child(6) {
    background-color: #8E24AA;
    border-color: #8E24AA;
    color: #ffffff;
}
.nav-links a:nth-child(6):hover { color: #8E24AA; box-shadow: 0 6px 15px rgba(142, 36, 170, 0.4); }
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    background-image: url('ruta-a-imagen-fabrica.jpg'); 
    background-size: cover;
    background-position: center center; 
    display: flex;
    justify-content: center;
    align-items: center; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.carousel-container {
    width: 100%;
    max-width: 914px;
    height: 464px; 
    background-color: #ffffff;
    border: 4px solid #001993;
    border-radius: 10px;
    overflow: hidden; 
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.carousel-container img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-container img.slide.activa {
    opacity: 1;
}
@media (max-width: 768px) {
    .carousel-container {
        height: 264px; 
    }
}
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 100;
}

.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
    border: 2px solid #25d366;
}
.content-section {
    padding: 60px 50px;
    max-width: 1000px;
    margin: 0 auto; 
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.content-section h1, 
.content-section h2, 
.content-section h3 {
    color: #001993; 
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center; 
}

.content-section h1 {
    font-size: 38px;
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 28px;
    margin-top: 40px;
}

.content-section h3 {
    font-size: 22px;
    margin-top: 30px;
}

/* Estilo para los textos largos (Misión, Visión, etc.) */
.content-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.8; 
    margin-bottom: 20px;
    text-align: justify; 
    color: #444444; 
}

/* --- Banner superior de servicios --- */
.banner-servicios {
    width: 100%;
    height: 100px; 
    background-image: url('ruta-a-tu-imagen-superior.jpg'); 
    background-size: cover;
    background-position: center;
}

/* --- Sección de Servicios (Fondo gris) --- */
.seccion-servicios {
    background-color: #b3b3b3; 
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Flechas laterales */
.flecha {
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.flecha:hover {
    opacity: 1;
}

/* Contenedor de las 4 tarjetas */
.contenedor-tarjetas {
    display: flex;
    gap: 20px; 
    max-width: 1200px;
    overflow-x: auto;
    scroll-snap-type: x mandatory; 
}

/* --- Estilo de cada Tarjeta --- */
.tarjeta-servicio {
    flex: 1;
    min-width: 220px; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    scroll-snap-align: start;
}

.tarjeta-servicio img {
    width: 100%;
    height: 160px; 
    object-fit: cover; 
    margin-bottom: 15px;
}

.tarjeta-servicio h3 {
    font-family: 'Arial', sans-serif; 
    font-size: 14px;
    color: #333333;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: normal;
}

/* --- Botón de Cotización --- */
.btn-cotizacion {
    background-color: #001993; 
    color: #ffffff;
    font-family: 'Impact', 'Arial Black', sans-serif;
    text-decoration: none;
    padding: 8px 15px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.btn-cotizacion:hover {
    background-color: #001166; 
}

/* Ocultar scrollbar en navegadores para que se vea más limpio */
.contenedor-tarjetas::-webkit-scrollbar {
    display: none;
}
.contenedor-tarjetas {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Sección de Contacto (Zona de Clientes) --- */
.contacto-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Arial', sans-serif;
}

.contacto-titulo {
    color: #001993; 
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.contacto-nota {
    font-style: italic;
    color: #555;
    font-size: 14px;
    margin-bottom: 30px;
}

.requerido {
    color: red;
}

/* --- Formulario --- */
.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-grupo label {
    font-size: 14px;
    color: #333;
}


.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}


.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"] {
    border: none;
    border-bottom: 1px solid #ddd;
    padding-left: 0;
}

.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
    border-color: #001993; 
    border-bottom: 2px solid #001993; 
}


.nombres-fila {
    display: flex;
    gap: 20px;
}

.input-mitad {
    flex: 1;
}


.btn-enviar {
    background-color: #001993; 
    color: white;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    border: none;
    padding: 12px 40px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.btn-enviar:hover {
    background-color: #001166; 
}
.valores-agregados-section {
    padding: 60px 20px;
    background-color: transparent; 
    text-align: center;
}

.titulo-valores {
    color: #001993;
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 1px;
}

.contenedor-valores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.caja-valor {
    flex: 1 1 300px;
    padding: 30px 25px;
    border-radius: 15px;
    color: white;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}
.caja-valor:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}
.caja-valor i {
    font-size: 35px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.9;
}

.caja-valor:nth-child(1) {
    background: linear-gradient(135deg, #FF7043, #D84315);
}
.caja-valor:nth-child(2) {
    background: linear-gradient(135deg, #66BB6A, #2E7D32);
}
.caja-valor:nth-child(3) {
    background: linear-gradient(135deg, #29B6F6, #0277BD);
}
.caja-valor:nth-child(4) {
    background: linear-gradient(135deg, #FFCA28, #F57F17);
    color: #333;
}
.caja-valor:nth-child(4) i { color: #333; }
.caja-valor:nth-child(5) {
    background: linear-gradient(135deg, #AB47BC, #6A1B9A);
}

.contenedor-mision-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.caja-mv {
    flex: 1 1 400px;
    padding: 40px 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.caja-mv:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.caja-mv i {
    font-size: 50px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.caja-mv h2 {
    color: white !important; 
    margin-bottom: 15px;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 1px;
}

.caja-mv p {
    color: white !important;
    text-align: justify;
    margin-bottom: 0;
}
.caja-mv.mision {
    background: linear-gradient(135deg, #001993, #0052cc);
}

.caja-mv.vision {
    background: linear-gradient(135deg, #43b02a, #2E7D32);
}

.proyeccion-section {
    padding: 60px 20px;
    background-color: transparent;
    text-align: center;
}

.contenedor-proyeccion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.caja-proyeccion {
    flex: 1 1 250px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-bottom: 5px solid #001993;
    transition: transform 0.3s ease;
}

.caja-proyeccion:hover {
    transform: translateY(-5px);
}

.caja-proyeccion i {
    font-size: 40px;
    color: #43b02a;
    margin-bottom: 15px;
}
.caja-proyeccion .counter {
    font-size: 55px;
    font-weight: bold;
    color: #001993;
    font-family: 'Impact', 'Arial Black', sans-serif;
    margin-bottom: 5px;
}
.caja-proyeccion p {
    color: #555;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.contador-visitas {
    position: fixed;
    bottom: 30px;
    left: 30px; 
    background-color: #001993; 
    color: white;
    height: 60px;
    padding: 0 25px; 
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    z-index: 100;
    cursor: default;
    border: 2px solid #ffffff; 
}
.contador-visitas i {
    font-size: 26px;
    color: #43b02a; 
}