/* style.css - Diseño Final Enerfour */

/* =========================================
   1. ESTILOS GLOBALES
   ========================================= */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa; 
    color: #333;
    margin: 0;
    padding: 0;
}

/* --- Cabecera y Banner --- */
.main-header .banner img {
    width: 100%;
    height: auto;
    display: block; 
}

.slogan-bar {
    background-color: #085296; 
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* --- Menú de Navegación --- */
.navbar-custom {
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.navbar-custom ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar-custom a {
    text-decoration: none;
    color: #085296;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar-custom a:hover {
    color: #0056b3;
}

.navbar-custom a.active {
    border-bottom: 2px solid #085296; 
}

/* --- Títulos de Sección Generales --- */
.titulo-seccion {
    margin-bottom: 40px;
    color: #085296;
    font-weight: bold;
    text-align: center;
}

/* =========================================
   2. CARRUSEL (INICIO) - ORIGINAL / SIN ZOOM
   ========================================= */
#myCarousel {
    display: block;
    width: 100%;       
    margin: 0;         
    border: none;
    box-shadow: none;
    border-radius: 0;
    background-color: #000; 
}

#myCarousel .item img {
    width: 100%;       
    height: auto;      
    display: block;
}

.carousel-caption {
    background: rgba(8, 82, 150, 0.75); 
    border-radius: 10px 10px 0 0;
    padding: 15px;
    bottom: 0;
    width: 100%;
    left: 0;
}

/* =========================================
   3. SECCIÓN DIVISIONES (TARJETAS)
   ========================================= */
.seccion-divisiones {
    padding: 50px 0;
    text-align: center;
}

.contenedor-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 20px;
}

.card-division {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 260px;
    color: #444;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer; 
}

.card-division:hover {
    transform: translateY(-8px); 
    border-color: #085296;
    box-shadow: 0 10px 20px rgba(8, 82, 150, 0.1);
    color: #085296;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

/* =========================================
   4. PÁGINA DE PROYECTOS (GRID + MODAL)
   ========================================= */
.seccion-proyectos {
    padding: 40px 0;
    text-align: center;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.item-proyecto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.item-proyecto:hover {
    transform: translateY(-5px);
}

.item-proyecto img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
}

.info-proyecto {
    padding: 15px;
    background: #085296;
    color: white;
    text-align: center;
}

.info-proyecto h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

/* =========================================
   5. PÁGINA DE CONTACTO
   ========================================= */
.bloque-formulario-full {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    border-top: 5px solid #085296;
}

.formulario-horizontal .fila-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .formulario-horizontal .fila-inputs {
        flex-direction: column;
    }
}

.grupo-input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grupo-input label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.grupo-input input, 
.grupo-input textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
    background-color: #fafafa;
}

.grupo-input input:focus, 
.grupo-input textarea:focus {
    border-color: #085296;
    background-color: white;
    outline: none;
}

.btn-enviar {
    background-color: #085296;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
}

.btn-enviar:hover {
    background-color: #064075;
}

.boton-container {
    text-align: right;
    margin-top: 20px;
}

.bloque-info-mapa {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .bloque-info-mapa {
        flex-direction: column;
    }
}

.info-panel {
    flex: 1;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #085296;
}

.dato-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.dato-item .icono {
    font-size: 24px;
    margin-right: 15px;
}

.mapa-panel {
    flex: 1;
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.marco-mapa img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s;
}

.marco-mapa img:hover {
    opacity: 0.9;
}

/* =========================================
   6. PÁGINA QUIENES SOMOS (Timeline y Valores)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #085296;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid #00c0ff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after { left: -10px; }

.timeline-date {
    font-weight: bold;
    color: #085296;
    margin-bottom: 5px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.valores-seccion {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.contenedor-valores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.valor-card {
    background: #fcfcfc;
    border-radius: 15px;
    padding: 35px 25px;
    width: 300px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.valor-card:hover {
    background: #f0f4f8;
    border-color: #085296;
    transform: scale(1.03);
}

.valor-icono { font-size: 45px; margin-bottom: 20px; }
.valor-card h3 { color: #085296; font-size: 1.3em; margin-bottom: 15px; font-weight: bold; }

/* =========================================
   7. PIE DE PÁGINA (FOOTER)
   ========================================= */
.main-footer {
    background: #222;
    color: #bbb;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 14px;
}

.main-footer p { margin: 5px 0; }

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    color: #bbb;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover { transform: scale(1.2); }
.facebook:hover { color: #3b5998; }
.instagram:hover { color: #e1306c; }
.linkedin:hover { color: #0077b5; }

/* =========================================
   8. ESTILOS DEL MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content { transform: scale(1); }

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
    line-height: 1;
}

.close-btn:hover { transform: scale(1.2) rotate(90deg); }

.modal-body { display: flex; flex-direction: column; }
.modal-body img { width: 100%; height: 300px; object-fit: cover; }
.modal-text { padding: 30px; }

@media (min-width: 768px) {
    .modal-body { flex-direction: row; }
    .modal-body img { width: 50%; height: auto; min-height: 350px; }
    .modal-text { width: 50%; display: flex; flex-direction: column; justify-content: center; }
}

.modal-body-division {
    display: flex;
    flex-direction: column;
    padding: 40px;
    text-align: left;
}

.modal-icono-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f8;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto; 
}

@media (min-width: 768px) {
    .modal-body-division {
        flex-direction: row;
        align-items: center;
        gap: 40px;
    }
    .modal-icono-container {
        margin: 0; 
        flex-shrink: 0; 
    }
}

/* =========================================
   9. ESTILOS PLANIFICACIÓN ESTRATÉGICA
   ========================================= */
.planificacion-seccion {
    padding: 60px 20px;
    background-color: #f8f9fa; 
    text-align: center;
}

.contenedor-estrategia {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 30px auto;
}

.card-estrategia {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-top: 5px solid #085296;
    transition: transform 0.3s ease;
}

.card-estrategia:hover { transform: translateY(-5px); }

.card-estrategia h3 {
    color: #085296;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.card-estrategia p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.icono-estrategia { font-size: 50px; margin-bottom: 15px; display: block; }

/* =========================================
   10. ESTILOS MENSAJE CORPORATIVO
   ========================================= */
.mensaje-corporativo {
    max-width: 950px;
    margin: 80px auto 20px auto; 
    padding: 0 20px;
}

.titulo-mensaje {
    color: #085296;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.texto-mensaje {
    font-size: 1.2em;
    line-height: 1.8;
    color: #222;       
    text-align: justify; 
    font-weight: bold;   
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .texto-mensaje {
        text-align: left; 
        font-size: 1.1em;
    }
}

/* =========================================
   11. AJUSTE PARA POP-UPS SUTILES (NUEVO)
   ========================================= */

/* Elimina el velo blanco pesado detrás del pop-up */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.05) !important; /* Casi invisible */
    backdrop-filter: blur(2px); /* Ligero desenfoque elegante */
}

/* Estética de la burbuja Toast */
.swal2-popup.swal2-toast {
    box-shadow: 0 5px 15px rgba(8, 82, 150, 0.15) !important;
    border-left: 5px solid #085296 !important; /* Identidad Enerfour */
    background: rgba(255, 255, 255, 0.98) !important;
}