@charset "utf-8";

/* --- VARIABLES DE COLOR EXTRACTAS DEL PDF (Verde Brecara, Negro y Blanco) --- */
:root {
    --verde-brecara: #86c03f; /* El verde exacto de tus iconos en el PDF */
    --negro: #121212;
    --gris-seccion: #1e1e1e;  /* Fondo oscuro para Misión/Visión */
    --gris-claro: #fcfcfc;    /* Fondo muy suave */
    --blanco: #ffffff;
    --texto-oscuro: #333333;
    --texto-claro: #f4f4f4;
    --altura-header: 100px;
    --altura-footer: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
    padding-bottom: var(--altura-footer); /* Previene solapamiento con footer fijo */
}

/* --- ENCABEZADO FIJO (BLANCO) --- */
header {
    background-color: var(--blanco);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--verde-brecara);
    height: var(--altura-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 100%;
}

.logo {
    color: var(--negro);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo span {
    color: var(--verde-brecara);
}

/* --- NUEVO TAMAÑO DEL LOGO EN IMAGEN --- */
.logo img {
    height: 200px;            /* Subimos de 45px a 65px para que se vea mucho más grande */
    width: auto;             /* Mantiene la proporción para que no se vea aplastado */
    display: block;
    max-height: 100%;        /* Evita que se salga de la barra de navegación */
    transition: transform 0.3s ease; /* Un toque elegante de animación al pasar el cursor */
}

.logo img:hover {
    transform: scale(1.05);  /* Hace que el logo crezca un 5% muy sutilmente al pasar el mouse */
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--negro);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--verde-brecara);
}

/* --- CONTENEDOR PRINCIPAL --- */
main {
    margin-top: var(--altura-header); 
}

section {
    scroll-margin-top: var(--altura-header);
}

/* --- HERO (SALA DE CONFERENCIAS DEL PDF) --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url('imagenes/Banner/Banner_1.jpg') no-repeat center center/cover;
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanco);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 45px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    color: var(--verde-brecara);
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.sobre-nosotros {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.nosotros-texto {
    flex: 1.2;
    min-width: 300px;
}

.nosotros-texto h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--negro);
    font-weight: 700;
}

.nosotros-texto p {
    font-size: 16px;
    color: var(--texto-oscuro);
    line-height: 1.8;
}

.nosotros-imagen {
    flex: 0.8;
    min-width: 280px;
    text-align: center;
}

.nosotros-imagen img {
    max-width: 75%;
    height: auto;
}

/* --- MISIÓN Y VISIÓN (FONDO OSCURO) --- */
.mision-vision-section {
    background-color: var(--gris-seccion);
    color: var(--blanco);
    padding: 80px 20px;
}

.mision-vision-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    text-align: center;
}

.mision-vision-card h3 {
    font-size: 26px;
    margin-top: 15px;
    margin-bottom: 15px;
    color: var(--verde-brecara);
    text-transform: uppercase;
}

.mision-vision-card p {
    font-size: 15px;
    color: var(--texto-claro);
    line-height: 1.7;
}

.mv-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto;
}

/* --- SECCIÓN VALORES --- */
.valores-section {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--blanco);
}

.valores-col-img {
    flex: 1;
    min-width: 300px;
    background: url('imagenes/Banner/Imagen_valores.jpg') no-repeat center center/cover;
    min-height: 480px;
}

.valores-col-texto {
    flex: 1;
    min-width: 300px;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.valores-col-texto .val-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.valores-col-texto h2 {
    font-size: 32px;
    color: var(--verde-brecara);
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 700;
}

.valores-lista {
    list-style: none;
}

.valores-lista li {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--texto-oscuro);
    line-height: 1.6;
}

.valores-lista li strong {
    color: var(--negro);
}

/* ==========================================================================
   NUEVA SECCIÓN DE CLIENTES Y CARRUSEL (FONDO BLANCO / TÍTULO NEGRO)
   ========================================================================== */

/* 1. La franja negra del título */
.clientes-titulo-franja {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 30px 20px;
    text-align: center;
}

.clientes-titulo-franja h2 {
    font-size: 24px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* 2. El contenedor blanco del carrusel */
.clientes-carrusel-seccion {
    background-color: var(--blanco);
    padding: 40px 20px;
    border-bottom: 1px solid #eee;
}

/* 3. El contenedor del Slider (¡ESTO ES LO QUE HACE QUE SEA HORIZONTAL!) */
.slider-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* Oculta los logos que quedan fuera de la pantalla */
    position: relative;
}

