.banner-section {
    position: relative;
    /* para poder posicionar el texto encima */
    width: 100%;
    height: auto;
    /* altura fija para el banner */
    overflow: hidden;
}

.banner-section img.banner {
    width: 100%;
    height: 100%;
    /*object-fit: cover;       /* que la imagen cubra todo el ancho/alto */
    /*display: block;*/
}

.texto1 {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #fff;
    padding: 0 20px;
    max-width: 45%;
    /* Limita el ancho del texto en desktop */
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Sombra para mejor contraste */
    font-family: 'Gandhi Sans', sans-serif;
}

.texto1 h2 {
    font-size: 1.7rem;
    /* text-4xl de Tailwind */
    /* font-weight: 900; */
    line-height: 1.2;
}

/* -------- SECCIÓN DE CONTACTO -------- */
.contacto {
    background: #f7f7f7;
    text-align: center;
    padding: 30px 20px;
    font-family: 'Gandhi Sans', sans-serif;
}

.contacto h2 {
    font-size: 1.5rem;
    color: #B82F25;
    margin-bottom: 10px;

}

.contacto p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 40px;
}

.contacto-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

.contacto .card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    flex: 1 1 300px;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contacto .card i {
    font-size: 3rem;
    color: #B82F25;
    margin-bottom: 15px;
}

.contacto .card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.contacto .card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    padding: 0 10px;
}

.contacto-link {
    font-size: 1rem;
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.contacto-btn {
    display: inline-block;
    background-color: #B82F25;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contacto-btn:hover {
    background-color: #d13a30;
}

/* -------- FORMULARIO -------- */

.fondo-general {
    width: 100%;
    height: 700px;
    /* Toda la altura visible */
    background-image: url('../img/Fondoo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* CONTENEDOR GENERAL */
.container {
    position: relative;
    width: 850px;
    height: 550px;
    margin: 40px auto;
    background: #f3f3f3;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

/* FORMULARIO */
.form-box {
    font-family: 'Gandhi Serif', serif;
    position: absolute;
    background: #fff;
    width: 50%;
    height: 100%;
    right: 0;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.8s ease-in-out;
    z-index: 2;
}

.form-box h1 {
    font-family: 'Gandhi Sans', sans-serif;
    margin-bottom: 30px;
}

.input-box {
    margin-bottom: 20px;
    text-align: left;
}

.input-box input,
.input-box textarea {
    width: 100%;
    font-family: 'Gandhi Serif', serif;
    padding: 12px;
    background: #eee;
    border: none;
    border-radius: 8px;
    outline: none;
}

textarea {
    resize: none;
    height: 100px;
}

.btn-submit {
    font-family: 'Gandhi Sans', sans-serif;
    padding: 12px;
    background: #000000;
    border: none;
    width: 100%;
    color: #ffffff;
    border-radius: 8px;
    font-size: 18px;
    margin-top: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Barra animada estilo “carga” */
.btn-submit::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #CB4F24;
    /* tono más oscuro o más claro */
    transition: left 0.5s ease;
    z-index: 0;
}

/* Activación del hover */
.btn-submit:hover::before {
    left: 0;
}

/* Mantener el texto encima */
.btn-submit span,
.btn-submit {
    position: relative;
    z-index: 2;
}

/* PANEL MORADO */
.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: 0.8s;
    z-index: 1;

    background-image: url('../img/Fondoform.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.toggle-panel h1 {
    font-size: 2rem;
}

.toggle-left {
    left: 0;
    /* background: url(../img/Fondoform.png); */
    /* background: #8ea7ff; */
}

.toggle-right {
    right: 0;
    /* background: url(../img/Fondoform.png); */
    /* background: #8ea7ff; */
    opacity: 0;
}

/* CAJA ANIMADA */
.toggle-box {
    position: absolute;
    width: 50%;
    height: 100%;
    /* background: url(../img/Fondoform.png); */
    /* background: #8ea7ff; */
    left: 0;
    border-radius: 30px 0 0 30px;
    transition: 0.8s ease-in-out;
    z-index: 0;
}

/* ESTADO ACTIVO DESPUÉS DE ENVIAR */
.container.active .toggle-box {
    left: 50%;
    border-radius: 0 30px 30px 0;
}

.container.active .form-box {
    right: 50%;
}

.container.active .toggle-left {
    opacity: 0;
}

.container.active .toggle-right {
    opacity: 1;
}

/* MENSAJE DE ÉXITO */
.mensaje-enviado {
    position: absolute;
    top: 30px;
    right: 50%;
    transform: translateX(50%);
    background: #4caf50;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    display: none;
    z-index: 10;
}


@media (max-width: 700px) {

    /* -------- BANNER -------- */
    /* .banner-section {
        min-height: 300px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    } */

    .texto1 {
        position: absolute;
        padding: 0 10px;
    }

    .texto1 h2 {
        font-size: 0.2rem;
        line-height: 1.2;
    }

    /* -------- SECCIÓN DE CONTACTO -------- */
    .contacto-cards {
        flex-direction: column;
        align-items: center;
    }



    /* -------- FORMULARIO -------- */
    /* Contenedor completo */
    .container {
        width: 95%;
        height: auto;
        padding-bottom: 40px;
    }

    /* FORMULARIO ocupa toda la pantalla */
    .form-box {
        position: relative;
        width: 100%;
        height: auto;
        padding: 30px 20px;
        right: 0 !important;
    }

    .form-box h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    /* Inputs más grandes */
    .input-box input,
    .input-box textarea {
        font-size: 16px;
    }

    /* Botón más grande */
    .btn-submit {
        font-size: 17px;
        padding: 14px;
    }

    /* PANEL MORADO (ESCONDERLOS EN MÓVIL) */
    .toggle-panel {
        display: none;
    }

    /* Caja animada también se oculta en móvil */
    .toggle-box {
        display: none;
    }

    /* Mensaje de éxito centrado arriba */
    .mensaje-enviado {
        top: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        text-align: center;
    }
}