﻿/* =====================================================
   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;
}

/* ===== MODO OSCURO ===== */
body.modo-oscuro {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

    body.modo-oscuro h2,
    body.modo-oscuro h3,
    body.modo-oscuro h4,
    body.modo-oscuro .titulo-principal,
    body.modo-oscuro .titulo-seccion,
    body.modo-oscuro .titulo-tarjeta {
        color: #ffffff;
    }

    body.modo-oscuro .tarjeta-servicio {
        background-color: #2a2a2a;
        border-color: #444444;
    }

        body.modo-oscuro .tarjeta-servicio:hover {
            background-color: #333333;
            border-color: #FFB900;
        }

    body.modo-oscuro .contenido-tarjeta,
    body.modo-oscuro .contenido-tarjeta li {
        color: #e0e0e0;
    }

    body.modo-oscuro .caja-ubicacion,
    body.modo-oscuro .formulario-contacto {
        border-color: #444444;
        background-color: #2a2a2a;
    }

    body.modo-oscuro .campo-formulario input,
    body.modo-oscuro .campo-formulario select,
    body.modo-oscuro .campo-formulario textarea {
        background-color: #333333;
        border-color: #555555;
        color: #ffffff;
    }

    body.modo-oscuro .sub-pestaña-quienes {
        color: #999999;
    }

        body.modo-oscuro .sub-pestaña-quienes.activa-sub {
            color: #ffffff;
        }

    body.modo-oscuro .lista-ventajas li,
    body.modo-oscuro li {
        border-bottom-color: #333333;
    }

/* ===== CABECERA ===== */
.cabecera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 2rem;
    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: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pestaña {
    background: transparent;
    border: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #555555;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

body.modo-oscuro .pestaña {
    color: #cccccc;
}

    body.modo-oscuro .pestaña.activa,
    body.modo-oscuro .pestaña:hover {
        color: #ffffff;
    }

.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: 3rem auto;
    padding: 0;
}

/* ===== SECCIONES — MOSTRAR/OCULTAR ===== */
.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: 2.8rem;
    color: #555555;
    font-weight: 600;
    margin-bottom: 2.5rem;
    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.2rem;
    color: #555555;
    max-width: 950px;
    margin: 2rem auto;
    line-height: 1.8;
}

body.modo-oscuro .descripcion {
    color: #d0d0d0;
}

/* ===== CARRUSEL DE IMÁGENES EN INICIO ===== */
.contenedor-carrusel-inicio {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 380px;
    margin: 2rem 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: cover;
        object-position: center;
    }

/* ===== TÍTULOS GENERALES ===== */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #555555;
    margin-bottom: 2rem;
    padding-bottom: 0.7rem;
    border-bottom: 3px solid #FFB900;
    text-align: center;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #555555;
    margin: 2rem 0 1rem;
}

h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    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: 1rem;
}

    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.2rem;
    color: #555555;
    margin-bottom: 2.5rem;
    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: center;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.tarjeta-servicio {
    flex: 1 1 42%;
    min-width: 280px;
    background-color: #FFFFFF;
    border: 2px solid #9A9A9A;
    border-radius: 10px;
    padding: 1.2rem;
    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;
        box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    }

.titulo-tarjeta {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #000000;
    text-align: center;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #9A9A9A;
}

.contenido-tarjeta {
    color: #000000;
    line-height: 1.6;
    text-align: left;
}

    .contenido-tarjeta li {
        padding: 0.3rem 0;
        border-bottom: 1px solid #E8E8E8;
        font-size: 0.95rem;
        color: #000000;
    }

        .contenido-tarjeta li::before {
            content: "✓ ";
            color: #777777;
            font-weight: bold;
            margin-right: 0.4rem;
        }

/* ===== MISIÓN EN SECCIÓN QUIENES SOMOS ===== */
.texto-mision-quienes {
    max-width: 950px;
    margin: 2.5rem auto;
    text-align: left;
    color: #000000;
    padding: 2rem;
    border-left: 4px solid #FFB900;
}

    .texto-mision-quienes h3 {
        color: #000000;
        margin-bottom: 1rem;
        font-size: 1.8rem;
        font-weight: 700;
        margin-top: 0;
    }

    .texto-mision-quienes p {
        color: #000000;
        font-size: 1.2rem;
        line-height: 1.7;
    }

body.modo-oscuro .texto-mision-quienes {
    color: #e0e0e0;
}

    body.modo-oscuro .texto-mision-quienes h3,
    body.modo-oscuro .texto-mision-quienes p {
        color: #e0e0e0;
    }

/* ===== BOTONES INTERNOS — QUIENES SOMOS ===== */
.contenedor-subpestañas {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 2.5rem 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.25rem;
        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;
    }

