/* ==========================================================================
   VARIABLES CORPORATIVAS Y GENERALES
   ========================================================================== */
:root {
    --primary-color: #037536;     /* Verde institucional Jotam */
    --accent-color: #d32f2f;      /* Rojo industrial para llamados a la acción */
    --dark-bg: #0f172a;           /* Gris pizarra oscuro profesional */
    --light-bg: #f8fafc;          /* Fondo suave de fondo */
    --text-color: #334155;        /* Color de texto optimizado para lectura */
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

p {
    margin-bottom: 15px;
}

/* ESTRUCTURAS DE CONTENEDORES (FLEXBOX) */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.container-fluid {
    width: 100%;
    padding: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.columna {
    padding: 15px;
}

.columna-25 { width: 25%; }
.columna-33 { width: 33.333%; }
.columna-41 { width: 41.666%; }

.empujar-58 { margin-left: 58.333%; }

.seccion {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* ==========================================================================
   HEADER Y LOGO
   ========================================================================== */
header {
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .logo {
    width: 140px;
    height: auto;
    display: block;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    padding: 8px 16px;
    color: #ffffff;
    margin: 0 4px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

header .hamb {
    display: none;
    font-size: 24px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   SECCIÓN INICIO (HERO SCREEN)
   ========================================================================== */
#inicio {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 68px;
}

#inicio img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.40);
}

#inicio .bloque-inicio {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    text-align: center;
    z-index: 5;
}

#inicio .bloque-inicio h1 {
    color: #ffffff;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.datetime-container {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 25px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 30px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#inicio .bloque-inicio p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 4px;
}

#reloj {
    color: #38bdf8;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

/* ==========================================================================
   SECCIÓN NOSOTROS Y DATOS INTERNOS
   ========================================================================== */
#nosotros {
    background: linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.97)), url(img/h1.jpg);
    background-size: cover;
    background-position: center;
}

#nosotros h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 34px;
    margin-bottom: 30px;
    font-weight: 700;
}

#nosotros p {
    color: #475569;
    text-align: center;
    font-size: 16px;
    max-width: 850px;
    margin: 0 auto 20px auto;
    line-height: 1.7;
}

.datos-empresa {
    margin-top: 45px;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.datos-empresa h3 {
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 400;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

.datos-empresa h3:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.datos-empresa h3 strong {
    color: var(--primary-color);
    font-weight: 700;
    display: inline-block;
    width: 170px;
}

/* ==========================================================================
   SLIDER AUTOMÁTICO REVISADO
   ========================================================================== */
.slider-section {
    background-color: var(--light-bg);
    padding: 40px 0;
}

.slider {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.slider ul {
    display: flex;
    padding: 0;
    width: 400%;
    animation: cambio 16s infinite ease-in-out;
}

.slider li {
    list-style: none;
    width: 100%;
}

.slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

@keyframes cambio {
    0% { margin-left: 0; }
    20% { margin-left: 0; }
    25% { margin-left: -100%; }
    45% { margin-left: -100%; }
    50% { margin-left: -200%; }
    70% { margin-left: -200%; }
    75% { margin-left: -300%; }
    100% { margin-left: -300%; }
}

/* ==========================================================================
   SECCIÓN SERVICIOS (TARJETAS)
   ========================================================================== */
#servicios {
    background-color: var(--light-bg);
}

#servicios .bloque-servicio {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#servicios .bloque-servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

#servicios .bloque-img-servicio.cuadrado-perfecto {
    padding-bottom: 60%; 
}

#servicios .bloque-contenido-servicio {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#servicios .bloque-contenido-servicio h3 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
}

#servicios .bloque-contenido-servicio p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ==========================================================================
   SECCIÓN GALERÍA
   ========================================================================== */
#galeria {
    background-color: #1e293b;
    padding: 30px 15px;
}

