:root {
    --blanco: #ffffff;
    --oscuro: #212121;
    --primario: #1F618D;
    --secundario: #1BA948;
    --gris: #757575;
    --grisClaro: #DFE9F3;
}
/*  Globales **/
html {
    font-size: 62.5%;
    box-sizing: border-box; /* Hack para Box Model **/
    
}
/** Scroll Snap**/
.servicios,
.navegacion-principal,
.formulario {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-size: 16px; /* 1rem = 10px */
    font-family: 'Krub', sans-serif;
    background-image: linear-gradient(to top, var(--grisClaro) 0%, var(--blanco) 100% );
}
.contenedor {
    max-width: 120rem;
    margin: 0 auto;
}
.boton {
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: 90%;
    text-align: center;
    border: none;
}
@media (min-width: 768px) {
    .boton {
        width: auto;
		text-align: center;
    }
}
.boton:hover {
    cursor: pointer;
}

.sombra {
    box-shadow: 0px 5px 15px 0px rgba(112,112,112,0.48);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}


/**Slider**/

.contenedor-principal {
    display: flex;
    justify-content: space-between; /* Ajusta según sea necesario */
    align-items: flex-start;
}
.contenedor.leftbanner {
    width: 100%; /* Adjust to make the banner responsive */
    max-width: 400px;
    height: auto;
}
.contenedor.leftbanner {
    padding: 20px; /* Limit padding to a maximum of 20px */
    overflow: hidden; /* Hide the rest of the content */
    max-height: fit-content; /* Adjust height to show only a portion */
    box-sizing: border-box; /* Ensure padding is included in the height */
    width: 100%; /* Ensure it spans the full width */
}

.contenedor.leftbanner img {
    width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Crop the image to fit */
    max-height: fit-content; /* Limit image height to match the container */
}
.contenedor-prin {
    display: flex;
    flex-direction: column; /* Stack banner and form vertically */
    align-items: center;
    padding: 10px; /* Small padding above and within container */
    gap: 10px; /* Space between banner and form */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional for better design */
    background: #fff;
    border-radius: 8px;
}

.login-form {
    background: #fff;
    padding: 20px;
    width: 50vw; /* Ocupa la mitad del ancho de la página */
    height: 50vw; /* Asegura que la altura sea igual al ancho para que sea cuadrado */
    max-width: 400px; /* Limita el tamaño máximo */
    max-height: 400px; /* Limita el tamaño máximo */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.registro-form {
    padding: 20px;
    width: 100%; /* Make form fit within its container */
    max-width: 400px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container-carousel {
    position: relative;
    width: 700px;
    height: 400px;
    background-color: #e0e0e0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.66);
    border-radius: 15px;
    overflow: hidden;
}

.carruseles {
    width: 100%; /* Asegúrate de que ocupe el 100% del contenedor */
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out; /* Para una transición suave */
}

.slider-section {
    min-width: 100%; /* Cada sección del slider ocupa el 100% del contenedor */
    height: 100%;
}

.slider-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.btn-left,
.btn-right {
    display: flex;
    position: absolute;
    top: 50%;
    font-size: 1.5rem;
    background-color: transparent;
    border-radius: 50%;
    padding: 5px;
    font-weight: 600;
    cursor: pointer;
    color: #ffffff81;
    transform: translate(0,-50%);
    transition: .5s ease;
    user-select: none;
}

.btn-left:hover,
.btn-right:hover {
    background-color: #333333d4;
    color: #fff;
}

.btn-left {
    left: 10px;
}

.btn-right {
    right: 10px;
}


/** Cursos **/
.curso {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gris);
}
@media (min-width: 768px) {
    .curso {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 2rem;
    }
}
.curso:last-of-type {
   border: none;
}
.curso__label {
    font-family: var(--fuenteHeading);
    font-weight: bold;
}
.curso__info {
    font-weight: normal;
}
.curso__label,
.curso__info {
    font-size: 2rem;
}


/* Tipografia */
h1 {
    font-size: 3.8rem;
}
h2 {
    font-size: 2.8rem;
}
h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.8rem;
}

h5 {
    font-size: 1.4rem;
}

h1,h2,h3 {
    text-align: center;
}
h4, h5 {
	text-align: left;
}


/* Titulos */
.titulo span {
    font-size: 2rem;
}

