@import url("https://fonts.googleapis.com/css?family=DM+Sans:400,500,700&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root{
  --yellow: #ffbc00;
  --black: #111111;
  --brown1: #1d0c0a;
  --brown2: #3a1913;
  --brown3: #57251d;
  --brown4: #743226;
  --brown5: #913e30;
  --brown6: #d38a59;
  --brown7: #F8EDB1;
  --txtSize: clamp(13px, 4vw + .6rem, 30px);
  --txtSizeFooter: clamp(7px, 1.5vw + .5rem, 17px);
  --fonttype: "Plus Jakarta Sans", serif;
}

.main-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 6%;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    
}
@media (max-width: 700px) {

    .text-container{
        margin-right: 0px;
    }
    .form-container{
        margin-left: 0px !important;
    }
}


/* Contenedor del formulario */
.form-container {
    background-color: var(--brown6);
    margin-left: 1rem;
    flex-grow: 1;
    flex-basis: 50%;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;

}
.text-container{
    flex-grow: 1;
    flex-basis: 50%;
    margin-right: 1rem;
    font-size: clamp(10px, 2vw + .3rem, 15px);
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3.5rem;
    margin-bottom: 3rem;
}
.text-container section{
    width: 50%;
    background-color: #743226;
    color: var(--brown7);
    border: 3px solid var(--brown7);
    height: 12rem;
    font-size:larger;
    border-radius: 10px;
    align-content: center;
    text-align: center;
    padding: 0px 5%;
}
.text-container section:nth-child(2){
    width: 80%;
    color: #111111;
    background-color: transparent;
    border: 3px solid var(--brown6);
    border-radius: 20px;
    height: 12rem;
    font-size:larger;
    align-content: center;
    text-align: center;
    padding: 0px 5%;
}
/* Título del formulario */
.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

/* Campos del formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width:93%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Animación al enfocar los campos */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brown6);
    box-shadow: 0 0 5px rgba(255, 174, 0, 0.5);
    outline: none;
}

/* Textarea con altura fija */
.form-group textarea {
    resize: vertical;
    min-height: 8rem;
}

/* Botón de enviar */
.form-group button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--brown2);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background-color:var(--brown7);
    border: 2px solid var(--brown2);
    color: var(--brown2);
}

.join-container{
    
    margin: 0px 10%;
    margin-bottom: 3rem;
    width: 60%;
    border: 3px solid var(--brown6);
    border-radius: 20px;
    height: auto;
    font-size:larger;
    align-content: center;
    text-align: center;
    padding: 5% 10%;
}
.join-container h1{
    margin-bottom: 1.5rem;
}
.join-container p{
    margin-bottom: 3rem;
}

.btnVolunter1,
.btnVolunter2{
    padding: 10px 20px;
    background-color: rgba(229, 169, 0, 1);
    border-radius: 20px;
    text-decoration: none;
    border: #111111; 
    box-shadow: 0 2px 35px rgba(229, 169, 0, 1);  
    color: #111111; 
}

.btnVolunter2:hover,
.btnVolunter1:hover{
    background-color: transparent;
}

.btnVolunter1{
    margin-right: 9%;
}

@media (max-width: 500px) {
    .btnVolunter1{
        margin-right: 0;
        display: block;
    }
    .btnVolunter2{
        margin-top: 2rem;
        margin-right: 0;
        display: block;
    }

}

@media (max-width: 780px){
    .slide{
        flex: 0 0 96% !important;
    }
}

.centrador-carousel {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    touch-action: pan-y; /* Mejora el desplazamiento táctil */
}

.contenedor-principal {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contenedor-carrusel {
    position: relative;
    width: 100%;
    height: 50vh;
    max-height: 500px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #d38a59c0;
}

.carrusel {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide {
    flex: 0 0 98%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

.slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.btn-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.8;
}

.btn-carrusel:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.btn-anterior {
    left: 15px;
}

.btn-siguiente {
    right: 15px;
}

.indicadores {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.indicador {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.indicador.activo {
    background: #333;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .contenedor-carrusel {
        height: 40vh;
    }
    
    .btn-carrusel {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .contenedor-carrusel {
        height: 35vh;
    }
    
    .btn-carrusel {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Prevenir desbordamiento en pantallas muy estrechas */
@media (max-width: 360px) {
    .contenedor-carrusel {
        height: 30vh;
    }
    
    .slide {
        padding: 5px;
    }
}