.cuadrado-perfecto {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.cuadrado-perfecto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.hov-gal img {
    filter: brightness(0.5) grayscale(0.2);
}

.hov-gal h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    width: 90%;
    text-align: center;
    z-index: 2;
    transition: var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hov-gal:hover img {
    filter: brightness(0.85) grayscale(0);
    transform: scale(1.05);
}

.hov-gal:hover h4 {
    opacity: 0;
}

/* ==========================================================================
   FORMULARIO INTEGRADO EN MAPA
   ========================================================================== */
#contactenos {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
}

#contactenos iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#contactenos form {
    padding: 35px;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 4px solid var(--primary-color);
    position: relative;
    z-index: 10;
}

#contactenos form .form-block {
    width: 100%;
    margin-bottom: 16px;
}

#contactenos form .form-block .form-control,
#contactenos form .form-block textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

#contactenos form .form-block textarea {
    height: 100px;
    resize: none;
}

#contactenos form .form-block .form-control:focus,
#contactenos form .form-block textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 117, 54, 0.15);
}

.msg-success { color: #16a34a; font-weight: bold; margin-top: 10px; font-size: 13px;}
.msg-error { color: #dc2626; font-weight: bold; margin-top: 10px; font-size: 13px;}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.boton {
    padding: 11px 28px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    text-align: center;
}

.boton.boton-rojo {
    background-color: var(--accent-color);
    color: #ffffff;
}

.boton.boton-rojo:hover {
    background-color: #b91c1c;
}

.boton.boton-blanco {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: auto;
}

.boton.boton-blanco:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.boton.boton-negro {
    background-color: var(--dark-bg);
    color: #ffffff;
    width: 100%;
}

.boton.boton-negro:hover {
    background-color: var(--primary-color);
}

/* ==========================================================================
   WHATSAPP BOTÓN FLOTANTE
   ========================================================================== */
.float {
    position: fixed;
    width: 54px;
    height: 54px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float:hover {
    background-color: #1ea951;
    transform: scale(1.08);
    color: #fff;
}

/* ==========================================================================
   FOOTER PREMIUM INDUSTRIAL
   ========================================================================== */
footer {
    background-color: var(--dark-bg);
    color: #94a3b8;
    padding-top: 60px;
}

footer h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

footer .logo-footer {
    width: 130px;
    height: auto;
    background: #fff;
    padding: 3px;
    border-radius: 4px;
}

footer .footer-links {
    list-style: none;
}

footer .footer-links li {
    margin-bottom: 12px;
    font-size: 14px;
}

footer .footer-links li i {
    margin-right: 6px;
    font-size: 12px;
}

footer .footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

footer .redes {
    display: flex;
    gap: 10px;
    list-style: none;
}

footer .redes a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 16px;
}

footer .redes a:hover {
    background-color: var(--primary-color);
}

footer .barra-footer {
    background-color: #020617;
    color: #475569;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    margin-top: 55px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* ==========================================================================
   RESPONSIVE DESIGN AUTOMÁTICO (CELULARES Y TABLETS)
   ========================================================================== */
@media(max-width: 991px) {
    .columna-33 { width: 50%; }
    .columna-25 { width: 50%; }
}

@media(max-width: 767px) {
    .seccion { padding-top: 50px; padding-bottom: 50px; }

    .columna-25, .columna-33, .columna-41 {
        width: 100% !important;
    }

    .empujar-58 { margin-left: 0; }

    /* Menú Desplegable Moderno Lateral */
    header .container nav {
        position: fixed;
        width: 280px;
        height: 100vh;
        background-color: var(--dark-bg);
        padding: 80px 20px;
        top: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        transform: translateX(100%);
        box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    }

    header .container nav.open {
        transform: translateX(0);
    }

    header .container nav a {
        font-size: 18px;
        color: #ffffff;
        padding: 10px;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    header .container .hamb {
        display: block;
    }

    #inicio { height: 60vh; }
    #inicio .bloque-inicio h1 { font-size: 32px; }

    .slider img { height: 250px; }
    .datos-empresa h3 strong { width: 100%; margin-bottom: 2px; }

    /* Ajuste de Contacto en Dispositivo Móvil */
    #contactenos {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    #contactenos iframe {
        position: relative;
        height: 250px;
        width: 100%;
    }

    #contactenos form {
        padding: 25px 15px;
        border-radius: 0;
        box-shadow: none;
        background-color: #ffffff;
        width: 100%;
    }
}
/* ==========================================================================
   SECCIÓN INDEPENDIENTE: UBICACIÓN (MAPA)
   ========================================================================== */
.seccion-mapa {
    padding-top: 80px;
    background-color: var(--light-bg);
}

.seccion-mapa h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 34px;
    margin-bottom: 30px;
    font-weight: 700;
}

