:root {
  --color-primary: #1f6b5b; /* VERDE INSTITUCIONAL */
  --color-secondary: #b4bc7b; /* VERDE OLIVA */
  --color-terciary: #243b3e;
  
  --color-text: #0B383C;
  --color-white: white;
}

body {
  background-color: white;
  color: var(--color-text) !important;
  font-family: 'Verdana', sans-serif !important;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.btn {
    border-radius: 15px !important;
}

.btn-white {
    background-color: white;
    border-color: white;
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    min-width: 150px;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
  background: linear-gradient(90deg,rgba(13, 56, 60, 1) 0%, rgba(31, 107, 91, 1) 50%);
}

a {
  color: var(--color-link);
}
a:hover,
a:focus {
  color: var(--color-link-hover);
}

small {
	font-size: .65em;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);  /* en botones es aceptable blanco sobre rgb(25,135,84) si el texto es grande */
  font-weight: bold;
}
.btn-primary:hover {
  background-color: var(--color-primary);
}
.bg-primary {
  background-color: var(--color-primary) !important;
}

.btn-black {
  background-color: black;
  border-color: black;
  color: var(--color-white);  /* en botones es aceptable blanco sobre rgb(25,135,84) si el texto es grande */
  font-weight: bold;
  min-width: 200px;
}
.btn-black:hover {
  background-color: black;
  color:white;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
 	color: var(--color-secondary) !important;	
}
  
.text-white {
  color: white !important;
}
.text-last-center {
	text-align-last: center; 
}

.border {
  border-color: var(--color-border) !important;
}

.nav-link {
    font-weight: bold;
}

a.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}

a.skip-link:focus {
  top: 0;
}

span.visually-hidden {
    background-color: var(--color-primary);
}

/*HEADER*/

#site-header #logo-floater #branding,
div.language {
    margin: 0 auto;
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5px 3rem !important;
}

div.language {
	padding: 5px 1rem !important;
}

#site-header #logo-floater #branding a {
    font-family: 'Lato', sans-serif;
    font-size: 12px;    
}

#site-header #logo-floater #branding .site_slogan {
    width: 50%;
    position: relative;
    font-size: 12px;
    color: #000000;
    text-align: left;
    line-height: 1.3em;
    font-weight: normal;
}
#site-header #logo-floater #branding .logo {
    width: 50%;
    display: block;
    text-align: right;
}
#site-header #logo-floater #branding .logo img {
    max-height: 20px;
    max-width: 120px;
    width: auto;
}
/* Sticky header */
  #site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
  /* Barra superior */
  #site-header .top-bar {
    background-color: var(--color-primary);;
    font-size: 0.875rem;
  }
  #site-header .top-bar a {
    margin-left: 1rem;
    text-decoration: none;
    color: white;
  }
  
  #site-header .top-bar a.active {
    color: var(--color-secondary);
    font-weight: bold;
    text-decoration: underline;
  }
  
  #site-header .top-bar a:hover {
    text-decoration: underline;
  }
  /* Logo */
  #site-header .navbar-brand img {
    max-height: 40px;
  }
  /* Enlaces de nav principal */
  #site-header .navbar-nav .nav-link {
    color: #1f695a;
    padding: 0.5rem .6rem;
    letter-spacing: .1em;
    font-weight: bold;
	text-transform: uppercase;
	font-size: .9em;    
  }
  #site-header .navbar-nav .nav-link:hover {
    color: var(--color-secondary);
  }
  /* Buscador */
  #site-header .form-search {
    position: relative;
  }
  #site-header .form-search input {
    padding-right: 2.5rem;
  }
  #site-header .form-search .btn-search {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #212529;
  }
  
#header .region-header-top {
    max-width: 1050px;
    margin: 0 auto;
    background-color: #FFFFFF;
    color: #000000;
    height: 40px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.form-register {
    margin: 40px auto;
    width: 80%;
}

.element-invisible {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
}


.btn-check:checked+.btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
}   

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    background-color: #cdcdcd;
    border-color: #cdcdcd;
}

.input-otp {
  border: 1px solid #739f96 !important;
  border-radius: 0.5rem !important;
  font-size: 1.5em !important;
  width: 55px;
  text-align: center;
}

#logoMadrid {
	height: 30px;
}

#logoCo2responsables {
	height: 100px;
}


a {
	text-decoration: none;
}

footer .list-unstyled a {
	text-transform: uppercase;
}

footer .list-unstyled a p {
	text-transform: none;
} 

