/* ==========================================================
   ASOOPERADORES DEL HUILA - ESTILOS INDUSTRIALES UNIFICADOS
   ========================================================== */

/* ===== 1. VARIABLES Y GENERALES ===== */
:root {
    --primary: #ffc107;         /* Amarillo Caterpillar */
    --dark-bg: #1a1a1a;         /* Gris casi negro industrial */
    --dark-text: #212529;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(#d1d1d1 0.5px, transparent 0.5px);
    background-size: 20px 20px; /* Cuadrícula de ingeniería sutil */
}

html {
    scroll-behavior: smooth;
    overflow-y: auto;
}

/* ===== 2. CABECERA / HERO (BANNER) ===== */

/* ===== 2. CABECERA / HERO (BANNER) ===== */

.text-shadow-heavy {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 
                 0px 0px 15px rgba(0, 0, 0, 0.8);
}

/* Estilo para el logo del Hero */
.hero-logo {
    width: auto;
    height: auto;
    max-height: 250px; /* Tamaño máximo en PC */
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.3));
    transition: max-height 0.3s ease;
}

/* Contenedor con ligero fondo oscuro degradado para legibilidad */
.hero-text-container {
    max-width: 900px;
    padding: 20px;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 80%);
    border-radius: 15px;
}

/* Forzar que el texto secundario sea amarillo Caterpillar para resaltar */
.text-warning {
    color: var(--primary) !important; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

header#inicio {
    height: 100vh;
    min-height: 600px; /* Evita que se colapse en pantallas muy pequeñas */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('../img/fondo_inicio_2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; 
    
    margin-top: 0 !important;
    border-bottom: 5px solid var(--dark-text);
}

header#inicio h1, 
header#inicio .lead {
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* =============================================
   AJUSTES RESPONSIVOS (CELULARES Y TABLETS)
   ============================================= */

/* Ajuste para Tablets y laptops pequeñas */
@media (max-width: 991px) {
    .hero-logo {
        max-height: 180px; 
    }
    header#inicio .lead {
        font-size: 1.5rem !important;
    }
}

/* Ajuste específico para Celulares (iPhone SE, etc.) */
@media (max-width: 576px) {
    header#inicio {
        padding-top: 60px; /* Espacio para que el menú no tape el logo */
    }

    .hero-logo {
        max-height: 130px; /* Logo más pequeño en celular */
        margin-bottom: 1rem !important;
    }

    .hero-text-container {
        padding: 10px;
    }

    /* Reducción de textos para que quepan en la pantalla */
    header#inicio .lead {
        font-size: 1.2rem !important;
        line-height: 1.3;
    }

    header#inicio .fs-5 {
        font-size: 0.9rem !important;
    }

    header#inicio .fs-4 {
        font-size: 1rem !important;
    }

    /* Ocultamos líneas decorativas que ocupen mucho espacio vertical */
    .hero-text-container .border-top {
        margin-top: 1rem !important;
        padding-top: 1rem !important;
    }
}



/* ===== 3. MISIÓN Y VISIÓN ===== */
.card-mission-vision {
    background-color: var(--primary) !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: var(--transition) !important;
}

.card-mission-vision:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-5px);
}

.card-mission-vision h3 {
    color: #000;
    text-transform: uppercase;
    font-weight: 800;
}

/* 4.Objeto Social */

/* Ajuste para que la sección de Objeto Social resalte */
#objeto-social .container {
    max-width: 1100px; /* Estrecha un poco el contenedor para que parezca una tarjeta central */
}

#objeto-social .row {
    border-radius: 15px; /* Bordes redondeados como en la imagen */
    transition: transform 0.3s ease;
}

/* Color de fondo gris claro para que el blanco de la tarjeta resalte */
#objeto-social {
    background-color: #f4f4f4 !important;
}

/* Icono de engranaje (estilo Caterpillar) */
.bi-gear-fill {
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

/* ===== 5. JUNTA DIRECTIVA & MODALES ===== */
#junta-directiva .member-img-container {
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    background-color: var(--white);
}

.main-leader { width: 200px; height: 200px; }
#junta-directiva .member-img-container:not(.main-leader) { width: 160px; height: 160px; }

#junta-directiva .member-img-container img {
    width: 100%; height: 100%; object-fit: cover; object-position: top;
}

.card-hover-effect { transition: var(--transition); }
.card-hover-effect:hover { transform: scale(1.05); }

.card-hover-effect:hover .member-img-container {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}

/* Modales */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

/* ===== 6. SERVICIOS Y MAQUINARIA (ESTILO CHECKLIST) ===== */

