:root {
    --vino: #830e0e;
    --azul: #0b4eb9;
    --blanco: #fefcfb;
    --negro: black;
    --dorado: #94750e;
    --titulos: 'Baloo 2', cursive;
    --parrafos: 'Montserrat', sans-serif;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

h1,
h2,
h3 {
    font-family: var(--titulos)
}

p,
a {
    font-family: var(--parrafos);
}

.ocultar {
    display: none;
}

.contenedor {
    margin: 0 auto;
    max-width: 120rem;
    width: 95%;
}

.btn {
    padding: 1rem 4rem;
    font-weight: bold;
    font-family: var(--parrafos);
    font-size: 2rem;
    border: none;
    color: var(--blanco);
}

.bordes {
    border: 2px solid var(--azul);
    color: var(--azul);
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color .3s ease-in-out;
}

@media(min-width: 768px) {
    .bordes {
        display: inline-block;
        margin-top: 2rem;
    }
}

/* =============================================
   SECCIÓN NOSOTROS (CORREGIDA Y ÚNICA)
   ============================================= */
.nosotros {
    padding: 5rem 0;
}

.nosotros h2 {
    text-align: center;
    font-size: 4rem;
    color: var(--azul);
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .nosotros h2 {
        font-size: 5rem;
    }
}

.contenido-nosotros {
    background-image: url('../img/grupos2.jpg');
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    background-size: cover;
    background-position: center center;
}

@media(min-width: 768px) {
    .contenido-nosotros {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        background-attachment: fixed;
    }
}

.texto-nosotros {
    padding: 3rem 2rem;
    grid-row: 2/3;
    background-color: var(--blanco);
    color: var(--negro);
}

@media(min-width: 768px) {
    .texto-nosotros {
        padding: 6rem;
        grid-column: 1/2;
        grid-row: unset;
    }
}

.texto-nosotros p {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left !important;
    /* Fuerza alineación a la izquierda */
}

/* Estilo para los Puntos */
.lista-puntos {
    margin: 2rem 0 3rem 2.5rem;
    list-style-type: disc !important;
    /* Puntos redondos */
    color: var(--azul);
}

.lista-puntos li {
    font-family: var(--parrafos);
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
    color: var(--negro);
    display: list-item !important;
    /* Asegura que se vea el punto */
}

.final-texto {
    font-size: 2.2rem !important;
    color: var(--vino) !important;
    border-left: 5px solid var(--azul);
    padding-left: 2rem;
    font-weight: bold;
    margin-top: 3rem;
    text-align: left !important;
}

/* =============================================
   CONTINUACIÓN DE ESTILOS GENERALES
   ============================================= */
.bordes:hover {
    background-color: var(--azul);
    color: var(--blanco);
}

.btn:hover {
    cursor: pointer;
}

.azul {
    background-color: var(--azul);
}

@keyframes desplazamiento {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

.encabezado {
    background-image: url('../img/logo2.jpeg');
    background-repeat: no-repeat;
    height: 100vh;
    min-height: 70rem;
    background-size: contain;
    background-position: center center;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
}

@media(min-width: 768px) {
    .encabezado {
        background-attachment: fixed;
    }
}

.encabezado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: -1;
}

.logo h2 {
    font-size: 3rem;
    color: var(--vino);
}

.logo h2 span {
    color: var(--azul);
}

.contenido-navegacion {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: var(--blanco);
    box-shadow: 10px 10px 16px -6px rgba(83, 6, 6, 0.548);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
}

.navegacion {
    position: absolute;
    left: 0;
    top: 70px;
    background-color: var(--blanco);
    width: 100%;
    animation: desplazamiento .5s ease-in-out;
}

@media(min-width: 768px) {
    .ocultar {
        display: inline;
    }
}

.navegacion a {
    display: block;
    font-size: 2rem;
    padding: 1.1rem;
    color: var(--vino);
    text-decoration: none;
    transition: background-color .3s ease-in-out;
}

.navegacion a:hover {
    background-color: var(--vino);
    color: var(--blanco);
}

@media(min-width: 768px) {
    .navegacion a {
        display: inline;
    }

    .navegacion {
        position: relative;
        top: unset;
        width: auto;
        background-color: unset;
        animation: unset;
    }
}

.hamburguesa span {
    width: 5rem;
    height: 1rem;
    border: 3px solid white;
    background-color: var(--negro);
    display: block;
}

@media(min-width: 768px) {
    .hamburguesa {
        display: none;
    }
}

@media(min-width: 768px) {
    .contenido-encabezado {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 85%;
    }

    .contenido-encabezado,
    .formulario-encabezado {
        flex: 0 0 calc(50% - 1rem);
    }
}

.texto-encabezado h1 {
    font-size: 3rem;
    text-align: center;
    color: var(--blanco);
    padding-top: 8rem;
}

@media(min-width: 768px) {
    .texto-encabezado h1 {
        font-size: 8rem;
        margin-top: 0;
    }
}

.formulario-encabezado {
    background-color: var(--blanco);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem;
    border-radius: 5rem;
}

.formulario-encabezado h2 {
    font-size: 3rem;
    text-align: center;
    margin-top: 0;
    color: var(--negro);
}

@media(min-width: 768px) {
    .formulario-encabezado h2 {
        font-size: 2rem;
    }
}

.input-encabezado {
    margin-bottom: 1rem;
    width: 100%;
}

.input-encabezado input {
    width: 100%;
    padding: 0 1.6rem;
    height: 4.8rem;
    border: 1px solid #f1f1f1;
    border-radius: .5rem;
    font-family: var(--parrafos);
    outline: none;
}

@media(min-width: 768px) {
    .contenido-ventajas {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.ventajas {
    padding: 5rem;
    background-color: var(--azul);
}

.ventaja {
    color: var(--blanco);
    text-align: center;
}

.ventaja i {
    font-size: 4rem;
}

.ventaja h3 {
    font-size: 2.5rem;
}

.ventaja p {
    font-size: 2rem;
}

/* SERVICIOS */
.servicios {
    padding-top: 5rem;
}

.servicios h2 {
    font-size: 5rem;
    text-align: center;
    color: var(--azul);
}

@media(min-width: 768px) {
    .contenido-servicios {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio i {
    background-color: var(--azul);
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dorado);
    font-size: 3rem;
    box-shadow: 10px 10px 16px -6px rgba(0, 0, 0, .45);
    transition: all .2s ease-in-out;
}

.servicio h3 {
    font-size: 2.2rem;
    color: var(--azul);
}

.servicio p {
    font-size: 1.8rem;
    text-align: center;
}

@media(min-width: 768px) {
    .servicio p {
        text-align: left;
    }

    .servicio:hover {
        cursor: pointer;
    }

    .servicio:hover .fas,
    .servicio:hover i {
        background-color: var(--vino);
        color: var(--blanco);
    }
}

/* CONTACTO */
.contacto {
    padding-top: 5rem;
    height: auto;
    min-height: 100vh;
    padding-bottom: 5rem;
}

.contacto h2 {
    text-align: center;
    color: var(--dorado);
    font-size: 5rem;
}

@media(min-width: 768px) {
    .contenido-contacto {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

.informacion-contacto {
    background-image: url(../img/asesorias.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: -1;
    min-height: 50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.informacion-contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.informacion-contacto h3 {
    font-size: 4rem;
}

.informacion-contacto p {
    font-size: 2rem;
}

.informacion-contacto h3,
.informacion-contacto p {
    color: var(--blanco);
}

.formulario-contacto {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--vino);
}

.input-contacto label {
    color: var(--blanco);
    font-family: var(--parrafos);
    display: block;
    margin: 1rem 0;
    font-weight: bold;
}

.input-contacto input,
.input-contacto textarea {
    width: 100%;
    outline: none;
    padding: 1.2rem;
    font-family: var(--parrafos);
}

.input-contacto textarea {
    height: 30rem;
    border: 1px solid #f1f1f1;
    border-radius: .5rem;
    resize: none;
}

.input-contacto input[type="submit"] {
    width: auto;
    padding: 1rem 3rem;
    transition: background-color .3s ease-in-out;
}

.input-contacto input[type="submit"]:hover {
    background-color: var(--blanco);
    color: var(--azul);
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--negro);
    padding: 4rem 2rem;
    color: var(--blanco);
    gap: 2rem;
}

@media(min-width: 768px) {
    .footer {
        flex-direction: row;
        justify-content: space-around;
    }
}

.footer .logo h2 {
    font-size: 3rem;
    margin: 0;
    color: var(--vino);
}

.footer .logo span {
    color: var(--azul);
}

.footer p {
    font-size: 1.6rem;
    margin: 0;
    opacity: 0.8;
}

.navegacion a.link-login {
    background-color: var(--azul);
    color: var(--blanco) !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all .3s ease-in-out;
}

@media(min-width: 768px) {
    .navegacion a.link-login {
        margin-left: 1rem;
    }
}

.navegacion a.link-login:hover {
    background-color: var(--dorado);
    color: var(--negro) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   CARRUSEL DE IMÁGENES
   ========================================================= */
.carrusel-seccion {
    padding: 5rem 0;
    background-color: #ffffff;
}

.carrusel-seccion h2 {
    text-align: center;
    font-size: 5rem;
    color: var(--azul);
    margin-bottom: 3rem;
}

.carrusel-contenedor {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #ffffff;
}

.carrusel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    background-color: #ffffff;
}

.carrusel-item {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff !important;
}

.carrusel-item img {
    width: 100%;
    height: 50rem;
    object-fit: contain;
    display: block;
    background-color: #ffffff !important;
}

.carrusel-texto {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2rem;
    text-align: center;
}

.carrusel-texto h3 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--dorado);
}

.carrusel-texto p {
    margin: 0.5rem 0 0;
}

.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(255, 255, 255);
    color: var(--negro);
    border: none;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 2rem;
    transition: background 0.3s;
    z-index: 10;
}

.carrusel-btn:hover {
    background-color: var(--azul);
    color: white;
}

.btn-prev {
    left: 1rem;
    border-radius: 50%;
}

.btn-next {
    right: 1rem;
    border-radius: 50%;
}

.carrusel-indicadores {
    position: relative;
    margin-top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    justify-content: center;
}

.punto {
    width: 1.2rem;
    height: 1.2rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.punto.activo {
    background-color: var(--azul);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carrusel-seccion h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .carrusel-item img {
        height: 30rem;
    }

    .carrusel-texto h3 {
        font-size: 1.5rem;
    }

    .carrusel-texto p {
        font-size: 1rem;
    }

    .carrusel-btn {
        padding: 0.8rem;
        font-size: 1.5rem;
        width: 4rem;
        height: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-prev {
        left: 0;
        border-radius: 0 50% 50% 0;
    }

    .btn-next {
        right: 0;
        border-radius: 50% 0 0 50%;
    }
}

/* REDES SOCIALES */
.footer-social {
    margin: 1rem 0;
}

.footer-social i {
    font-size: 3rem;
    color: var(--blanco);
    transition: all 0.3s ease-in-out;
}

.footer-social i:hover {
    color: var(--dorado);
    transform: scale(1.1);
    cursor: pointer;
}

/* =============================================
   PARALLAX SOLO EN INICIO
   Nosotros sin parallax
   ============================================= */

/* ENCABEZADO: CON parallax (la primera imagen) */
.encabezado {
    background-attachment: fixed !important;
    /* Parallax en inicio */
}

@media(min-width: 768px) {
    .encabezado {
        background-attachment: fixed !important;
    }
}

/* NOSOTROS: SIN parallax */
.contenido-nosotros {
    background-image: none !important;
    background-attachment: scroll !important;
    /* Sin parallax */
    display: flex;
    flex-direction: column;
}

.contenido-nosotros::after {
    content: '';
    display: block;
    width: 100%;
    height: 450px;
    background-image: url('../img/grupos2.jpg');
    background-size: contain !important;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #ffffff;
    background-attachment: scroll !important;
    /* Sin parallax */
    order: 1;
}

.texto-nosotros {
    width: 100%;
    padding: 3rem 2rem;
    background-color: var(--blanco);
    order: 2;
}

/* DESKTOP */
@media(min-width: 768px) {
    .contenido-nosotros {
        flex-direction: row !important;
        min-height: 700px;
        align-items: stretch;
        background-color: #ffffff;
    }

    .texto-nosotros {
        width: 50% !important;
        padding: 6rem !important;
        order: 1 !important;
    }

    .contenido-nosotros::after {
        width: 50% !important;
        height: auto !important;
        min-height: 700px;
        order: 2 !important;
        background-size: contain !important;
        background-position: center center;
        background-color: #ffffff !important;
        background-attachment: scroll !important;
        /* Sin parallax en nosotros */
    }
}

@media(min-width: 1200px) {
    .contenido-nosotros {
        min-height: 800px;
    }

    .contenido-nosotros::after {
        min-height: 800px;
    }
}

/* MÓVIL */
@media(max-width: 767px) {
    .contenido-nosotros::after {
        height: 450px;
        background-color: #ffffff;
    }

    .texto-nosotros {
        padding: 2.5rem 2rem !important;
    }

    .texto-nosotros h3 {
        font-size: 2.8rem !important;
        text-align: center !important;
        margin-bottom: 2rem !important;
        color: var(--vino) !important;
    }

    .texto-nosotros p {
        font-size: 1.8rem !important;
        line-height: 1.7 !important;
        text-align: left !important;
        margin-bottom: 1.5rem !important;
    }

    .lista-puntos {
        margin: 1.5rem 0 2rem 2rem !important;
    }

    .lista-puntos li {
        font-size: 1.7rem !important;
        margin-bottom: 1rem !important;
    }

    .final-texto {
        font-size: 2rem !important;
        padding: 1.5rem !important;
        margin-top: 2rem !important;
    }
}

@media(max-width: 400px) {
    .contenido-nosotros::after {
        height: 350px;
    }

    .texto-nosotros {
        padding: 2rem 1.5rem !important;
    }

    .texto-nosotros h3 {
        font-size: 2.4rem !important;
    }

    .texto-nosotros p {
        font-size: 1.6rem !important;
    }
}

/* LETRAS MÁS GRANDES */
.nosotros h2 {
    font-size: 5.5rem !important;
}

@media(min-width: 768px) {
    .nosotros h2 {
        font-size: 6.5rem !important;
    }
}

.texto-nosotros h3 {
    font-size: 5rem !important;
}

.servicios h2 {
    font-size: 6rem !important;
}

.carrusel-seccion h2 {
    font-size: 6rem !important;
}

.contacto h2 {
    font-size: 6rem !important;
}

@media(max-width: 767px) {

    .servicios h2,
    .carrusel-seccion h2,
    .contacto h2 {
        font-size: 4.5rem !important;
    }
}

/* =============================================
   AJUSTES MOBILE - Servicios y Contacto
   Agregar estos estilos al FINAL de tu estilos.css
   ============================================= */

/* SERVICIOS - texto centrado en mobile ✓ */
@media(max-width: 767px) {
    .servicio {
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .servicio p {
        text-align: center !important;
    }

    .servicio h3 {
        font-size: 2rem;
    }
}

/* CONTACTO - "Información de Contacto" centrado y contenido en mobile ✓ */
@media(max-width: 767px) {
    .informacion-contacto {
        padding: 4rem 2rem;
        text-align: center;
    }

    .informacion-contacto h3 {
        font-size: 2.8rem;
        /* Reduce tamaño para que no se salga */
        padding: 0 1rem;
        /* Margen lateral para que no corte */
    }

    .informacion-contacto p {
        font-size: 1.8rem;
        word-break: break-word;
        /* Por si el correo es largo */
    }
}