/* ==========================================================================
   VARIABLES DE COLOR (Para que sea fácil cambiar después)
   ========================================================================== */

   /* VARIABLES DE COLOR */
:root {
    --color-principal: #2A7E7A;
    --color-fondo-overlay: rgba(27, 61, 59, 0.85);
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================================================
  CONFIGURACIÓN DEL BODY Y FONDOS DE LAS SECCIONES
   ========================================================================== */

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0; 
    padding: 0;
}

.body-index {
    background: linear-gradient(rgba(27, 61, 59, 0.65), rgba(27, 61, 59, 0.65)),
                url('/source/index.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.body-nosotros {
    background: linear-gradient(rgba(27, 61, 59, 0.65), rgba(27, 61, 59, 0.65)), 
                url('/source/sobreNosotros.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.body-servicios {
    background: linear-gradient(rgba(27, 61, 59, 0.7), rgba(27, 61, 59, 0.7)), 
                url('/source/servicios.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Fondo para la página de Clientes */
.body-clientes {
    background: linear-gradient(rgba(27, 61, 59, 0.75), rgba(27, 61, 59, 0.75)), 
                url('/source/clientes.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Fondo específico para contacto si deseas cambiarlo */
.body-contacto {
    background: linear-gradient(rgba(27, 61, 59, 0.8), rgba(27, 61, 59, 0.8)), 
                url('/source/contacto.webp');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN 
   ========================================================================== */
header {
    position: fixed;
    top: 0 !important;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

.nav-wrapper {
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    padding: 0 5% !important;
    height: 90px;
    width: 100%; 
}

.main-logo {
    height: 85px;
    width: auto;
    margin-top: 5px; 
    display: block;
}

#main-menu {
    display: flex;
    list-style: none;
    margin-left: auto; 
    margin-right: 0;
    padding: 0;
}

#main-menu li {
    margin-left: 25px; 
    position: relative;
    display: flex;
    align-items: center; 
    height: 90px;
}

#main-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    text-transform: lowercase;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
    padding: 10px 5px;
    display: block;
}

#main-menu a.active::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 8px; 
    background-color: #ffffff;
    border-radius: 0 0 8px 8px; 
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    z-index: 1001;
}

#main-menu a.active {
    color: #ffffff !important;
    font-weight: bold;
}

#main-menu a:hover {
    color: var(--color-principal);
}


/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: 180px 8% 50px;
    color: var(--blanco);
    flex: 1;
}

.hero, 
.body-nosotros main, 
.body-servicios main, 
.body-clientes main, 
.body-contactomain {
    padding-top: 100px !important; 
    padding-left: 8%;
    padding-right: 8%;
    color: var(--blanco);
    flex: 1;
}

.hero h2 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: var(--blanco);
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-principal);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

footer {
    padding: 30px;
    text-align: center;
    color: white;
}

.icons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.icons-container a {
    color: white;
    font-size: 1.5rem;
}

.box-footer {
    padding: 60px 20px;
    text-align: center;
}

.icons-container a:hover {
    color: var(--color-teal);
    transform: translateY(-5px); 
}

/* ==========================================================================
   CONTENEDORES Y TARJETAS
   ========================================================================== */

.contenedor-boxes {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: stretch;
    gap: 15px; 
    margin-top: 50px;
    width: 100%;
    padding: 0 2%;
}

/* La tarjeta individual */
.cliente-box {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    flex: 1 !important; 
    min-width: 150px !important;
    padding: 20px !important;
    border-radius: 15px !important;
    
    text-align: center;
    transition: transform 0.3s ease;
}

.cliente-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* El logo del cliente dentro del cuadro */
.logo-placeholder img {
    height: 50px; 
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.cliente-box:hover .logo-placeholder img {
    filter: grayscale(0%);
}

.nombre-empresa {
    color: #ffffff; 
    font-size: 1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: bold;
}

.descripcion-empresa {
    color: #e0e0e0; 
    font-size: 0.85rem;
    line-height: 1.3;
}

.logo-placeholder-contacto i {
    font-size: 3rem;
    color: #ffffff; 
    margin-bottom: 15px;
    transition: 0.3s;
}

.contacto-box {
    text-decoration: none; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contacto-box:hover i {
    transform: scale(1.1);
    color: #008080; 
}

.nombre-contacto {
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* ==========================================================================
   COMFIGURACIÓN RESPONSIVA Y PARA CELULARES
   ========================================================================== */

@media (max-width: 768px) {
    .nav-wrapper {
        height: 70px !important; 
        padding: 0 5% !important;
    }

    .main-logo {
        height: 50px !important; 
        margin-top: 0;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .hamburger-menu span {
        width: 30px;
        height: 3px;
        background: white;
    }
    #main-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background: rgba(27, 61, 59, 0.98); 
        padding: 20px 0;
        z-index: 1000;
    }
    #main-menu.active { 
        display: flex; 
    }
    #main-menu a.active::after {
        display: none; 
    }
    #main-menu a {
        padding: 15px;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    #main-menu li {
         margin: 0;
        width: 100%;
        height: auto;
        text-align: center;
    }

    .hero, main {
        padding-top: 100px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
        text-align: center; 
    }

    .hero h2 {
        font-size: 1.5rem !important; 
    }

    
    .contenedor-boxes {
        flex-direction: column !important;
        align-items: center;
    }

    .cliente-box {
        width: 90% !important;
        margin-bottom: 15px;
    }
}