.mapa-completo-contenedor {
    width: 100%;
    height: 400px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.03);
}

.mapa-completo-contenedor iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   SECCIÓN INDEPENDIENTE: CONTÁCTENOS (FORMULARIO)
   ========================================================================== */
#contactenos h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 34px;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitulo-seccion {
    text-align: center;
    color: #64748b;
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.form-contacto-independiente {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
}

/* Distribución interna del Formulario */
.form-grid {
    display: flex;
    gap: 25px;
    margin-bottom: 4px;
}

.form-grid .form-block {
    flex: 1;
}

.form-contacto-independiente .form-block {
    margin-bottom: 20px;
}

.form-contacto-independiente label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-contacto-independiente .form-control,
.form-contacto-independiente textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #f8fafc;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-contacto-independiente textarea {
    height: 150px;
    resize: none;
}

/* Efectos de enfoque */
.form-contacto-independiente .form-control:focus,
.form-contacto-independiente textarea:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(3, 117, 54, 0.1);
}

/* Botón centrado y estilizado */
.form-contacto-independiente .bloque-ultimo {
    text-align: center;
    margin-bottom: 0;
    margin-top: 10px;
}

.form-contacto-independiente .boton-negro {
    max-width: 280px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 35px;
}

.msg-success { color: #16a34a; font-weight: bold; margin-top: 20px; text-align: center; font-size: 14px; }
.msg-error { color: #dc2626; font-weight: bold; margin-top: 20px; text-align: center; font-size: 14px; }

/* ==========================================================================
   RESPONSIVE PARA LAS NUEVAS SECCIONES
   ========================================================================== */
@media(max-width: 767px) {
    .seccion-mapa { padding-top: 50px; }
    .mapa-completo-contenedor { height: 300px; }
    
    .subtitulo-seccion { margin-bottom: 25px; }
    
    .form-grid {
        flex-direction: column;
        gap: 0;
    }
    
    .form-contacto-independiente {
        padding: 25px 20px;
    }
    
    .form-contacto-independiente .boton-negro {
        max-width: 100%;
        width: 100%;
    }
}
/* ==========================================================================
   whasapp
   ========================================================================== */
.float {
        position: fixed;
        width: 60px;
        height: 60px;
        bottom: 40px;
        right: 40px;
        background-color: #25d366;
        color: #fff;
        border-radius: 50px;
        text-align: center;
        font-size: 30px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease-in-out;
    }

    /* Efecto al pasar el mouse por encima */
    .float:hover {
        background-color: #20ba5a;
        transform: scale(1.1); /* Se agranda un 10% sutilmente */
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.4);
        color: #fff;
    }

    /* Icono perfectamente centrado */
    .my-float {
        display: inline-block;
        line-height: 0;
    }

    /* Animación de pulso (Onda expansiva suave) */
    .float::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: #25d366;
        opacity: 0.7;
        z-index: -1;
        animation: pulse-whatsapp 2s infinite;
    }

    @keyframes pulse-whatsapp {
        0% {
            transform: scale(1);
            opacity: 0.7;
        }
        100% {
            transform: scale(1.4);
            opacity: 0;
        }
    }