/* Estilo para los cuadros de servicios */
.custom-list-item {
    background: #ffffff;
    padding: 18px 20px 18px 45px; /* Espacio extra a la izquierda para el chulo */
    border-radius: 8px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #eee;
}

/* El "Chulo" creativo para Servicios */
.custom-list-item::before {
    content: '✓';
    position: absolute;
    left: 15px;
    width: 22px;
    height: 22px;
    background-color: var(--primary); /* Amarillo Caterpillar */
    color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 14px;
}

/* Títulos de categorías en Maquinaria */
.machine-category-title {
    background: var(--dark-bg);
    color: var(--primary);
    padding: 10px 15px;
    font-weight: 800;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

/* Items de Maquinaria */
.machine-item {
    padding: 10px 10px 10px 35px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #333;
}

/* El indicador creativo para Maquinaria (Punto industrial) */
.machine-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: repeating-linear-gradient(45deg, #ffc107, #ffc107 2px, #000 2px, #000 4px);
    border-radius: 2px;
}

/* Ajuste para la barra superior de precaución */
.stripe-yellow-top {
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(45deg, var(--primary), var(--primary) 10px, #000 10px, #000 20px);
    position: absolute;
    top: 0;
    left: 0;
}
/* ===== 7. CONTACTO Y FOOTER ===== */
.contact-card {
    background-color: var(--dark-bg);
    padding: 80px 0 40px 0;
    width: 100%;
    position: relative;
    color: var(--white);
    clip-path: polygon(0% 10%, 100% 0%, 100% 100%, 0% 100%);
}

.text-primary-custom { color: var(--primary); }
.text-muted-custom { color: #b0b0b0; }

.icon-circle {
    width: 50px; height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark-bg);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-wrapper:hover .icon-circle {
    background-color: var(--primary);
    transform: rotate(360deg);
}

/* ===== 8. RESPONSIVE ESPECIAL (375x667 & MOBILE) ===== */

/* Ajustes para iPhone SE / 375px */
@media (max-width: 375px) {
    header#inicio {
        height: 85vh;
        background-attachment: scroll; /* Mejor performance */
    }

    header#inicio h1 { font-size: 1.7rem !important; }
    header#inicio p.lead { font-size: 1rem !important; }

    .main-leader { width: 150px !important; height: 150px !important; }
    #junta-directiva .member-img-container:not(.main-leader) { 
        width: 130px !important; height: 130px !important; 
    }

    .contact-card {
        clip-path: polygon(0% 5%, 100% 0%, 100% 100%, 0% 100%);
        padding-top: 60px;
    }

    .modal-dialog { margin: 10px; }
}

/* Ajustes generales para tablets y móviles */
@media (max-width: 768px) {
    header#inicio { height: 70vh; background-attachment: scroll; }
    .custom-list-item:hover { transform: none; } /* Evita saltos en touch */
    .contact-card { padding-top: 100px; }
}


/* --- Ajustes Globales Responsive --- */

/* Contenedor del Hero (Banner principal) */
header#inicio {
    min-height: 100vh;
    padding: 80px 0; /* Espacio para el navbar en móviles */
    display: flex;
    align-items: center;
}

/* Tipografía responsiva: se encoge en móviles y crece en PC */
.display-5 {
    font-size: calc(1.5rem + 1.5vw);
    line-height: 1.2;
}

/* Ajuste de imágenes para que nunca se desborden */
img {
    max-width: 100%;
    height: auto;
}

/* --- Media Queries (Puntos de quiebre) --- */

/* Celulares pequeños (Vertical) */
@media (max-width: 576px) {
    .hero-text-container {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .contact-card {
        clip-path: none; /* Quitamos el corte diagonal para ganar espacio */
        padding: 60px 0;
    }

    .main-leader {
        width: 140px; /* Fotos de perfil más pequeñas */
        height: 140px;
    }
}

/* Tablets y Laptops pequeñas */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    #objeto-social .col-lg-5 {
        height: 250px; /* Imagen del objeto social visible en tablet */
        display: block !important;
    }
}

/* Monitores muy grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Contenedor de imagen: Objeto Social */
.objeto-img-container {
    /* PRUEBA ESTO: Si tu imagen termina en .jpg y no .jpeg, cámbialo aquí */
    /* Si el CSS está en la misma carpeta que el HTML, quita el '../' */
    background-image: url('../img/assoperadores_img_1.jpeg'); 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    
    display: block;
    width: 100%;
    min-height: 250px; /* Altura obligatoria en móviles */
    background-color: #333; /* Si la imagen falla, verás un fondo gris */
}

