:root {
    --campus: #00b99b;
    --gris-clar: #EEEEEE;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
}

:root {
    /* Tamaño base para pantallas grandes */
    --fs-moltpetita: 11px;
    --fs-petita: 13px;
    --fs-normal: 14px;
    --fs-normal-titol: 20px;
    --fs-gran: 25px;
    --fs-moltgran: 35px;
    --fs-hipergran: 50px;
}

/* Para tablets y pantallas medianas */
@media (max-width: 992px) {
    :root {
        --fs-moltpetita: 10px;
        --fs-petita: 12px;
        --fs-normal: 13px;
        --fs-normal-titol: 16px;
        --fs-gran: 20px;
        --fs-moltgran: 30px;
        --fs-hipergran: 45px;
    }
}

/* Para móviles grandes (ej. iPhones grandes) */
@media (max-width: 768px) {
    :root {
        --fs-moltpetita: 9px;
        --fs-petita: 11px;
        --fs-normal: 12px;
        --fs-normal-titol: 14px;
        --fs-gran: 16px;
        --fs-moltgran: 22px;
        --fs-hipergran: 30px;
    }
}

/* Para móviles pequeños */
@media (max-width: 576px) {
    :root {
        --fs-moltpetita: 8px;
        --fs-petita: 10px;
        --fs-normal: 11px;
        --fs-normal-titol: 13px;
        --fs-gran: 14px;
        --fs-moltgran: 20px;
        --fs-hipergran: 28px;
    }
}

#top-header {
    background-color: var(--gris-clar);
    height: 100px;
}
#top-header-logo {
    height: 80px;
    width: auto;
    margin-top: 10px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bolder;
}

h1 {
    font-size: var(--fs-hipergran);
}

a {
    color: var(--campus);
}

.post-title h1 {
    color: #ffffff;
}

.post-title {
    background-color: var(--campus);
    background-image: none !important;
    border-radius: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}

@media (min-width: 576px) {
    .post-title {
        min-height: 150px;
    }
}

@media (min-width: 768px) {
    .post-title {
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        background-image: url('img/bg_general.jpg') !important;
        min-height: 225px;
    }
}

.post-date {
    font-size: var(--fs-normal);
    color: var(--campus);
}

.navbar {
    padding-bottom: 0px;
    padding-top: 0px;
}