.btn-acceso {
   display: inline-flex;
   align-items: center;
   background: linear-gradient(to right, #0b383c 25%, #1d6b5b 60%);
   border: none;
   border-radius: 10px;
   padding: 8px 20px;
   color: white;
   font-weight: 500;
   font-size: 1.3rem;
   text-decoration: none;
   transition: background 0.3s ease;
 }

 .btn-acceso:hover {
   color:white;
 }

 .btn-acceso i {
   margin-right: 10px;
   font-size: 1.2rem;
 }
  
ul.tabs.primary {
    position: relative;
    top: 10px;
    border: 0;
    list-style: none;
    margin: auto;
    padding: 0;
    width: 100%;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

@media screen and (max-width: 600px) {
    ul.tabs.primary {
        justify-content:flex-start;
    }
}

.node-type-frontpage ul.tabs.primary {
    top: 7px;
}

ul.tabs.primary li {
    list-style: none;
    margin: 0;
    padding: 0;
    margin: 5px;
    flex: 1 1 0;
}

ul.tabs.primary li:first-child {
    margin-left: 0;
}

ul.tabs.primary li:last-child {
    margin-right: 0;
}

@media screen and (max-width: 600px) {
    ul.tabs.primary li {
        flex-grow:0;
        margin: 4px;
    }
}

@media screen and (max-width: 600px) {
    .page-user ul.tabs.primary li {
        flex-grow:1;
    }
}

@media screen and (max-width: 480px) {
    .page-user ul.tabs.primary li {
        flex-basis:100%;
        margin: 3px 0;
    }
}

ul.tabs.primary a,ul.primary li.active a {
    font-size: 14px;
    font-weight: 100;
    background: #E3E3E3;
    border: 0;
    color: white;
    display: block;
    margin: auto;
    padding: 15px 20px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 15px;
    box-shadow: 1px 5px 5px 0px rgba(0, 0, 0, .7);
}

ul.tabs.primary a,ul.primary li a {
    color: var(--color-primary);
}

@media screen and (max-width: 1024px) {
    ul.tabs.primary a,ul.primary li.active a {
        font-size:12px;
        padding: 10px 15px;
    }
}

@media screen and (max-width: 768px) {
    ul.tabs.primary a[href*="user"],ul.primary li.active a[href*="user"] {
        padding:5px 10px;
        font-size: 16px;
        text-transform: uppercase;
    }
}

@media screen and (max-width: 374px) {
    ul.tabs.primary a[href*="user"],ul.primary li.active a[href*="user"] {
        font-size:14px;
    }
}

@media (prefers-color-scheme: dark) {
    body:not(.page-node-edit):not(.page-node-add) ul.tabs.primary a,body:not(.page-node-edit):not(.page-node-add) ul.primary li.active a {
        background:#373737;
        color: #e6e6e6;
    }
}

ul.tabs.primary a:hover,ul.tabs.primary a.active {
    background: linear-gradient(90deg, rgba(13, 56, 60, 1) 0%, rgba(31, 107, 91, 1) 50%);
}

ul.tabs.primary a:hover:not(.active) {
    color: var(--color-secondary);
}

.form-label {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 300;
    margin-bottom: 0px;
}

.form-text {
    font-size: 14px;
    font-size: 1.4rem;
    color: #999999;
}

.banner-portada {
	background-image: url(/images/banner-portada.jpeg);
    background-size: cover;
    background-position: center;
}

.banner-portada h1 {
	text-transform: uppercase;
}
.banner-portada h1.display-1 {
	line-height: 0.7;
}

.text-1px {
	letter-spacing: 1px;
}

.lato-thin {
	font-family: 'Lato', sans-serif;
    font-weight: 100;
}

@media (min-width: 1200px) {
    .display-1 {
        font-size: 5.7rem;
    }
}

p, h1, h2, h3, h4, h5 {
	color: var(--color-text);
}

.banner-portada p, 
.banner-portada h1,
.banner-portada h2, 
.banner-portada h3, 
.banner-portada h4, 
.banner-portada h5 {
	color: white;
}


.div-img-access {
	border-radius: 50px;box-shadow: inset 0 0 0 2000px var(--color-secondary);
}

.div-img-access.primary {
	border-radius: 50px;box-shadow: inset 0 0 0 2000px var(--color-primary);
}

.br-50 {
	border-radius: 50px;
}

.text-justify {
	text-align: justify !important;
}

div#portrait-carousel  .logos-slide div.div-logo {
	background-size: cover;
	background-position: center;
	box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, .5);
}

div#portrait-carousel h3 {
	color: white;
	text-align: center;
	font-family: 'Lato', sans-serif;
	font-weight: 100;
	margin-top: 150px;
}

.section-borders {
	border-radius: 60px;
	box-shadow: 3px 3px 10px 2px rgba(0, 0, 0, .3);
	background-color: white;
}

.section-participa {
	background-color: var(--color-secondary);
}

.text-shadow {
	color: white;
	text-shadow: 1px 1px 2px black;
	font-weight: bold;
}

