/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

.otgs-development-site-front-end {
    display: none !important;
}

:root {
    --fucsia: #1f01b9;
    --verde: #b4e33d;
    --titulares: "Comfortaa", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--titulares);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fucsia) !important;
}

/*.alert p,
p.mb-2 {
    font-family: var(--titulares);
}*/

#content a {
    color: var(--fucsia);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--titulares);

}

#content a:hover {
    background-color: var(--verde);
    color: black;
    text-decoration: none;
}

.card-oferta:hover {
    background: white !important;
}

#main-nav {
    background-color: var(--fucsia) !important;
    font-family: var(--titulares);
    font-weight: bold;
    text-transform: uppercase !important;
    letter-spacing: 2px;
}

.navbar img {
    filter: grayscale(100%) brightness(1000%) !important;
}

#wrapper-footer {
    background-color: #7c9299
}

#wrapper-footer a {
    color: black;
}

#wrapper-footer a:hover {
    background-color: transparent;
    color: white;
}

img#header_img {
    -webkit-filter: brightness(0) invert(1);
    filter: brightness(0) invert(1);
    max-height: 40px;
    display: inline;
}

.firstblock_menu {
    margin-right: 50px;
}


/* Botones generales */
button,
input[type="button"],
input[type="submit"],
.btn {
    background-color: var(--fucsia);
    color: white;
    font-family: var(--titulares) !important;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 0.5em 1.5em;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover {
    background-color: var(--verde);
    color: black;
}


a.btn {
    font-family: var(--titulares) !important;
}

/* Formularios */
/*input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 2px solid var(--fucsia);
    font-family: var(--titulares);
    border-radius: 4px;
    padding: 0.4em 0.8em;
    transition: border 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--verde);
    outline: none;
}

/* Color de fondo general y texto */
body {
    background-color: #fff;
    color: #222;

}

/* Enlaces generales fuera de #content */
a {
    color: var(--fucsia);
    transition: color 0.2s, background 0.2s;
}

a:hover {
    color: black;
    background-color: var(--verde);
    text-decoration: none;
}

/* Navegación secundaria y paginación */
.pagination a {
    background-color: var(--fucsia);
    color: white;
}

.pagination a:hover {
    background-color: var(--verde);
    color: black;
}

/* Widgets y sidebar */
.widget {
    border-left: 4px solid var(--fucsia);
    padding-left: 1em;
    margin-bottom: 2em;
}

.widget-title {
    font-family: var(--titulares);
    color: var(--fucsia);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Footer mejorado */
#wrapper-footer {
    background-color: lightslategray;
    color: white;
    padding: 2em 0;
}

#wrapper-footer a {
    color: var(--verde);
    transition: color 0.2s;
}

#wrapper-footer a:hover {
    color: var(--fucsia);
    background: transparent;
}

/* Ajuste para los menús */
#main-nav .navbar-nav .nav-link {
    color: white !important;
    transition: color 0.2s;
}

#main-nav .navbar-nav .nav-link:hover,
#main-nav .navbar-nav .active>.nav-link {
    color: black !important;
    background-color: var(--verde) !important;
}


/* Fix Header Z-Index Overlap */
#wrapper-navbar,
.navbar,
header {
    z-index: 999999 !important;
    /* Ensure header is above content */
    position: relative;
    /* Ensure z-index applies */
}

.card-img,
.card-img-bottom,
.card-img-top {
    height: 200px !important;
    /* Define la altura máxima deseada */
    object-fit: cover !important;
    /* ¡Clave para evitar deformación! */
}


.card-title {
    font-size: 1.3rem !important;
}

.miespacio a,
.salir a,
.registro a,
.acceso a {
    display: flex !important;
    align-items: center;
    flex-direction: row;
}

.miespacio a::before,
.salir a::before,
.registro a::before,
.acceso a::before {
    font-family: "dashicons";
    margin-right: 8px;
    color: white;
}

.miespacio a:hover::before,
.salir a:hover::before,
.registro a:hover::before,
.acceso a:hover::before,
.miespacio.current-menu-item a::before,
.salir.current-menu-item a::before,
.registro.current-menu-item a::before,
.acceso.current-menu-item a::before {
    color: black;
}

.miespacio a::before {
    content: "\f194";
}

.salir a::before {
    content: "\f153";
}

.registro a::before {
    content: "\f10f";
}

.acceso a::before {
    content: "\f112";
}

#wrapper-footer a {
    text-decoration: none;
}

#wrapper-footer a:hover {
    color: white;
}

.verinscripciones {
    background: transparent;
    color: var(--fucsia) !important;
}

.verinscripciones:hover {
    background: transparent !important;
    color: var(--verde) !important;
}


::selection {
    background: var(--fucsia);
    color: #fff;
}