﻿/* =====================================================
   PALETA DE COLORES
   Amarillo dorado: #FFB900
   Gris texto/títulos: #555555
   Gris caja misión: #9A9A9A
   Fondo blanco: #FFFFFF
   ===================================================== */

/* ===== FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

@font-face {
    font-family: 'FuenteCuerpo';
    src: url('fuentes/BrioniPro-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ===== RESETEO GENERAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    color: #555555;
    background-color: #FFFFFF;
    line-height: 1.7;
    font-size: 18px;
}

/* ===== SOLO EL TEXTO DEL CUERPO ===== */
p, li, .descripcion, .contenido-tarjeta,
.contenido-tarjeta li, .texto-mision-quienes p,
.campo-formulario input, .campo-formulario select,
.campo-formulario textarea {
    font-family: 'FuenteCuerpo', Georgia, serif;
}

/* ===== CABECERA ===== */
.cabecera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    padding: 2rem 4rem;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.contenedor-logo {
    display: flex;
    align-items: center;
}

.imagen-logo {
    height: 110px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===== NAVEGACIÓN POR PESTAÑAS ===== */
.navegacion-pestañas {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.pestaña {
    background: transparent;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #555555;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    position: relative;
}

    .pestaña.activa::after,
    .pestaña:hover::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #FFB900;
    }

/* ===== CONTENEDOR PRINCIPAL ===== */
.contenedor-principal {
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0;
}

.seccion-pagina {
    display: none;
}

    .seccion-pagina.visible {
        display: block;
    }

/* ===== PESTAÑA INICIO ===== */
.contenido-inicio {
    text-align: center;
}

.titulo-principal {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: #555555;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

    .titulo-principal::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 15%;
        width: 70%;
        height: 4px;
        background-color: #9A9A9A;
    }

.descripcion {
    font-size: 1.3rem;
    color: #555555;
    max-width: 950px;
    margin: 2.5rem auto;
    line-height: 1.8;
}

/* ===== CARRUSEL DE IMÁGENES EN INICIO ===== */
.contenedor-carrusel-inicio {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 380px;
    margin: 2.5rem auto 1.5rem auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.diapositiva-carrusel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

    .diapositiva-carrusel.activa-carrusel {
        opacity: 1;
    }

    .diapositiva-carrusel img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

/* ===== TÍTULOS GENERALES ===== */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #555555;
    margin-bottom: 2.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 3px solid #FFB900;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #555555;
    margin: 2.5rem 0 1.2rem;
}

h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #666666;
    margin: 1.5rem 0 0.8rem;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.2rem;
}

li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05rem;
}

    li::before {
        content: "✓ ";
        color: #FFB900;
        font-weight: bold;
        margin-right: 0.6rem;
    }

/* ===== SECCIÓN SERVICIOS ===== */
.contenido-seccion {
    text-align: center;
}

.titulo-seccion {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: #555555;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

    .titulo-seccion::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 15%;
        width: 70%;
        height: 4px;
        background-color: #9A9A9A;
    }

.contenedor-tarjetas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: 3rem;
    width: 100%;
}