@media (min-width: 576px) {
    #main-menu .navbar {
        background: transparent !important; /* Navbar sin fondo */
        text-transform: uppercase;
        padding-bottom: 5px;
    }
    #main-menu .nav-item {
        flex-grow: 1; /* Hace que todos los elementos ocupen el mismo espacio */
        text-align: center; /* Centra el texto dentro de cada opción */
    }
    #main-menu .nav-link {
        background-color: var(--gris-clar); /* Color de fondo por defecto */
        color: black !important; /* Color del texto */
        padding: 10px 20px; /* Espaciado interno */
        border-radius: 20px; /* Bordes redondeados */
    }
    /* Hover para TODAS las opciones del menú principal */
    #main-menu .nav-link:hover,
    #main-menu .dropdown:hover > .nav-link {
        color: white !important; /* Color del texto */
        background-color: var(--campus) !important; /* Cambio de color al pasar el mouse */
    }
    #main-menu .dropdown:hover > .nav-link {
        border-bottom-left-radius: 0; /* Se une con el dropdown */
        border-bottom-right-radius: 0; /* Se une con el dropdown */
    }
    #main-menu .nav-item:not(:last-child) {
        margin-right: 10px; /* Espaciado entre elementos */
    }
    /* Estilos para el dropdown */
    #main-menu .dropdown:hover .dropdown-menu {
        display: block; /* Hace que el dropdown se despliegue con hover */
        margin-top: 0; /* Alinea perfectamente el dropdown */
        border-top-left-radius: 0; /* Elimina el radio superior del dropdown */
        border-top-right-radius: 0; /* Elimina el radio superior del dropdown */
        overflow: hidden; /* Evita que aparezca una franja rectangular en la última opción */
    }
    #main-menu .dropdown-menu {
        background-color: var(--campus); /* Color de fondo del dropdown */
        border: none; /* Sin borde */
        min-width: 100%; /* Hace que el menú tenga el mismo ancho que el padre */
        border-bottom-left-radius: 20px; /* Bordes redondeados inferiores */
        border-bottom-right-radius: 20px; /* Bordes redondeados inferiores */
        overflow: hidden; /* Asegura que el último elemento respete los bordes */
        box-shadow: none !important; /* Elimina cualquier sombra */

    }
    #main-menu .dropdown-menu .dropdown-item {
        color: white !important; /* Color de texto */
        text-align: center; /* Centra el texto */
        padding: 10px;
        border-radius: 0; /* Evita bordes redondeados dentro del dropdown */
        display: inline-block;
        white-space: normal; /* Permite que el texto pase a la siguiente línea */
        text-align: center; /* Centra el texto */
    }

    #main-menu .dropdown-menu li:not(:last-child) {
        border-bottom: 1px solid #ffffff; /* Borde blanco de 1px */
    }

    #main-menu .dropdown-menu .dropdown-item:hover,
    #main-menu .dropdown-menu .dropdown-item:focus,
    #main-menu .dropdown-menu .dropdown-item.active {
        background-color: var(--campus) !important; /* Fondo sólido verde claro */
        border-radius: 0 !important; /* Sin bordes redondeados */
        background-image: none;
        outline: none !important; /* Elimina el borde de selección */
        box-shadow: none !important; /* Evita sombras de Bootstrap */
    }

    /* .dropdown-menu > *:not(:last-child) a { */
    /*
    .dropdown-menu a {
        border-bottom: 1px solid white;
        padding: 0 20px;
        display: inline-block;
    } */

    /* Evita cualquier redondeo en la última opción del dropdown */
    #main-menu .dropdown-menu .dropdown-item:last-child {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

 .carousel .carousel-indicators button {
    width: 20px;
    height: 20px;
    border-radius: 100%;
 }

 #carouselHome .carousel-item-container {
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 300px;
    border-radius: 20px;
}
#carouselHome h3 {
    font-weight: 700;
    font-size: 30px;
    color: var(--blanc);
}
#carousel-control-prev-icon,
#carousel-control-next-icon {
    width: 20px;
    height: 20px;
    color: var(--blanc);
}
#carousel-control-prev-icon,
#carousel-control-next-icon {
    width: 40px;
    height: 40px;
    margin: 0px 20px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
}

#carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}
#carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}
.carousel-pause-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}
.carousel-pause-button i {
    color: white;
    font-size: 16px;
}

#carouselHome h2 {
    font-size: 20px !important;
    line-height: 1.0;
}
#carouselHome h3 {
    font-size: 13px !important;
    line-height: 1.0;
}

@media (min-width: 576px) {
    #carouselHome h2 {
        font-size: 22px !important;
    }
    #carouselHome h3 {
        font-size: 14px !important;
    }
}
@media (min-width: 768px) {
    #carouselHome .carousel-item-container {
        height: 280px;
    }
    #carouselHome h2 {
        font-size: 35px !important;
    }
    #carouselHome h3 {
        font-size: 20px !important;
    }
}

@media (min-width: 1200px) {
    #carouselHome .carousel-item-container {
        height: 400px;
    }
    #carouselHome h2 {
        font-size: 50px !important;
    }
    #carouselHome h3 {
        font-size: 25px !important;
    }
}

.child-box,
.child-box-gran {
    border-radius: 20px;
    border: 1px solid #000000;
    color: #000000;
}
.child-box-gran  h3 {
    color: #ffffff;
    font-size: var(--fs-moltgran);
}
.child-box-color {
    border-radius: 20px;
    background-color: var(--campus);
    color: #ffffff;
}

