/* Reset de estilos básicos */
/* Estilos base */
body, h1, h2, h3, p, ul, li, form, input, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #565656;
    background-color: #ffffff;
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}

.course-container {
    background-image: url("images/back.jpeg");
    text-align:center;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
}

/* Estilos del encabezado */
header {
    z-index: 10; /* Asegura que el header se muestre sobre otros elementos */
    background-image: url("images/Header.png") !important;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

/* Contenedor del encabezado */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 1rem;
    flex-wrap: wrap;
    width: 100%; 
}

/* Estilos del logo */
.logo {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-right: auto;
    height: auto;
}

.logo-img {
    width: 50px; 
    height: auto;
    margin-right: 10px;
}

/* Barra de búsqueda */
.search-container {
    display: flex;
    flex:1;
    justify-content: center;
    width: 100%; 
    max-width: 650px; 
    margin-top: 10px;
}

.search-input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%; 
}

.search-button {
    margin-left: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
}
/* Estilos de los enlaces de navegación */

.menu-container {
    display: flex;
    position: relative;
    justify-content:flex-end;
    right: 5px; 
    top: 15px; 
    transform: translateY(-50%);
    z-index: 1000;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Estilos del pie de página */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Estilos para el popup de WhatsApp */
.whatsapp-popup {
    position: fixed;
    bottom: 100px; 
    right: 60px; 
    z-index: 1000; 
}

.whatsapp-link {
    display: block;
    width: 40px; 
    height: 50px;
}

.whatsapp-link img {
    width: 150%;
    height: auto;
    border-radius: 50%; 
}

.swiper-container {
    width: 100%;
    height: auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff; 
    position: relative;
    height: 100%; 
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide h2 {
    font-size: 2rem; 
    color: #ffffff; 
    margin: 0;
    position: relative;
    perspective: 10px; 
}

.swiper-slide h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); 
    transform: translateZ(-10px) rotateX(15deg); 
    z-index: -1;
}

#slider > div.swiper-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal{
    display:none;
}

.reg-container {
    padding: 20px;
    margin: 0 auto;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    color:rgb(66, 49, 49);
}

/* Estilos del formulario de contacto y registro */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: bold;
}

input, textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    margin: 5px;
}

.button:hover {
    background-color: #0056b3;
}

.enroll-button {
    background-color: #28a745;
}

.enroll-button:hover {
    background-color: #218838;
}

/* Estilos del pie de página */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.courses-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px; 
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Asegúrate de establecer una altura para el contenedor */
}

.course {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.container h2 {
    text-align:center;
}

.reg-container h2 {
    text-align:center;
}

/* Form Styles */
.register {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgb(211, 0, 141), rgb(0, 235, 252));
}

.reg-container {
    background-image: url("images/back.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size:cover;
    max-width: 600px;
    color:#fff;
}

h2 {
    margin-bottom: 1rem;
}

fieldset {
    border: none;
    margin-bottom: 1rem;
    padding: 0;
}

legend {
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align:center;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Estilos para la sección de contacto */
.contact-section {
    display: none;
    padding: 20px;
    background-color: #f4f4f4;
    border-top: 1px solid #ccc;
    text-align: center;
    width: 100%;
    min-height: 200px; 
    box-sizing: border-box; 
}

.contact-section.active {
    display: block;
    min-height: 200px; 
    box-sizing: border-box;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-section p {
    font-size: 1.2rem;
}