/* 4. La pista donde se mueven los logos */
.slider-track {
    display: flex; /* Pone todos los logos en fila horizontal */
    transition: transform 0.5s ease-in-out; /* Suaviza el movimiento */
}

/* 5. Cada espacio de logo individual */
.slide {
    min-width: 25%; /* Muestra 4 logos al mismo tiempo (100% / 4 = 25%) */
    box-sizing: border-box;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 6. Las imágenes de los logos */
.slide img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- PORTAFOLIO / NUESTRO TRABAJO --- */
.productos-section {
    background-color: var(--gris-claro);
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--verde-brecara);
    display: block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--negro);
    text-transform: uppercase;
}

/* ==========================================================================
   GALERÍA DE PRODUCTOS (ESTILO AXJOR - BRECARA)
   ========================================================================== */

/* 1. Rejilla Inicial de las 3 Portadas */
.portadas-iniciales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2. Tarjeta de Portada Individual */
.portada-card {
    position: relative;
    height: 400px; /* Altura ideal para lucir el producto */
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portada-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Capa oscura superior para garantizar legibilidad del texto blanco */
.portada-card .capa-oscura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    transition: background 0.3s ease;
}

/* Efectos Hover (Elegantes al pasar el mouse) */
.portada-card:hover img {
    transform: scale(1.08);
}

.portada-card:hover .capa-oscura {
    background: rgba(0, 0, 0, 0.25); /* Se aclara ligeramente */
}

/* Texto de la Portada */
.portada-texto {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.portada-texto h3 {
    color: #ffffff;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 3. Contenedor de Detalles (Al abrir una categoría) */
.detalle-categoria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Botón Regresar (Fondo Negro, Borde Verde Brecara) */
.btn-regresar-axjor {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #86c03f; /* Tu verde corporativo */
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    border-radius: 4px;
}

.btn-regresar-axjor:hover {
    background-color: #86c03f;
    color: #000000;
    border-color: #86c03f;
}

/* Rejilla de Imágenes Secundarias */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Tarjetas de Fotos Internas */
.portfolio-item.item-axjor {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portfolio-item.item-axjor img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Cuadro de texto para los nombres de fotos de soporte */
.portfolio-item.item-axjor .item-info {
    padding: 15px;
    background: #ffffff;
}

.portfolio-item.item-axjor .item-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
    font-weight: 600;
}

/* --- CONTACTO --- */
.contacto-section {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 80px 20px;
}

.contacto-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contacto-info {
    flex: 1;
    min-width: 300px;
}

.contacto-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--verde-brecara);
    text-transform: uppercase;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--blanco);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.info-item p {
    color: #bbb;
    font-size: 15px;
}

.contacto-form {
    flex: 1.2;
    min-width: 300px;
    background-color: var(--gris-seccion);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #2d2d2d;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    background-color: var(--negro);
    color: var(--blanco);
    border-radius: 4px;
    font-size: 15px;
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--verde-brecara);
}

.btn-enviar {
    background-color: var(--verde-brecara);
    color: var(--blanco);
    border: none;
    padding: 14px 30px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    transition: opacity 0.3s;
}

.btn-enviar:hover {
    opacity: 0.9;
}

/* --- PIE DE PÁGINA FIJO (NEGRO) --- */
footer {
    background-color: var(--negro);
    color: #777;
    text-align: center;
    padding: 18px 20px;
    border-top: 1px solid #222;
    font-size: 13px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--altura-footer);
}

/* Adaptación móvil simple */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .valores-col-img {
        min-height: 280px;
    }
    .valores-col-texto {
        padding: 40px 20px;
    }
    .slide {
        min-width: 50%;
    }
}


/* ==========================================
   ESTILOS BLINDADOS PARA LA GALERÍA BRECARA
   ========================================== */

/* Fuerza la franja negra pase lo que pase */
.franja-titulo-negra-brecara {
    background-color: #000000 !important;
    padding: 45px 20px !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.franja-titulo-negra-brecara h2 {
    color: #ffffff !important;
    font-size: 2.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 0 !important;
}

/* Fuerza el fondo blanco de la galería */
.cuadro-galeria-blanco-brecara {
    background-color: #ffffff !important;
    padding: 60px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.portfolio-subtitulo {
    text-align: center;
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 40px;
}