/* ------------------ BODY ----------------*/
:root {
    --morado: #1B007C;
    --verde: #4CAF50;
    --blanco: #FFFFFF;
    --font-lg: 3rem;
    --font-md: 1.5rem;
    --font-sm: 1rem;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-image: url('../assets/background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover, 200px;
    background-attachment: fixed;
    position: relative;
    color: white;
}

/* ✅ Capa oscura encima del fondo PERO debajo del contenido */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* ----------------------- TÍTULO ----------------------*/

.hero-titulo-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0rem auto;
    width: fit-content;
}

.logo-imagen {
    height: 400px;
    width: auto;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
    padding-inline-start: 0cap;
}


/* ----------------------- NAVBAR ---------------------- */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    text-align: center;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    font-size: 22px;
    align-items: center;
    margin-top: 1rem;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #4CAF50;
}

.nav-item.active {
    background-color: green;
    color: white;
    font-weight: 700;
}

/* ------------------- INICIO ------------------ */

.hero {
    position: relative;
    background-size: cover;
    color: white;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centra el contenedor */
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.hero-texto-imagen {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    /* 👈 Centra ambos bloques cuando hay espacio */
}

.bloque-texto {
    flex: 1 1 400px;
    max-width: 800px;
}

.bloque-imagen {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.titulo-destacado {
    font-size: 3rem;
    text-align: left;
    line-height: 1.3;
    transform: translateX(0);
    /* Eliminamos desplazamiento que afecta el balance */
}

.texto-destacado {
    font-size: 1.3rem;
    text-align: left;
    margin: 0;
    line-height: 1.6;
    transform: translateX(0);
}

.imagen-app {
    display: block;
    margin: 1rem auto;
    width: 200px;
    height: auto;
}

.imagen-lateral {
    max-width: 300px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
    transform: none;
}

/*------------------ NOSOTROS ----------------*/
.sobre-nosotros {
    padding: 5rem 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    /* Fondo oscuro translúcido */
    color: white;
    margin-top: 8rem;
    text-align: center;
}

#nosotros {
    scroll-margin-top: 120px;
    padding-top: 5rem;
}

.contenido-nosotros {
    max-width: 1200px;
    margin: 0 auto;
}

.nosotros-texto-imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    text-align: left;
}

.bloque-texto-nosotros {
    flex: 1 1 400px;
    max-width: 600px;
    padding: 1rem;
}

.bloque-imagen-nosotros {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.imagen-nosotros {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sobre-nosotros h2 {
    font-size: var(--font-lg);
    margin-bottom: 1rem;
    color: var(--verde);
    text-transform: uppercase;
}

.sobre-nosotros p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}


/* ------------------ SERVICIOS -----------*/

.seccion-servicios {
    position: relative;
    /* 👈 Necesario para posicionar la imagen dentro */
    padding: 5rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    text-align: center;
    overflow: hidden;
}

.contenedor-servicios {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.seccion-servicios h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--verde);
    text-transform: uppercase;
}


.lista-servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.servicio-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    width: 280px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card h3 {
    color: var(--blanco);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.servicio-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.imagen-servicios-wrapper {
    position: absolute;
    bottom: -50px;
    /* Más abajo del borde inferior */
    left: 0px;
    /* Ahora a la izquierda en lugar de la derecha */
    pointer-events: none;
    opacity: 0.9;
}

.imagen-servicios {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/*----------------------- SOPORTE --------------------*/
.seccion-soporte {
    padding: 5rem 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    text-align: center;
}

.contenedor-soporte {
    max-width: 1000px;
    margin: 0 auto;
}

.seccion-soporte h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--verde);
    text-transform: uppercase;
}

.texto-soporte {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e0e0e0;
}