/** Utilidades **/
.w-sm-100 {
    width: 100%;
}
@media (min-width: 768px) {
    .w-sm-100 {
        width: auto;
    }
}
.flex {
    display: flex;
}
.alinear-derecha {
    justify-content: flex-end;
}

/* Navegacion Principal */
.nav-bg {
    background-color: var(--secundario);
}
.navegacion-principal {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .navegacion-principal {
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion-principal a {
    display: block;
    text-align: center;
    color: var(--blanco);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem;
}
.navegacion-principal a:hover {
    background-color: var(--primario);
    color: var(--oscuro);
}

/* formularios*/
    .identidad {
        display: flex;
        gap: 10px; /* Adds space between the inputs */
        margin: 20px 0; /* Keep only margin to match other inputs */
        padding: 0; /* Remove padding to avoid increasing width */
        width: 100%; /* Match the width of other form elements */
        box-sizing: border-box; /* Ensures dimensions include padding/border */
    }

    .identidad input[type="text"] {
        flex: 1; /* Allows both inputs to share available space equally */
        width: 100%; /* Ensure full width usage without manual percentage */
    }
    .registro-form {
        background: #fff;
        padding: 20px;
        width: 50vw; /* Ocupa la mitad del ancho de la página */
        height: max-content; /* Asegura que la altura sea igual al ancho para que sea cuadrado */
        max-width: 400px; /* Limita el tamaño máximo */
        max-height: max-content; /* Limita el tamaño máximo */
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .registro-form h2 {
        margin-bottom: 10px; /* Adjust spacing for compact layout */
    }
    .registro-form input[type="text"],
    .registro-form input[type="password"],
    .registro-form input[type="date"] {
        width: 100%; /* Use consistent 100% width */
        padding: 15px;
        margin: 20px 0;
        border: 1px solid #ccc;
        border-radius: 4px;
    }
    
    .registro-form button {
        width: 70%;
        padding: 15px;
        margin: 20px 0;
        background: #007BFF;
        border: none;
        color: #fff;
        font-size: 16px;
        border-radius: 4px;
        cursor: pointer;
    }
    .registro-form button:hover {
        background: #0056b3;
    }
    .registro-form .forgot-password {
        display: block;
        margin-top: 10px;
        text-align: right;
        font-size: 12px;
    }
    .registro-form .forgot-password a {
        color: #007BFF;
        text-decoration: none;
    }
    .registro-form .forgot-password a:hover {
        text-decoration: underline;
    }


div.contenedor {
  width: 33.33%;
  
}

button.centrado {
  width: 110px; /* Para que no se rompa en dos líneas, y lo translade tal cual. */
  margin-left: 50%;
  transform: translateX(-50%);
}

/** Servicios **/
@media (min-width: 768px) {
    .servicios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 1rem;
    }

        .servicios img:hover {
            transform: scale(1.05);
    }
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio h3 {
    color: var(--secundario);
    font-weight: normal;
}
.servicio p {
    line-height: 2;
    text-align: center;
}
.servicio .iconos {
    height: 15rem;
    width: 15rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.imagen-container {
    position: relative;
    display: inline-block;
}

.texto-superpuesto {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center; /* Centrar el texto horizontalmente */
    color: white;
    background-color: rgba(0, 0, 0, 0);
    padding: 5px 0;
    font-size: 16px;
    transform: translateY(-50%); /* Centrar verticalmente */
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}


.cinta-contenedor {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 150px; /* Ajusta a tu altura deseada */
    display: flex;
    align-items: center;
}

.cinta {
    display: flex;
    gap: 30px; /* Separación entre imágenes */
    animation: mover 40s linear infinite;
}

.cinta img {
    height: 120px;   /* Ajusta el tamaño */
    width: auto;
    object-fit: contain;
}

@keyframes mover {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}



.mapa-contenedor {
            max-width: 800px;   /* ancho del recuadro */
            height: 400px;      /* alto del recuadro */
            margin: 0 auto;     /* centrado horizontal */
            border-radius: 12px;
            overflow: hidden;  /* recorta el mapa */
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            background: #fff;
        }

        .mapa-contenedor iframe {
            width: 100%;
            height: 100%;
            border: 0;
        }


/** Footer **/
.footer {
    text-align: center;
}