.child-box-image {
    border-radius: 20px;
    border-bottom-left-radius: 0; /* Se une con el dropdown */
    border-bottom-right-radius: 0; /* Se une con el dropdown */
    background-color: var(--campus);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 200px;
}

.child-box h4,
.child-box-color h4 {
    color: #ffffff;
    font-size: var(--fs-gran);
    line-height: 1.1;
}

.child-box h5,
.child-box-color h5 {
    font-size: var(--fs-normal-titol);
    line-height: 1.1;
}

.btn-campus, .btn-primary, .wp-block-button .wp-block-button__link, .wpcf7-submit {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: var(--campus);
    border-radius: 30px;
    border: 1px solid var(--campus);
    display: inline-block;
    padding: 10px 30px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}
.btn-campus:disabled {
    opacity: 0.7;
}
.btn-campus:active,
.btn-campus:focus,
.btn-campus:hover,
.btn-campus:visited,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:visited,
.btn:first-child:active,
.wp-block-button .wp-block-button__link:active,
.wp-block-button .wp-block-button__link:focus,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:visited,
wpcf7-submit {
    color: #ffffff;
    background-color: var(--campus);
    border-radius: 30px;
    border: 1px solid var(--campus);
}

.wpcf7-submit:disabled {
    opacity: 0.5;
}

.hr-blanco {
    border-top: 1px solid #ffffff;
    opacity: 1.0;
}

hr {
    border-top: 1px solid var(--campus);
    opacity: 1.0;
}

#home h2 {
    font-size: var(--fs-moltgran);
    line-height: 1.0;
}

#fil-ariadna {
    color: #CCCCCC;
    font-size: var(--fs-petita);
}
#fil-ariadna a,
#fil-ariadna a:visited,
#fil-ariadna a:hover,
#fil-ariadna a:active,
#fil-ariadna a:focus,
#fil-ariadna a:link {
    color: #CCCCCC;
    text-decoration: underline;
}
#fil-ariadna .current-item {
    color: #000000;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
}
.pagination li {
    margin: 0 5px;
}

/* Espaciado entre columnas de Gutenberg */
.wp-block-columns {
    display: flex;
    gap: 20px; /* Espaciado entre columnas */
}

.wp-block-column {
    flex: 1; /* Asegura que las columnas tengan el mismo ancho */
    box-sizing: border-box; /* Asegura que el padding no afecte al ancho total */
}
img {
    border-radius: 20px;
}
img.no-border {
    border-radius: 0;
}
.pagination {
    display: flex;
    justify-content: center;
}

.page-numbers {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos dentro del paginador */
    gap: 5px; /* Espaciado entre los elementos */
    padding: 0;
    list-style: none;
}

.page-numbers li {
    display: flex;
    align-items: center; /* Asegura que todos los elementos tengan la misma alineación vertical */
}

.page-numbers a,
.page-numbers span {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--campus);
}

.page-numbers .current {
    color: black;
}

.page-numbers .dots {
    width: auto;
    padding: 0 10px;
}

#footer {
    background-color: #242424;
    color: #ffffff;
}
#footer a,
#footer a:visited,
#footer a:hover,
#footer a:active,
#footer a:focus,
#footer a:link,
#footer .menu-item a[aria-current=page] {
    color: #ffffff;
    text-decoration: underline;
}
#footer li {
    list-style: none;
}
.rrss-icon {
    display: inline-block;
    margin-right: 10px;
}
.rrss-icon img {
    width: 30px;
    height: 30px;
}

.form-select,
.form-control,
.wpcf7-text,
.wpcf7-textarea {
    border-radius: 15px;
    border: 0px;
    background-color: var(--gris-clar);
    padding: 10px 20px;
    margin-top: 5px;
    margin-bottom: 10px;
    width: 100%;
}

.wpcf7-submit {
    margin-top: 15px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
}

.wpcf7 form .wpcf7-response-output {
	margin: 20px;
	padding: 20px;
	border: 2px solid #000000;
    border-radius: 50px;
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--campus);
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	border-color: #dc3232; /* Red */
}