/* ===== NUESTROS CLIENTES ===== */
.contenedor-logos-clientes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-cliente {
    height: 120px;
    padding: 1rem;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

body.modo-oscuro .logo-cliente {
    background: #2a2a2a;
    border-color: #444444;
}

.logo-cliente:hover {
    transform: scale(1.05);
    border-color: #FFB900;
}

.logo-cliente img {
    max-height: 90px;
    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: 2.5rem 2rem;
    background-color: #fff;
}

body.modo-oscuro .formulario-contacto {
    background-color: #2a2a2a;
}

.fila-formulario {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.campo-formulario {
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
}

    .campo-formulario.mitad {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 250px;
    }

    .campo-formulario label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: #555555;
    }

body.modo-oscuro .campo-formulario label {
    color: #e0e0e0;
}

.campo-formulario input,
.campo-formulario select,
.campo-formulario textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #9A9A9A;
    border-radius: 8px;
    font-size: 1rem;
    color: #555555;
    background-color: #fff;
    font-family: 'FuenteCuerpo', Georgia, serif;
}

    .campo-formulario input:focus,
    .campo-formulario select:focus,
    .campo-formulario textarea:focus {
        outline: none;
        border-color: #FFB900;
        box-shadow: 0 0 0 3px rgba(255, 185, 0, 0.2);
    }

.boton-enviar {
    width: 100%;
    padding: 1rem;
    background: #FFB900;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .boton-enviar:hover {
        background-color: #e6a800;
    }

/* ===== UBICACIÓN Y MAPA ===== */
.caja-ubicacion {
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    border: 2px solid #9A9A9A;
    border-radius: 12px;
    text-align: left;
    background-color: #fff;
}

body.modo-oscuro .caja-ubicacion {
    background-color: #2a2a2a;
}

.caja-ubicacion h3 {
    text-align: center;
    margin-top: 0;
}

.boton-mapa {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 1.8rem;
    background: #FFB900;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .boton-mapa:hover {
        background-color: #e6a800;
    }

.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 — BLOQUES ===== */
.bloque-servicio {
    margin-bottom: 50px;
    opacity: 1;
    transform: translateY(0);
}

.encabezado-servicio {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
    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);
}

/* ===== PIE DE PÁGINA ===== */
.pie-pagina {
    background-color: #000000;
    color: #FFFFFF;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.contenedor-pie {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.titulo-columna-pie {
    color: #FFB900;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.pie-pagina ul {
    list-style: none;
}

    .pie-pagina ul li {
        margin-bottom: 10px;
        border-bottom: none;
        padding: 0;
    }

        .pie-pagina ul li::before {
            content: '';
            margin: 0;
        }

.pie-pagina a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .pie-pagina a:hover {
        color: #FFB900;
    }

.lista-pie {
    text-align: left;
}

.franja-inferior {
    border-top: 1px solid #333333;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #888888;
    font-size: 0.9rem;
}

/* ===== BOTONES FLOTANTES ===== */
#botonSubir {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #FFB900;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

    #botonSubir.visible {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #botonSubir:hover {
        transform: scale(1.15);
    }

#botonModo {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: #FFB900;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}

    #botonModo:hover {
        transform: scale(1.15);
    }

/* ===== ICONO FLOTANTE DE WHATSAPP ===== */
.icono-flotante-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    z-index: 998;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease;
}

    .icono-flotante-whatsapp img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .icono-flotante-whatsapp:hover {
        transform: scale(1.15);
    }

/* ===== RESPONSIVO / CELULAR ===== */
@media (max-width: 768px) {
    .cabecera {
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .navegacion-pestañas {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .pestaña {
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        padding: 0.7rem;
    }

    .titulo-principal {
        font-size: 2rem;
    }

    .descripcion {
        font-size: 1.05rem;
    }

    .contenedor-carrusel-inicio {
        height: 250px;
    }

    .contenedor-logos-clientes {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .logo-cliente {
        height: 100px;
    }

    .encabezado-servicio {
        height: 200px;
    }

    .contenedor-pie {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .lista-pie {
        text-align: center;
    }

    .caja-ubicacion,
    .formulario-contacto {
        padding: 1.5rem 1rem;
    }

    /* Reubicar botones flotantes en celular */
    .icono-flotante-whatsapp {
        left: 15px;
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    #botonModo {
        left: 15px;
        bottom: 85px;
        width: 48px;
        height: 48px;
    }

    #botonSubir {
        right: 15px;
        bottom: 20px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .contenedor-logos-clientes {
        grid-template-columns: 1fr;
    }
}
