/* Variables de Colores */
:root {
    --color-verde-oscuro: #51A73E;
    --color-verde-claro: #A3D369;
    --color-azul-oscuro: #0033A0;
    --color-azul-medio: #007bff;
    --color-naranja: #F89B33;
    --color-blanco: #fff;
    --color-negro: #333;
}

/* Reset Básico y Tipografía Poppins */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    /* La fuente se carga con un <link> en index.php */
    font-family: 'Poppins', sans-serif;
    color: var(--color-negro);
    line-height: 1.6;
}

/* Utilitarios */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.bg-azul { background-color: var(--color-azul-oscuro); }
.bg-verde { background-color: var(--color-verde-oscuro); }
.color-blanco { color: var(--color-blanco); }
.color-verde { color: var(--color-verde-oscuro); }
.separator { 
    width: 50px; 
    height: 3px; 
    background: var(--color-verde-oscuro); 
    margin: 10px 0; 
}
.mensaje-exito { 
    color: white; 
    background: #4CAF50; 
    padding: 10px; 
    border-radius: 4px; 
}
.mensaje-error { 
    color: white; 
    background: #f44336; 
    padding: 10px; 
    border-radius: 4px; 
}

/* ------------------ CABECERA (Header) ------------------ */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #ffffff;
    padding: 15px 20%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    display: flex;
    justify-content: space-between; /* Logo a la izquierda, menú a la derecha */
    align-items: center;
    
    padding-left: 15%;
    padding-right: 15%;
}

header .logo img {
    height: 80px; 
}
header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--color-negro);
    font-weight: 400;
    font-size: 0.9em;
}
header nav a:hover {
    color: var(--color-verde-oscuro);
}

/* ------------------ BANNER/SLIDER ------------------ */
.banner-slider {
    position: relative;
    height: 650px; 
    overflow: hidden;
}
/* Estilos para el slider automático (controlado por script.js) */
.banner-slider .slide-image {
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición de 1 segundo para el fundido */
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-slider .slide-image.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    padding-bottom: 50px;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 10; /* Asegura que los botones estén sobre las imágenes */
}
.slider-buttons a {
    text-decoration: none;
    color: var(--color-blanco);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}
.slider-buttons a:hover {
    background: var(--color-verde-oscuro);
}
.banner-msg {
    background: var(--color-azul-oscuro);
    color: var(--color-blanco);
    padding: 15px 0;
    text-align: center;
    font-size: 0.9em;
}

/* Fondo azul igual al banner-msg */
.mini-tabs-section {
    background: var(--color-azul-oscuro);
    padding: 40px 20px;
    color: white;
    text-align: center;
}

/* Botones */
.mini-tabs {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-bottom: 25px;
}

.mini-tab-btn {
    background: none;        /* Sin fondo */
    border: none;            /* Sin bordes */
    padding: 12px 65px;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    color: white;            /* Texto blanco cuando NO está activo */
    border-radius: 0;        /* Sin radios porque no hay fondo */
    transition: 0.3s;
    position: relative;      /* Para la línea debajo */
}

/* Línea debajo y estilo activo */
.mini-tab-btn.active {
    color: #ffd700; /* Amarillo */
}

.mini-tab-btn.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #ffd700; /* Línea amarilla */
    bottom: 0;
    left: 0;
}

/* Contenido */
.mini-tab-content {
    display: none;
    max-width: 1200px;
    margin: auto;
    font-size: 20px;
}

.mini-tab-content.active {
    display: block;
}

/* ------------------ SECCIÓN VALORES ------------------ */
.section-valores {
    padding: 60px 0;
    position: relative;
}
/* Hoja de decoración */
.hoja {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--color-naranja); 
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);
    opacity: 0.7;
    transform: rotate(-10deg);
}
.hoja.top-left { top: 20px; left: 10%; transform: rotate(-50deg); }
.hoja.bottom-right { bottom: 20px; right: 10%; transform: rotate(140deg); }

.valores-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
}
.valor-item {
    text-align: center;
    padding: 20px;
    width: 18%;
    min-width: 150px;
}
.valor-item h4 {
    font-weight: 600;
    color: var(--color-negro);
}
.valor-item p {
    font-size: 0.9em;
    color: #666;
}

/* ------------------ SECCIÓN QUIÉNES SOMOS ------------------ */

/* --- TABS FUNCIONANDO CORRECTAMENTE --- */

/* Oculta todos los contenidos de pestañas */
.tab-content {
    display: none !important;
    opacity: 0;
    transition: opacity .25s ease;
}

/* Muestra SOLO el contenido activo */
.tab-content.active {
    display: block !important;
    opacity: 1;
}

