/* ESTILOS GENERALES */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; }
body { background-color: #f8f9fa; color: #333; line-height: 1.6; }
.contenedor { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }

/* ENCABEZADO Y MENÚ */
header { background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-grid { display: flex; justify-content: space-between; align-items: center; }
.navegacion ul { list-style: none; display: flex; gap: 20px; }
.navegacion a { text-decoration: none; color: #0056b3; font-weight: bold; text-transform: uppercase; }
.navegacion a:hover, .navegacion a.activo { color: #0099ff; }

/* HERO SECTION */
.hero { background: linear-gradient(135deg, #0056b3 0%, #00aaff 100%); color: white; padding: 60px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; }
.logos-partners { background: rgba(255,255,255,0.9); padding: 15px; border-radius: 8px; display: inline-flex; gap: 20px; margin-top: 30px; align-items: center;}

/* --- ESTILOS DEL CARRUSEL (SLIDER) --- */
.slider-contenedor {
    position: relative;
    max-width: 900px;    
    height: 450px;       
    margin: 40px auto;   
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    background-color: #003d82; 
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   
    opacity: 0;          
    transition: opacity 1s ease-in-out; 
}
.slide.activo {
    opacity: 1;          
}

/* SECCIONES Y GRIDS */
section { padding: 60px 0; }
section:nth-child(even) { background-color: #fff; }
h2 { text-align: center; color: #0056b3; margin-bottom: 40px; font-size: 2rem; }
h3 { color: #0056b3; margin-bottom: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px;}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* TABLA EXPERIENCIA */
table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: #0056b3; color: white; }

/* TARJETAS DE PRODUCTOS/SERVICIOS */
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.1); text-align: center; border: 1px solid #eee;}
.card img { height: 200px; object-fit: contain; margin: 0 auto 15px auto; }
.card-detalles { text-align: left; font-size: 0.9rem; margin-top: 15px; border-top: 1px solid #eee; padding-top: 10px;}

/* FORMULARIO CONTACTO */
.formulario { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 3px 6px rgba(0,0,0,0.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
button { background: #0056b3; color: white; border: none; padding: 15px 30px; cursor: pointer; font-size: 1.1rem; border-radius: 4px; width: 100%;}
button:hover { background: #003d82; }

/* FOOTER */
footer { background: #333; color: white; text-align: center; padding: 20px 0; margin-top: 40px; }

/* RESPONSIVE PARA CELULARES */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .header-grid { flex-direction: column; gap: 15px; }
    .full-width { grid-column: span 1; }
    
    /* El carrusel se hace más chaparrito en el celular para que quepa bien */
    .slider-contenedor { height: 250px; } 
}

/* --- ESTILOS PARA ENLACES DE TARJETAS Y PÁGINAS INDIVIDUALES --- */
a.enlace-tarjeta {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.enlace-tarjeta .card {
    height: 100%; /* Hace que todas las tarjetas midan lo mismo */
}
.boton-regresar {
    display: inline-block;
    margin-bottom: 30px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}
.boton-regresar:hover {
    text-decoration: underline;
}
.producto-individual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.producto-individual img {
    width: 100%;
    border-radius: 8px;
}
.producto-individual-info h2 {
    text-align: left;
    margin-bottom: 20px;
}
.producto-individual-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}
@media (max-width: 768px) {
    .producto-individual { grid-template-columns: 1fr; padding: 20px; }
}