.div-participa1 {
	background-image: url(/images/participa1.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    min-height: 400px;
}

.div-participa2 {
	background-image: url(/images/participa2.jpg);
    background-size: cover;
    background-position: center;
    border-radius: 40px;
    min-height: 400px;
}

h1.h1-5 {
	font-size: 4em;
}

.div-p-establecimientos {
	margin-top: -400px;
	padding-top: 100px;
	background-color: var(--color-secondary);
	border-radius: 60px;
	padding-bottom: 50px;
	box-shadow: 3px 3px 10px 3px rgba(0,0,0,.7);
	z-index: 100;
}

.div-p-visitantes {
	margin-top: -400px;
	padding-top: 100px;
	background-color: white;
	border-radius: 60px;
	padding-bottom: 50px;
	box-shadow: 3px 3px 10px 3px rgba(0,0,0,.7);
	z-index: 100;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logos {
	background: linear-gradient(#FFF 50%, var(--color-secondary) 50%);
}

.logos::before, 
.logos::after {
    content: '';
    width: 300px;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 2;
}

.logos::before {
    left: 0;
    
}

.logos::after {
    right: 0;
    
}

.logos-slide {
    animation: 40s slide infinite linear;
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide div {
    height: 350px;
    width: 300px;
    margin: 0 5px;
    border-radius: 50px;
    display: inline-block;
}

@keyframes slide {
    from{
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

section.section-preguntas {
	position: relative;
}

section.section-preguntas h1 {
	font-size: 3em;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    letter-spacing: 4px;
}

section.section-preguntas .img-preguntas {
	background-image: url(/images/img-preguntas.jpg);
    position: absolute;
 	top: 0px;
 	left: 50%; 
 	width: 50%; 
 	height: 1000px;
 	background-position: 0 0; 
 	background-repeat:no-repeat; 
 	background-size: cover;
 	z-index: -1;
}

section.section-preguntas .bg-preguntas {
	background-color: rgba(255, 255, 255, .7);
    position: absolute;
 	top: 0px;
 	left: 0; 
 	width: 100%; 
 	height: 250px;
 	background-position: 0 0; 
 	background-repeat:no-repeat; 
 	background-size: cover;
 	z-index: -1;
}

.hide {
  transition: all 1s ease-out;
  opacity: 0;  
}

.section-botones h3{
	text-transform: uppercase;
	min-height: 120px;
} 

.form-control, .form-select {
	border-radius: 15px;
    padding: .5rem .75rem;
    box-shadow: 5px 7px 9px -3px rgba(205, 205, 205, 1);
    border: 1px solid rgb(205 205 205);
    font-size: .8em;
}

form p {
	color: var(--color-text) !important;
    text-align: justify;
    margin-top: 10px;
}

.input-group-text {
    align-items: center;
    padding: .5rem .75rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: black;
    text-align: center;
    white-space: nowrap;
    background-color: white;
    border: 1px solid #cdcdcd;
    border-radius: 15px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.input-group {
	box-shadow: 5px 7px 9px -3px rgba(205, 205, 205, 1);
	border-radius: 15px;
}

.input-group>.form-control, .input-group>.form-floating, .input-group>.form-select {
    border-right: 0px;
    box-shadow: none;
}

.input-group-append {
	background-color: transparent;
}


button#togglePassword {
	border-top-right-radius: 15px !important;
    border-color: #cdcdcd !important;
    border-bottom-right-radius: 15px !important;
    color: black;
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
    border-left: 0px !important;
}   

form#preloginForm .btn, #div-otp .btn, #div-logado .btn {
	cursor: pointer;
    box-shadow: 1px 1px 1px 1px #cdcdcd;
    min-width: 250px;
}

form#preloginForm .btn-secondary, #div-otp .btn-secondary, #div-logado .btn-secondary {
	background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
}

.div-contacto {
	background: var(--color-text);
}

p.MsoNormal, p > span {
    font-family: 'Verdana', sans-serif !important;
    line-height: 1.4em !important;
    font-size: 1em !important;
    color: var(--color-text) !important;
}

.row-pregunta {
	background: white; 
	border-radius:35px;
	box-shadow: 3px 3px 10px 2px rgba(0, 0, 0, .3);
	border-radius: 50px;
}

.col-pregunta {
	min-height:210px;
	background-color: var(--color-primary);
	border-radius: 50px;
}

.col-logo-footer {
	text-align: center;
}





.language-selector {
  position: relative;
  display: inline-block;
}

.current-language {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  display: inline-block;
  transform: rotate(270deg); /* < girado 90º para apuntar hacia abajo */
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.current-language img {
  width: 32px;
  height: auto;
}

.language-options {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  margin: 0;
  padding: 5px 0;
  z-index: 1000;
  width: max-content;
  min-width: 120px;
}

.language-options li {
  padding: 5px 10px;
}

.language-options li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
}

.language-options li img {
  width: 20px;
  margin-right: 8px;
}

.language-selector.show .language-options {
  display: block;
}