.opciones-soporte {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.soporte-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    width: 280px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.soporte-card:hover {
    transform: translateY(-5px);
}

.soporte-card h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.soporte-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.soporte-card a {
    color: var(--verde);
    text-decoration: underline;
}

.seccion-soporte {
    position: relative;
    /* Necesario para posicionar elementos hijos */
    overflow: hidden;
    /* Oculta cualquier desborde de la imagen */
}

.contenedor-soporte {
    position: relative;
    /* Para que la imagen se posicione dentro */
}

.imagen-soporte-wrapper {
    position: absolute;
    bottom: -30px;
    right: -40px;
    /* 👈 Ahora está a la derecha */
    pointer-events: none;
    opacity: 0.9;
}

.imagen-soporte {
    max-width: 170px;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* --------------------- CONTÁCTANOS ----------------- */
.seccion-contacto {
    padding: 5rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.contenedor-contacto {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}

.info-contacto {
    flex: 1;
    min-width: 280px;
}

.info-contacto h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--verde);
}

.info-contacto p,
.info-contacto li {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #ccc;
}

.info-contacto ul {
    padding-left: 1.2rem;
}

.formulario-contacto {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.formulario-contacto h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--verde);
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.formulario-contacto input::placeholder,
.formulario-contacto textarea::placeholder {
    color: #ccc;
}

.btn-enviar {
    background-color: var(--verde);
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.btn-enviar:hover {
    background-color: #43a047;
}

/* ------------------------ RECLAMOS ----------------------- */
.seccion-reclamos {
    padding: 4rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    max-width: 700px;
    /* ancho limitado */
    margin: 4rem auto;
    /* centrado y separación */
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    color: var(--blanco);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.formulario-reclamo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grupo-campo {
    display: flex;
    flex-direction: column;
}

.grupo-campo label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.grupo-campo input,
.grupo-campo select,
.grupo-campo textarea {
    padding: 0.7rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

.grupo-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.grupo-check label {
    margin: 0;
}

.formulario-reclamo button {
    background-color: var(--verde);
    color: var(--blanco);
    font-weight: bold;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    align-self: center;
}

/* ------------------ ------------------------------- */

.reclamo-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
}

#empresa,
#ruc {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
}

.campo-invalido {
    border: 2px solid red !important;
    background-color: #ffeaea !important;
    transition: background-color 0.3s, border-color 0.3s;
}

.reclamo-form h3 {
    margin-top: 30px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    color: #333;
}

.reclamo-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
    color: #444;
}

.reclamo-form input,
.reclamo-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.reclamo-form .radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.reclamo-form .checkbox {
    margin-top: 15px;
}

.btn-enviar {
    background-color: #db812d;
    color: white;
    padding: 12px 30px;
    border: none;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar:hover {
    background-color: #c66e15;
}


/* -------------------- MEDIA QUERIES -------------------- */
@media (max-width: 768px) {

    .logo-imagen {
        max-width: 100%;
        height: 7rem;
    }

    .hero-titulo-logo {
        flex-direction: column;
    }

    .hero-texto-imagen,
    .nosotros-texto-imagen,
    .contenedor-contacto {
        flex-direction: column;
        text-align: center;
    }

    .titulo-destacado,
    .texto-destacado {
        text-align: center;
    }

    .bloque-texto,
    .bloque-texto-nosotros,
    .formulario-contacto,
    .info-contacto {
        max-width: 100%;
        padding: 1rem 0;
    }

    .imagen-lateral,
    .imagen-nosotros {
        max-width: 80%;
    }

    .imagen-servicios-wrapper {
        position: static;
        margin-top: 2rem;
        text-align: center;
    }

    .imagen-servicios,
    .imagen-soporte {
        max-width: 150px;
        margin: 0 auto;
    }

    .imagen-soporte-wrapper {
        position: static;
        margin-top: 2rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar {
        padding: 2rem 1rem;
    }


}

/* ----- Corrección para celulares ----- */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .seccion-soporte,
    .sobre-nosotros,
    .seccion-servicios,
    .seccion-contacto,
    .seccion-reclamos {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .imagen-soporte-wrapper,
    .imagen-servicios-wrapper {
        position: static;
        margin: 2rem auto 0;
        text-align: center;
    }

    .imagen-soporte,
    .imagen-servicios {
        max-width: 80%;
        height: auto;
    }

    .hero-texto-imagen,
    .nosotros-texto-imagen,
    .contenedor-contacto {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* -------------- FOOTER ------------- */
.footer-altoque {
    background-color: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-altoque a {
    color: var(--verde);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.footer-altoque a:hover {
    text-decoration: underline;
    color: #81c784;
}