.tarjeta-servicio {
    flex: 1 1 45%;
    min-width: 280px;
    background-color: #FFFFFF !important;
    border: 2px solid #9A9A9A;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    position: relative;
    transition: all 0.35s ease;
    transform: scale(1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .tarjeta-servicio:hover,
    .tarjeta-servicio.expandida {
        transform: scale(1.02);
        border-color: #555555;
        background-color: #F8F8F8 !important;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }

.titulo-tarjeta {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: #000000;
    text-align: center;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #9A9A9A;
    transition: all 0.3s ease;
}

.contenido-tarjeta {
    color: #000000;
    line-height: 1.5;
    text-align: left;
}

    .contenido-tarjeta li {
        padding: 0.2rem 0;
        border-bottom: 1px solid #E8E8E8;
        font-size: 0.88rem;
        color: #000000;
    }

        .contenido-tarjeta li::before {
            content: "✓ ";
            color: #777777;
            font-weight: bold;
            margin-right: 0.35rem;
        }

/* ===== MISIÓN EN SECCIÓN QUIENES SOMOS ===== */
.texto-mision-quienes {
    max-width: 950px;
    margin: 3rem auto;
    text-align: left;
    color: #000000;
    padding: 2rem;
    border-left: 4px solid #FFB900;
}

    .texto-mision-quienes h3 {
        color: #000000;
        margin-bottom: 1rem;
        font-size: 2rem;
        font-weight: 700;
        margin-top: 0;
    }

    .texto-mision-quienes p {
        color: #000000;
        font-size: 1.3rem;
        line-height: 1.6;
    }

/* ===== BOTONES INTERNOS — QUIENES SOMOS ===== */
.contenedor-subpestañas {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem 0;
    flex-wrap: wrap;
}

.sub-pestaña-quienes {
    background: transparent;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #9A9A9A;
    padding: 0.6rem 1rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

    .sub-pestaña-quienes.activa-sub {
        color: #555555;
        font-weight: 600;
    }

    .sub-pestaña-quienes::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .sub-pestaña-quienes.activa-sub::after,
    .sub-pestaña-quienes:hover::after {
        background-color: #FFB900;
    }

/* ===== CONTENIDO QUE CAMBIA ===== */
.sub-contenido-quienes {
    display: none;
}

    .sub-contenido-quienes.visible-sub {
        display: block;
    }

/* ===== VENTAJAS COMPETITIVAS ===== */
.contenedor-ventajas {
    max-width: 950px;
    margin: 0 auto 3rem auto;
    text-align: left;
    padding: 0 1rem;
}

    .contenedor-ventajas h4 {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        color: #555555;
        margin: 2rem 0 0.8rem 0;
        padding-bottom: 0.3rem;
        border-bottom: 2px solid #FFB900;
        display: inline-block;
    }

.lista-ventajas li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    line-height: 1.6;
}

    .lista-ventajas li::before {
        content: "✓ ";
        color: #FFB900;
        font-weight: bold;
        margin-right: 0.6rem;
    }

/* ===== NUBE FLOTANTE ===== */
.nube-flotante {
    position: fixed;
    top: 100px;
    right: 25px;
    max-width: 340px;
    background-color: #FFFFFF;
    border: 2px solid #9A9A9A;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 100;
    transition: all 0.4s ease;
}

    .nube-flotante.minimizada {
        transform: translateX(110%);
        opacity: 0;
        pointer-events: none;
    }

#texto-nube {
    font-size: 0.95rem;
    color: #333333;
    line-height: 1.5;
    display: block;
}

.btn-minimizar {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #9A9A9A;
    cursor: pointer;
}

/* ===== BOTÓN SUBIR ARRIBA ===== */
#botonSubir {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FFB900;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    #botonSubir.visible {
        opacity: 1;
        visibility: visible;
    }

/* ===== BOTÓN MODO OSCURO ===== */
#botonModo {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #FFB900;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MODO OSCURO ===== */
body.modo-oscuro {
    background-color: #121212;
    filter: invert(1) hue-rotate(180deg);
}

    body.modo-oscuro img,
    body.modo-oscuro .imagen-logo {
        filter: invert(1) hue-rotate(180deg);
    }

/* ===== NUESTROS CLIENTES ===== */
.contenedor-logos-clientes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-cliente {
    height: 140px;
    padding: 1rem;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 100%;
}

    .logo-cliente img {
        max-height: 100px;
        max-width: 90%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }

/* ===== CONTACTO — FORMULARIO ===== */
.formulario-contacto {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #9A9A9A;
    border-radius: 12px;
    padding: 3rem 2.5rem;
}

.campo-formulario {
    margin-bottom: 1.5rem;
}

    .campo-formulario label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .campo-formulario input,
    .campo-formulario select,
    .campo-formulario textarea {
        width: 100%;
        padding: 0.9rem;
        border: 2px solid #9A9A9A;
        border-radius: 6px;
    }

.boton-enviar {
    width: 100%;
    padding: 1rem;
    background: #FFB900;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ===== UBICACIÓN Y MAPA ===== */
.caja-ubicacion {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    border: 2px solid #9A9A9A;
    border-radius: 12px;
}

.boton-mapa {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: #FFB900;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.contenedor-mapa {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #9A9A9A;
}

    .contenedor-mapa iframe {
        display: block;
        width: 100%;
    }

/* ===== SECCIÓN SERVICIOS — ANIMACIONES ===== */
.bloque-servicio {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

    .bloque-servicio.visible-bloque {
        opacity: 1;
        transform: translateY(0);
    }

.encabezado-servicio {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.imagen-portada-servicio {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease-in-out;
}

.encabezado-servicio:hover .imagen-portada-servicio,
.encabezado-servicio.activo-animacion .imagen-portada-servicio {
    transform: scale(1.15);
}

.overlay-texto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.55), transparent 70%);
    display: flex;
    align-items: center;
    padding-left: 60px;
}

.titulo-bloque {
    font-size: 3rem;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-25px);
    transition: all 0.8s ease-out 0.3s;
}

.bloque-servicio.visible-bloque .titulo-bloque {
    opacity: 1;
    transform: translateX(0);
}

.contenido-servicio {
    padding: 0 20px;
}

/* ===== PIE DE PÁGINA ===== */
.pie-pagina {
    background-color: #555555;
    color: #FFFFFF;
    padding: 45px 25px 25px;
    margin-top: 60px;
}

.contenedor-pie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-columna-pie {
    color: #FFB900;
    font-size: 1.15rem;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #9A9A9A;
    display: inline-block;
}

.lista-pie {
    list-style: none;
}

    .lista-pie li {
        margin-bottom: 12px;
        font-size: 0.98rem;
        border-bottom: none;
        padding: 0;
    }

.enlace-seccion-pie {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .enlace-seccion-pie:hover {
        color: #FFB900;
    }

.enlace-red {
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

    .enlace-red:hover {
        color: #FFB900;
    }

.icono-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #FFB900;
    color: #FFFFFF;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.franja-inferior {
    border-top: 1px solid #9A9A9A;
    margin-top: 35px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== RESPONSIVIDAD ===== */
@media (max-width: 900px) {
    .cabecera {
        flex-direction: column;
        gap: 2rem;
    }

    .contenedor-tarjetas {
        flex-direction: column;
    }

    .contenedor-logos-clientes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navegacion-pestañas {
        flex-direction: column;
        gap: 0.8rem;
    }

    .pestaña {
        width: 100%;
        text-align: center;
    }

    .contenedor-logos-clientes {
        grid-template-columns: 1fr;
    }

    .encabezado-servicio {
        height: 220px;
    }

    .overlay-texto {
        padding-left: 25px;
    }

    .titulo-bloque {
        font-size: 1.8rem;
    }

    .contenedor-pie {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
}
