@charset "utf-8";
/* CSS Document */

/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212; /* Negro de fondo */
    color: #FFFFFF; /* Texto blanco para legibilidad */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- COLORES TEMÁTICOS --- */
:root {
    --amarillo: #FADA00; /* Amarillo brillante corporativo */
    --negro-puro: #000000;
    --negro-grisaceo: #1E1E1E;
}

/* --- MENÚ DE NAVEGACIÓN --- */
header {
    background-color: var(--negro-puro);
    border-bottom: 2px solid var(--amarillo);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-interior img {
    height: 50px; /* Ajusta según tu logo */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--amarillo);
}

/* --- PÁGINA DE INICIO EXCLUSIVA (index.html) --- */
.hero-inicio {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1e1e1e 0%, #000000 100%);
    text-align: center;
}

.logo-central img {
    max-width: 300px; /* Ajusta el tamaño máximo del logo */
    height: auto;
    animation: fadeIn 2s; /* Ejemplo de animación */
	margin-bottom: 60px;
}

.menu-inicio {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu-inicio a {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid var(--amarillo);
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-inicio a:hover {
    background-color: var(--amarillo);
    color: var(--negro-puro);
    box-shadow: 0 0 15px var(--amarillo);
}

/* --- SECCIONES DE CONTENIDO --- */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

h2 {
    color: var(--amarillo);
    border-left: 5px solid var(--amarillo);
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* --- PIE DE PÁGINA (FOOTER) --- */
footer {
    background-color: var(--negro-puro);
    border-top: 2px solid var(--amarillo);
    color: #888;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}


/* --- ESTILOS SOBRE NOSOTROS --- */
.grid-corporativo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card-info {
    background-color: var(--negro-grisaceo);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--amarillo);
}

.card-info h3 {
    color: var(--amarillo);
    margin-bottom: 15px;
}

/* --- NUEVO CARRUSEL INFINITO AUTOMÁTICO --- */

/* Contenedor que oculta todo lo que se salga de la pantalla */
.carrusel-contenedor {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background-color: var(--negro-puro);
    border-radius: 8px;
}

/* La pista que contiene ambos grupos y los alinea de lado a lado */
.carrusel-track {
    display: flex;
    width: max-content;
    /* Aplicamos la animación: se llama 'scroll', dura 20 segundos, es lineal e infinita */
    animation: scroll 20s linear infinite;
}

/* Pausa el carrusel cuando el usuario pone el cursor encima */
.carrusel-track:hover {
    animation-play-state: paused;
}

/* Cada grupo de logos tiene un ancho flexible y espaciado */
.carrusel-grupo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.carrusel-grupo img {
    height: 300px; /* Ajusta la altura de los logos de tus clientes */
    object-fit: contain;
    filter: grayscale(100%) brightness(150%);
    transition: filter 0.3s ease;
}

/* Al pasar el cursor sobre un logo individual, recupera su color original */
.carrusel-grupo img:hover {
    filter: grayscale(0%) brightness(100%);
}

/* KEYFRAMES: La regla matemática que desliza la pista exactamente a la mitad (el grupo duplicado) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ==========================================
   ESTILOS DE LA GALERÍA DE PRODUCTOS (productos.html)
   ========================================== */

/* Cuadrícula de 4 bloques */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.bloque-categoria {
    position: relative;
    height: 350px;
    border: 2px solid var(--negro-grisaceo);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bloque-categoria:hover {
    transform: translateY(-5px);
    border-color: var(--amarillo);
}

.bloque-categoria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bloque-categoria:hover img {
    transform: scale(1.05);
}

/* Capa oscura sobre la imagen del bloque */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    transition: background 0.3s ease;
}

.bloque-categoria:hover .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.3) 100%);
}

.overlay h3 {
    color: var(--amarillo);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.overlay p {
    font-size: 0.9rem;
    color: #CCCCCC;
}

/* Ventana Modal Flotante */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-contenido {
    max-width: 1000px;
    margin: auto;
    position: relative;
}

.cerrar-modal {
    position: absolute;
    top: -10px;
    right: 10px;
    color: var(--amarillo);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar-modal:hover {
    color: #FFFFFF;
}

.modal h3 {
    color: var(--amarillo);
    text-transform: uppercase;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--amarillo);
    padding-bottom: 10px;
}

/* Cuadrícula interna del modal */
.galeria-interna {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.item-galeria {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
    background-color: var(--negro-grisaceo);
    padding: 10px;
    text-align: center;
}

.item-galeria img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 10px;
}

.item-galeria p {
    font-size: 0.95rem;
    font-weight: bold;
    color: #FFFFFF;
}

/* ==========================================
   ESTILOS DE LA PÁGINA DE CONTACTO (contacto.html)
   ========================================== */

.grid-contacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.info-contacto {
    background-color: var(--negro-grisaceo);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--amarillo);
}

.info-contacto h3 {
    color: var(--amarillo);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.dato-contacto {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dato-contacto .icono {
    font-size: 1.5rem;
    color: var(--amarillo);
}

.dato-contacto p strong {
    display: block;
    color: var(--amarillo);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Formulario */
.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.formulario-contacto input, .formulario-contacto textarea {
    width: 100%;
    background-color: #121212;
    border: 1px solid #444;
    color: #FFFFFF;
    padding: 12px;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.formulario-contacto input:focus, .formulario-contacto textarea:focus {
    border-color: var(--amarillo);
    outline: none;
}

.btn-enviar {
    background-color: var(--amarillo);
    color: var(--negro-puro);
    border: none;
    padding: 12px;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-enviar:hover {
    background-color: #E6C200;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Mapa de Google */
.mapa-contenedor {
    display: flex;
    flex-direction: column;
}

.mapa-box {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background-color: var(--negro-grisaceo);
    border-radius: 8px;
    border: 2px solid var(--negro-grisaceo);
    overflow: hidden;
}

.mapa-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