.tabs-quienes {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 10px 18px;
    border: 1px solid #0a472e;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.tab-btn.active {
    background: #0a472e;
    color: #fff;
}

.quienes-flex {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-top: 20px;
}

.quienes-flex .foto img {
    width: 260px;
    border-radius: 10px;
    object-fit: cover;
}

.nombre {
    font-size: 1.2em;
    font-weight: 700;
}





/* ------------------ SECCIÓN CLIENTES ------------------ */
.section-clientes {
    padding: 60px 0;
}
.clientes-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}
.cliente-logo {
    flex-basis: 15%;
    max-width: 120px;
    padding: 10px;
}
.cliente-logo img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}
.cliente-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
}


/* ------------------ SECCIÓN AREAS ------------------ */
.section-areas {
    padding: 0;
}

.areas-grid-12 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 200px);
    width: 100%;
}

.area-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1em;
}

.area-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.icon-svg {
    width: 140px;
    height: 1400px;
}

/* ----------------- FILA 1 ----------------- */
.box1 { background-color: #2c7fde; }   /* azul claro */
.box2 { background-color: #171689; }   /* azul oscuro */
.box3 { background-color: #108242; }   /* verde oscuro */
.box4 { background-color: #40ac35; }   /* verde claro */
.box5 { background-color: #fd9e31; }   /* naranja */
.box6 { background-color: #f8bd4a; }   /* amarillo */

/* ----------------- FILA 2 ----------------- */
.box7.img-pescador {
    background-size: cover;
    background-position: center;
}

.box8 { background-color: #ffffff; }

.box9 { background-color: #fd9e31; } /* naranja */

.box10.img-gaviota {
    background-size: cover;
    background-position: center;
}

.box11 { background-color: #ffffff; }

.box12.img-camaron {
    background-size: cover;
    background-position: center;
}


/* ------------------ SECCIÓN CONTACTO ------------------ */
.section-contacto {
    background-color: var(--color-verde-oscuro);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.form-contacto {
    max-width: 600px;
    margin: 0 auto;
}
.form-contacto input[type="text"],
.form-contacto input[type="email"],
.form-contacto textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid var(--color-blanco);
    background: transparent;
    color: var(--color-blanco);
    font-size: 1em;
    outline: none;
}
.form-contacto textarea {
    min-height: 150px;
    resize: vertical;
    border: 1px solid var(--color-blanco);
    border-radius: 4px;
}
.form-contacto ::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.form-contacto button {
    background-color: var(--color-azul-oscuro);
    color: var(--color-blanco);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}
.form-contacto button:hover {
    background-color: #002277;
}

/* Hojas de Contacto */
.hoja-contacto {
    position: absolute;
    width: 70px;
    height: 70px;
    background: var(--color-naranja);
    opacity: 0.8;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0% 100%);
}
.hoja-contacto.top-right { top: 10%; right: 5%; transform: rotate(100deg); }
.hoja-contacto.bottom-left { bottom: 10%; left: 5%; transform: rotate(-50deg); }

/* ------------------ PIE DE PÁGINA (Footer) ------------------ */
footer {
    background-color: var(--color-azul-oscuro);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 0;
    font-size: 0.8em;
    text-align: center;
}

/* ------------------ RESPONSIVE (Móviles) ------------------ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 5%;
    }
    header nav a {
        margin: 0 10px;
        font-size: 0.8em;
    }
    .banner-slider {
        height: 300px;
    }
    .valores-grid {
        flex-direction: column;
        align-items: center;
    }
    .valor-item {
        width: 100%;
        margin-bottom: 20px;
    }
    .quienes-flex {
        flex-direction: column;
        text-align: center;
    }
    .quienes-flex .foto {
        margin-bottom: 20px;
    }
    .servicios-content {
        flex-direction: column;
    }
    .areas-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 150px);
    }
}


.servicios-content {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Mitad izquierda */
.servicios-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px; /* separación entre items */
}

/* Items */
.servicio-item {
    padding: 50px;
    border-radius: 0; /* sin bordes redondeados */
    color: #ffffff;
    font-weight: 600;
    text-align: left; /* alineado al borde izquierdo */
    width: 100%;
}

/* Colores */
.item-1 { background-color: #febe4b; }
.item-2 { background-color: #43ad35; }
.item-3 { background-color: #03168a; }

/* Mitad derecha */
.servicios-right {
    width: 50%;
}

.servicios-right img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* que llene toda la mitad derecha */
    border-radius: 0; /* sin bordes redondeados */
}

/* para mail envio */
.mensaje-exito {
    background: #d4f8da;
    color: #0a7a20;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: bold;
}

.mensaje-error {
    background: #ffd6d6;
    color: #a30000;
    padding: 12px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: bold;
}