/* Borde dinámico para separar en móviles */
.border-yellow-responsive {
    border-top: 6px solid #ffc107;
    background-color: #ffffff;
    width: 100%;
    position: relative;
    z-index: 5; /* Asegura que esté por encima de cualquier otro elemento */
}

/* Ajustes Escritorio */
@media (min-width: 992px) {
    .objeto-img-container {
        height: 100%; 
        min-height: 450px;
    }
    
    .border-yellow-responsive {
        border-top: none;
        border-left: 6px solid #ffc107;
    }
}

/* Ajuste iPhone SE (375px) */
@media (max-width: 375px) {
    .objeto-img-container {
        min-height: 220px; 
    }
    #objeto-social .p-4 {
        padding: 1.2rem !important;
    }
    #objeto-social h2 {
        font-size: 1.2rem !important;
    }
}


/* Estilos para la galería de equipo */
.team-card {
    overflow: hidden;
    border-radius: 1rem;
    height: 250px; /* Altura fija para que todas las fotos se vean iguales */
    transition: var(--transition);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el contenedor sin deformarse */
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.1); /* Efecto de zoom suave al pasar el mouse */
}

/* Ajuste para pantallas pequeñas (móvil) */
@media (max-width: 768px) {
    .team-card {
        height: 200px; /* Un poco más bajas en móvil */
    }
}


/* NAVBAR INDUSTRIAL MODERNO */
.custom-navbar {
    background: rgba(26, 26, 26, 0.95); /* Gris oscuro industrial */
    backdrop-filter: blur(10px); /* Efecto cristalino */
    border-bottom: 3px solid var(--primary);
    padding: 15px 0;
    transition: all 0.4s ease;
}

/* Caja de la marca */
.brand-box {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
}

.brand-text {
    font-size: 1.25rem; /* Tamaño en PC */
    white-space: nowrap; /* Evita que se rompa en dos líneas */
    transition: inline-block;
}

/* Tablets (Menos de 992px) */
@media (max-width: 991px) {
    .brand-text {
        font-size: 1.15rem;
    }
}

/* Ajuste crítico para celulares (iPhone SE / 375px) */
@media (max-width: 414px) {
    .brand-text {
        /* Reducimos el tamaño lo suficiente para que quepa DEL HUILA completo */
        font-size: 0.88rem; 
        letter-spacing: -0.3px; /* Comprimimos un poco el espacio entre letras */
    }
    
    .brand-box {
        margin-right: 5px !important;
        padding: 1px 4px;
    }

    .brand-box i {
        font-size: 0.9rem;
    }
}

/* Ajuste extremo para pantallas de 320px */
@media (max-width: 320px) {
    .brand-text {
        font-size: 0.75rem;
    }
}

/* Enlaces del menú */
.custom-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.85rem;
    padding: 10px 15px !important;
    position: relative;
    transition: var(--transition);
}

.custom-link:hover {
    color: var(--primary) !important;
}

/* Línea amarilla animada bajo el enlace */
.custom-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.custom-link:hover::after {
    width: 60%;
}

/* Botón de contacto en el menú */
.btn-contact-nav {
    background: var(--primary);
    color: #000 !important;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-contact-nav:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* RESPONSIVE AJUSTES */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #1a1a1a;
        margin-top: 15px;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #333;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #333;
    }
    
    .nav-item:last-child { border: none; }
    
    .btn-contact-nav {
        margin-top: 10px;
        display: inline-block;
        width: 100%;
    }
}


/* Tamaño de los Iconos */
.custom-icon-size {
    font-size: 2.0rem; /* Hace los emojis o iconos mucho más grandes */
    margin-bottom: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-item:hover .custom-icon-size {
    transform: scale(1.2); /* Efecto de crecimiento al pasar el mouse */
}

/* Tamaño de los Títulos de contacto */
.contact-item h5 {
    font-size: 1.05rem; /* Tamaño más legible */
    letter-spacing: 1px;
    color: var(--primary) !important; /* Opcional: ponerlos en amarillo para resaltar */
}

/* Texto de los párrafos (dirección, correo, etc) */
.contact-item p {
    font-size: 0.95rem; /* Un poco más grande que el original */
    line-height: 1.4;
}

@media (max-width: 375px) {
    .custom-icon-size {
        font-size: 2rem; /* Ajuste para iPhone SE */
    }
    .contact-item h5 {
        font-size: 1.1rem;
    }
}
