/* === Global Settings === */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffac03;
    overflow-x: hidden;
}

/* Headings */
h1, h2 {
    font-family: 'Montserrat', sans-serif;
}

/* === Navbar === */
header .navbar {
    height: 10vh;
    box-shadow: 0 0.5vh 0.8vh rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 2.5vh;
}

header .navbar-brand img {
    border-radius: 50%;
    width: 10vh;
    height: 10vh;
}

.navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    text-decoration: none;
    padding: 0 2.5vh;
    line-height: 10vh;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ea2336;
}


/* === Botones === */
.btn-primary {
    background-color: #a00116;
    border-color: #a00116;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 2vh;
}

.btn-primary:hover {
    background-color: #68000e;
    border-color: #a00116;
}

.navbar-collapse {
    background-color: #fff;
    border-radius: 2vh;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
    padding: 1.5vh;
}

/* Navbar en pantallas grandes */
@media (min-width: 992px) {
    .navbar-collapse {
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}


/* === Sección de Servicios === */
.services-section {
    background-color: #c6d300;
    padding: 3.125rem 1.25rem;
    text-align: center;
}

.services-section .content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    margin-top: 3rem;
}

.services-section .content h2 {
    font-size: 1.5rem;
}

.services-grid {
    align-items: center;
    align-content: center;
    display: flex;
    flex-direction: column; /* Alineación en columna por defecto (mobile first) */
    
    gap: 1.25rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    width: 80%; /* Ocupa todo el ancho disponible en móviles */
    height: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-weight: bold;
    color: #333;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    height: auto;
    margin-bottom: 0.625rem;
    border-radius: 0.625rem;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.625rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3125rem;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    font-weight: normal;
}

/* === Media Queries para Pantallas más Grandes === */

@media (min-width: 768px) {
    .services-grid {
        flex-direction: row;  /* Cambiado para alinear en fila */
        justify-content: space-between; /* Espacio entre columnas */
        gap: 2rem; /* Separación entre las cards */
    }

    .service-card {
        width: calc(33.33% - 2rem); /* Tres columnas con separación */
    }
}
/* === Conoce Section === */
#section-content-conoce {
    background-color: #fff;
    padding: 3.75rem 0;
}

.conoce h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.5rem;
}

.conoce span {
    color: #ea2336;
}

.card {
    border: none;
    border-radius: 0.9375rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.card iframe {
    border-radius: 0.9375rem;
}

/*=== Talleres, Sesiones, y Grupales === */
.talleres, .sesiones, .grupales {
    padding: 3.125rem 1.875rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; /* Alineación en columna por defecto para mobile first */
}

.talleres-container, .sesiones-container, .grupales-container {
    display: flex;
    flex-direction: column; /* Aseguramos que los contenedores internos estén en columna */
    width: 100%;
    gap: 1.25rem;
}

.columna {
    flex: 1;
    display: flex;
    flex-direction: column; /* Aseguramos que las columnas estén apiladas en dispositivos pequeños */
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 18.75rem;
}


.talleres {
    background-color: #ffac04;
}

.talleres h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
}

.sesiones {
    background-color: #f9f9f9;
}

.sesiones h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: #ea2336;
    align-items: center;
}

.grupales {
    background-color: #ea2336;
}

.grupales h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
}   

/* === Video Wrapper === */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === Media Queries para Pantallas más Grandes === */
@media (min-width: 992px) {
    .talleres-container, .sesiones-container, .grupales-container {
        flex-direction: row;
    }

    .columna {
        width: 48%; /* Ajusta el ancho de las columnas */
    }
}
/* === WhatsApp Button === */
.btn-whatsapp {
    background-color: #000;
    color: #fff;
    font-size: 1rem;
    padding: 0.75rem 1.5625rem;
    border: none;
    border-radius: 1.5625rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background-color: #c0d84c;
}

/* === Footer === */
footer {
    background-color: #000;
    text-align: center;
    padding: 2vh 0;
    color: #fff;
}

footer a {
    color: white;
}

footer p {
    margin: 1vh 0;
    font-size: 2vh;
}

footer .socials {
    display: inline-flex;
    gap: 2vh;
}

footer .socials a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5vh;
    padding: 0 1vh;
    position: relative;
}

footer .socials a:not(:first-child) {
    border-left: 1px solid #fff;
    padding-left: 1.5vh;
}

footer .socials a:hover {
    text-decoration: underline;
}

/* === Media Queries para Pantallas más Grandes === */

@media (min-width: 768px) {
    .services-grid {
        display: flex;
        flex-direction: row;  /* Cambiado para alinear en fila */
        justify-content: space-between; /* Espacio entre columnas */
        gap: 2rem; /* Separación entre las cards */
    }

    .service-card {
        width: calc(33.33% - 2rem); /* Tres columnas con separación */
    }
}
