/*
Theme Name: fseneca SeCyT Wordpress
Author: fseneca.es
Description: Tema propio de fseneca para la SeCyT
Version: 0.0.2
Tags: secyt custom fseneca
*/


/* =Reset
-------------------------------------------------------------- */

html, body, div, span, applet, object, iframe,
/*
h1, h2, h3, h4, h5, h6,p, blockquote,fieldset,legend, label, em
*/
pre,a, abbr, acronym, address, big, cite, code,del, dfn,  font, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,
dl, dt, dd,
ol, ul, li, form,table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}
html {
    font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */
    overflow-y: scroll; /* Keeps page centred in all browsers regardless of content height */
    -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */
    -ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */
}
body {
    background: #fff;
}
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section {
    display: block;
}
ol, ul {
    list-style: none;
}
table { /* tables still need 'cellspacing="0"' in the markup */
    border-collapse: separate;
    border-spacing: 0;
}
caption, th, td {
    font-weight: normal;
    text-align: left;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: "";
}
blockquote, q {
    quotes: "" "";
}
a:focus {
    outline: thin dotted;
}
a:hover,
a:active { /* Improves readability when focused and also mouse hovered in all browsers people.opera.com/patrickl/experiments/keyboard/test */
    outline: 0;
}
a img {
    border: 0;
}


body{

    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
     text-align: justify; /* Justifica el texto */
  line-height: 1.5;    /* Establece el interlineado en 1.5 */
    color:#555555;
    margin:0;
    background-color:#FAFAFA;
    font-size: 16px;
}


h1{
    font-size: 26px;
}



.fg-green{
    color: #3cd52e;
}

.fg-white{
    color: white;
}


.bg-green{
    background-color: #3cd52e;
}

.bg-white{
    background-color: #FFF;
}

.bg-grey3{
    background-color: #333;
}
.bg-grey6{
    background-color: #666;
}
.bg-grey8{
    background-color: #888;
}
.bg-greyA{
    background-color: #AAA;
}

.bg-greyC{
    background-color: #CCC;
}
.bg-greyE{
    background-color: #EEE;
}


.wrap{
    margin:0 auto;
    max-width: 1300px;
}


.wrapper-wide{
    margin:0 auto;
    padding:1em;
}

.wrapper{
    margin:0 auto;
    padding:1em;
    max-width: 1300px;
}


a{
    text-decoration:none;
    color:#3cd52e;
    outline: 0;
}

a:hover{
    color:#008800;
}


p{

}

strong {
    font-weight: bold;
}


#head {
    margin: 0;
    text-align:center;
    padding:0.5em 1em;
}


header{
    z-index:1;
    width:100%;
}


#header-content{
    padding:0.7em 2em;
    background-color:white;
    text-align:center;
}


#header-logos {
    display : flex;
    align-items: center;
}

#header-logos > * {
    margin: 0 1.5em;

}

#header-logos img {
    max-height: 3.5em;
    max-width: 100%;
}


#header-menu{
    font-weight:bold;
    margin:1em;
}

 /* Espacio disponible para el menú */
#header-menu {
    flex: 1 1 700px;
    width: 100%;
    min-width: 0;
    margin: 12px 0;
}

/* Columnas iguales con ancho máximo: con 4 o 5 botones no se estiran en exceso
   y el grupo queda centrado */
#menu-principal {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 145px), 220px));
    justify-content: center;
    grid-auto-rows: 1fr;
    gap: 10px;

    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

/* Elimina los márgenes originales del tema */
#menu-principal > li {
    display: block;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Botones de igual tamaño */
#menu-principal > li > a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 54px;
    box-sizing: border-box;
    padding: 10px 14px;


    border-radius: 8px;
    background: white;
    color: #205d3c;

    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;

    transition: background-color 0.2s, color 0.2s;
}

/* Ratón y página seleccionada */
#menu-principal > li > a:hover,
#menu-principal > li.current-menu-item > a,
#menu-principal > li.current_page_item > a,
#menu-principal > li.current-menu-ancestor > a {
    background: #263d36;
    border-color: #263d36;
    color: #fff;
}

/* Navegación con teclado */
#menu-principal > li > a:focus-visible {
    outline: 2px solid #205d3c;
    outline-offset: 3px;
}

/*
#menu-principal {
    display: flex;
    flex-direction: column;
}

#menu-principal li{
    margin: 0 0.5em;
}


#menu-principal li a{
    color: #666;
}

#menu-principal .current_page_item a {
    color:#3cd52e;
}

#menu-principal li a:hover{
    color: #3cd52e;
}
*/


#header-social img{
    height:1.4em;
    margin:0.2em;
    transition: all .3s ease;
}
#header-social img:hover{
    height:1.6em;
    margin:0.1em;
}


footer{
    background-color:#333;
    color:white;
    padding:1em 0;
}


#footer-widget-logos p {
    text-align:center;
}


#footer-social{
    text-align:center;
    width:100%;
    margin:2em 0;
}
#footer-social img{
    height:1em;
    margin:0.3em;
    transition: all .3s ease;
}
#footer-social img:hover{
    height:1.2em;
    margin:0.2em;
}


#footer-widget .widget{
    flex:1;
    text-align: center;
}


#actividades-horz {
    display: flex;
    flex-wrap: wrap;
}


#fact {
    margin: 1em;
}

#lact {
    list-style: square;
    margin: 2em 0 2em 0;
    max-height: 30em;
    overflow-y: scroll;
    padding: 2em 3em;

    border-width:  2em 0 ;
    border-color: white;
    border-style: solid;

    background-color: white;
}

#bact{
    border: 0;
    background-color: #666;
    color: white;
    padding: 1em;

}


.list, article ul {
    list-style: square;
    margin: 1em;
}

.list li {
    margin-bottom: 2em;
}


.custom-select{
    margin: 1em 0;
}

.custom-select label {
    /*    color: #3cd52e; */
    font-weight: bold;
}

.custom-select select {
    width: 100%;
    border: 0;
    background-color: #3cd52e;
    color: white;
    padding: 0.5em;
    font-weight: bold;

}

.tacos {
}

.tacos.wp-block-columns {
    column-gap: 0em;
    row-gap: 0em;


}


.wp-block-cover .has-background-dim:not([class*="-background-color"]), .wp-block-cover-image .has-background-dim:not([class*="-background-color"]), .wp-block-cover-image.has-background-dim:not([class*="-background-color"]), .wp-block-cover.has-background-dim:not([class*="-background-color"]) {
    /*    background-color: #333 !important; */
}

.wp-block-image.aligncenter{
    display: block; margin-left: auto; margin-right: auto
}


.wp-block-image.alignright {float:right; margin:0 0 1em 1em}
.wp-block-image.alignleft {float:left; margin:0 1em 1em 0}
.wp-block-image.aligncenter {display: block; margin-left: auto; margin-right: auto}

.wp-block-file__button {
    background: #3cd52e !important;
    padding: 0.5em !important;
}


.act-cal {
    margin-bottom: 1em;

}


.act-cal-day{
    margin: 1em;
}

.act-cal-day h4{
    text-align:center; border-bottom:0px solid #3cd52e; background-color: #3cd52e; color: white; margin: 0.5em;

}

.act-cal-day summary {
    cursor: pointer;
    color: #3cd52e;
    font-weight: bold;
}

.act-cal-day details {

}


details {
    padding: 0.25em;
}

details summary {
    cursor: pointer;
    transition: margin 300ms ease-out;
}

details[open] summary {
    margin-bottom: 10px;
}

.act-cal-item {
    margin: 0.5em 0;
    padding: 0.5em;
    background-color: white;
}


td {
    padding: 0.2em;
}


.tacos img {
    width: initial !important;
    height: 100% !important;
    top: initial !important;
    bottom: initial !important;
    left: initial !important;
    right: initial !important;

}

footer a {
    color: #41E432;

}


.wpcf7-form input, select {
    width: 100%;
    font-size: large;
}

.wpcf7-form input[type=submit],input[type=button] {
    width: initial;
}


@media only screen and (min-width: 1300px) {

    #head {
	margin: 0;
	text-align:left;
	padding:0;
    }
}

@media only screen and (min-width: 600px) {

/*
    #menu-principal {
	flex-direction: row;
    }

    #menu-principal li {
	margin: 0.5em 3em;
	font-size:large;
    }
*/


    #header-content{

	display:flex;
	justify-content: space-between;
	flex-wrap: wrap;

    }

    #header-menu{
	margin: auto 0;
    }

    #header-social{
	margin: auto 0;
	display:flex;
    }

    #footer-widget{
	display:flex;
	flex-wrap:wrap;

    }

    #actividades-horz {

	flex-wrap: nowrap;
    }


    #fact {
	margin: 1em 0;
    }


    #lact {


    }

    .act-cal {
	display: flex;
	justify-content: space-evenly ;
    }

    .act-cal-day {
	flex: 1 1 0;
    }


}

/* =Buscador y calendario Secyt 26 — octubre 2026
-------------------------------------------------------------- */

/* Secyt 26: diseño del buscador y del calendario integrado en el tema.
   Compatible con el HTML aportado de [actividades] y [actividades-cal].
   No modifica consultas, parámetros GET ni el comportamiento del calendario. */

:is(#actividades, #actividades-horz):has(#fact) {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  color: #293b31;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

:is(#actividades, #actividades-horz) #fact,
:is(#actividades, #actividades-horz) #fact * {
  box-sizing: border-box;
}

:is(#actividades, #actividades-horz) #fact {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0 0 28px !important;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #dce4da;
  border-radius: 12px;
  background: #fff !important;
  color: #293b31;
  scroll-margin-top: 110px;
}

:is(#actividades, #actividades-horz) #act-search {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px 24px;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

:is(#actividades, #actividades-horz) #act-search > div {
  display: block;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent !important;
}

:is(#actividades, #actividades-horz) #act-search label {
  display: block;
  margin: 0 0 9px;
  color: #394b40 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
}

:is(#actividades, #actividades-horz) #act-search br { display: none; }

:is(#actividades, #actividades-horz) #act-search select {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #ccd8cd !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #293b31 !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: normal;
  text-transform: none;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  color-scheme: light;
}

:is(#actividades, #actividades-horz) #act-search select option {
  background: #fff;
  color: #293b31;
}

:is(#actividades, #actividades-horz) #act-search select:focus-visible {
  outline: 3px solid #9cc3a7;
  outline-offset: 2px;
  border-color: #205d3c !important;
}

:is(#actividades, #actividades-horz) #bact {
  grid-column: 1 / -1;
  justify-self: end;
  float: none !important;
  width: auto !important;
  min-width: 150px;
  min-height: 46px;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 24px !important;
  border: 1px solid #205d3c !important;
  border-radius: 6px !important;
  background: #205d3c !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.4;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
}

:is(#actividades, #actividades-horz) #bact:hover {
  background: #16452b !important;
}

:is(#actividades, #actividades-horz) #bact:focus-visible {
  outline: 3px solid #9cc3a7;
  outline-offset: 3px;
}

/* Resultados sin una segunda barra de desplazamiento. */
:is(#actividades, #actividades-horz) #lact {
  display: block !important;
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: transparent !important;
  list-style: none !important;
  columns: auto !important;
}

:is(#actividades, #actividades-horz) #lact > li {
  display: block;
  float: none;
  width: auto;
  margin: 0 !important;
  padding: 20px 4px !important;
  border-bottom: 1px solid #e0e7de;
  background: transparent;
  color: #637168;
  font-size: 14px;
  line-height: 1.6;
  list-style: none !important;
  overflow-wrap: anywhere;
}

:is(#actividades, #actividades-horz) #lact > li > a {
  display: block;
  margin-bottom: 5px;
  color: #293b31 !important;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

:is(#actividades, #actividades-horz) #lact > li > a b {
  color: inherit !important;
  font-weight: inherit;
}

:is(#actividades, #actividades-horz) #lact > li > a:hover {
  color: #205d3c !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Calendario existente: conserva details/summary y los horarios reales. */
.act-cal {
  display: grid !important;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 36px 0;
  padding: 0;
  color: #293b31;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.act-cal .act-cal-day {
  box-sizing: border-box;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

.act-cal .act-cal-day > h4 {
  margin: 0 0 10px !important;
  padding: 13px 16px !important;
  border-radius: 6px;
  background: #edf3e9 !important;
  color: #205d3c !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.act-cal details {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e0e7de;
  background: transparent;
}

.act-cal summary {
  padding: 12px 8px;
  color: #394b40 !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.act-cal summary::marker { color: #205d3c; }
.act-cal details[open] > summary { color: #205d3c !important; }
.act-cal summary:hover { background: #f3f6f0; }

.act-cal .act-cal-item {
  padding: 14px 12px;
  border-top: 1px solid #edf0ea;
  color: #637168;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.act-cal .act-cal-item a,
.act-cal .act-cal-item a b {
  color: #205d3c !important;
  font-weight: 600;
  text-decoration: none;
}

.act-cal .act-cal-item a:hover { text-decoration: underline; }
.act-cal .act-cal-item .date { color: #637168; }

@media (max-width: 700px) {
  :is(#actividades, #actividades-horz) #act-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  :is(#actividades, #actividades-horz) #bact {
    justify-self: stretch;
    width: 100% !important;
  }
  .act-cal { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* El reset del tema elimina el contorno: restablecerlo en los enlaces y horarios. */
:is(#actividades, #actividades-horz) #lact a:focus-visible,
.act-cal a:focus-visible,
.act-cal summary:focus-visible {
    outline: 3px solid #9cc3a7;
    outline-offset: 3px;
}

/* Paginación del shortcode de actividades: 20 resultados por página. */
:is(#actividades, #actividades-horz) .secyt-resultados-resumen {
  margin: 12px 0 16px;
  color: #637168;
  font-size: 14px;
}
:is(#actividades, #actividades-horz) .secyt-paginacion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0;
}
:is(#actividades, #actividades-horz) .secyt-paginacion .page-numbers {
  display: inline-flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #dce4da;
  border-radius: 6px;
  background: #fff;
  color: #205d3c;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
:is(#actividades, #actividades-horz) .secyt-paginacion .current {
  background: #205d3c;
  border-color: #205d3c;
  color: #fff;
}
:is(#actividades, #actividades-horz) .secyt-paginacion a:hover { background: #edf3e9; }
:is(#actividades, #actividades-horz) .secyt-paginacion a:focus-visible { outline: 3px solid #9cc3a7; outline-offset: 3px; }
:is(#actividades, #actividades-horz) .secyt-paginacion .dots { border: 0; background: transparent; min-width: 20px; padding: 8px 2px; }

/* Portada sin imágenes: solo afecta a los bloques de .secyt-inicio. */
.secyt-inicio {
  box-sizing: border-box;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 42px 24px;
  color: #293b31;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.secyt-inicio *, .secyt-inicio *::before, .secyt-inicio *::after { box-sizing: border-box; }
.secyt-inicio > .secyt-inicio-columnas {
  display: grid !important;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  align-items: start;
  gap: 48px;
  margin: 0 !important;
}
.secyt-inicio .secyt-inicio-columnas > .wp-block-column {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
}
.secyt-inicio .secyt-inicio-etiqueta {
  margin: 0 0 12px;
  color: #205d3c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.secyt-inicio h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.25; }
.secyt-inicio h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.secyt-inicio p { margin: 0 0 18px; }
.secyt-inicio .secyt-inicio-espacio {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid #dce4da;
}
.secyt-inicio .secyt-inicio-espacio p { margin: 0; color: #637168; font-size: 15px; }
.secyt-inicio .secyt-inicio-espacio a { color: #205d3c; text-decoration: none; }
.secyt-inicio .secyt-inicio-espacio a:hover { text-decoration: underline; text-underline-offset: 4px; }
.secyt-inicio a:focus-visible { outline: 3px solid #9cc3a7; outline-offset: 3px; }
.secyt-inicio .secyt-inicio-derecha > h3 { margin-top: 34px; }
.secyt-inicio .act-cal { gap: 12px; }
.secyt-inicio .act-cal-day > h4 { padding: 12px 10px !important; font-size: 14px; }
.secyt-inicio .secyt-inicio-jardin {
  margin: 48px 0 0;
  padding: 32px;
  border-radius: 10px;
  background: #edf3e9;
}
.secyt-inicio .secyt-inicio-jardin p { max-width: 1050px; }
.secyt-inicio .secyt-inicio-jardin p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) {
  .secyt-inicio > .secyt-inicio-columnas { gap: 28px; }
  .secyt-inicio #actividades #act-search { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 781px) {
  .secyt-inicio { padding: 28px 16px; }
  .secyt-inicio > .secyt-inicio-columnas { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .secyt-inicio .secyt-inicio-jardin { padding: 24px 20px; margin-top: 32px; }
}

/* ===== FALDÓN DE ACTIVIDADES SECYT26 ===== */
/* Franja independiente: no modifica los menús ni el resto del tema. */
.secyt-faldon{--sf-bg:#263d36;--sf-text:#fff;--sf-accent:#dfebbd;display:flex;align-items:center;gap:0;width:100%;max-width:none;margin:0;background:var(--sf-bg);color:var(--sf-text);font:500 14px/1.4 Montserrat,Arial,sans-serif;box-sizing:border-box;min-height:50px}
.secyt-faldon *{box-sizing:border-box}
.secyt-faldon__label{flex:0 0 auto;padding:0 22px;color:var(--sf-accent);font-size:10px;letter-spacing:.13em;font-weight:700;text-transform:uppercase;border-right:1px solid #ffffff35}
.secyt-faldon__viewport{flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin}
.secyt-faldon__track{display:flex;width:max-content}
.secyt-faldon__group{display:flex;align-items:center;justify-content:space-around;flex-shrink:0;width:max-content;list-style:none;margin:0!important;padding:0!important}
.secyt-faldon__item{display:flex;align-items:center;flex:0 0 auto;margin:0!important;padding:0!important;white-space:nowrap}
.secyt-faldon__item::after{content:'✦';font-size:12px;color:var(--sf-accent);padding:0 30px}
.secyt-faldon a.secyt-faldon__link{display:block;padding:16px 0;color:var(--sf-text);font:inherit;text-decoration:none;white-space:nowrap}
.secyt-faldon a.secyt-faldon__link:hover{text-decoration:underline;text-underline-offset:4px;color:var(--sf-accent)}
.secyt-faldon__arrow{margin-left:10px;color:var(--sf-accent)}
.secyt-faldon .secyt-faldon__toggle{flex:0 0 auto;align-self:stretch;border:0;border-left:1px solid #ffffff35;border-radius:0;background:transparent;color:white;font:500 12px Arial,sans-serif;padding:0 18px;min-height:48px;cursor:pointer;box-shadow:none}
.secyt-faldon [hidden]{display:none!important}
.secyt-faldon :focus-visible{outline:2px solid var(--sf-accent);outline-offset:-3px}
.secyt-faldon.is-ready .secyt-faldon__viewport{overflow:hidden}
.secyt-faldon.is-ready .secyt-faldon__track{animation:secyt-faldon-scroll var(--sf-duration,60s) linear infinite}
.secyt-faldon.is-paused .secyt-faldon__track,.secyt-faldon.is-hidden .secyt-faldon__track,.secyt-faldon:hover .secyt-faldon__track{animation-play-state:paused}
/* Al navegar con teclado, se ofrece la lista original desplazable. */
.secyt-faldon__viewport:focus-within{overflow-x:auto!important}
.secyt-faldon__viewport:focus-within .secyt-faldon__track{animation:none!important;transform:none!important}
.secyt-faldon__viewport:focus-within .secyt-faldon__clone{display:none}
.secyt-faldon.is-static .secyt-faldon__track{animation:none!important}
.secyt-faldon.is-static .secyt-faldon__viewport{overflow-x:auto}
.secyt-faldon.is-static .secyt-faldon__clone{display:none}
@keyframes secyt-faldon-scroll{to{transform:translateX(calc(-1 * var(--sf-distance)))}}
@media(max-width:600px){.secyt-faldon__label{padding:0 12px;font-size:9px;max-width:94px;line-height:1.6}.secyt-faldon{font-size:13px}.secyt-faldon .secyt-faldon__toggle{padding:0 12px}.secyt-faldon__item::after{padding:0 22px}}
@media(prefers-reduced-motion:reduce){.secyt-faldon .secyt-faldon__track{animation:none!important}.secyt-faldon .secyt-faldon__clone{display:none}.secyt-faldon .secyt-faldon__viewport{overflow-x:auto}}


/* Cabecera fija al hacer scroll.
   Un sticky no sale de su contenedor y el menú está dentro de la cabecera,
   así que se fija la cabecera completa (cubre #head y el <header> del tema). */
#head,
header:has(#header-content) {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(38, 61, 54, 0.12);
}

/* Compensa la barra de administración de WordPress */
body.admin-bar #head,
body.admin-bar header:has(#header-content) {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar #head,
    body.admin-bar header:has(#header-content) {
        top: 46px;
    }
}

/* En móvil la barra de administración deja de ser fija */
@media (max-width: 600px) {
    body.admin-bar #head,
    body.admin-bar header:has(#header-content) {
        top: 0;
    }
}

/* ================================================================
   BUSCADOR SECYT26: LISTA / TARJETAS
   Añadir este bloque AL FINAL del style.css actual.
   No sustituye los estilos del formulario, cabecera ni marquesina.
   ================================================================ */
.secyt-buscador .secyt-vistas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font: 600 14px/1.4 Montserrat, Roboto, Arial, sans-serif;
    color: #637168;
}
.secyt-buscador .secyt-vistas > span { margin-right: 6px; }
.secyt-buscador .secyt-vistas .secyt-vistas__opcion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid #dce4da;
    border-radius: 7px;
    background: #fff;
    color: #205d3c;
    font: inherit;
    text-decoration: none;
    box-sizing: border-box;
}
.secyt-buscador .secyt-vistas .secyt-vistas__opcion:hover { background: #f0f5ef; }
.secyt-buscador .secyt-vistas .secyt-vistas__opcion.is-active {
    background: #263d36;
    border-color: #263d36;
    color: #fff;
}
.secyt-buscador .secyt-vistas a:focus-visible,
.secyt-buscador .secyt-card a:focus-visible {
    outline: 3px solid #205d3c;
    outline-offset: 3px;
}
/* Mayor especificidad para superar el display:block !important anterior. */
:is(#actividades, #actividades-horz).secyt-buscador #lact.secyt-resultados--tarjetas {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    align-items: stretch;
    gap: 18px;
    width: 100% !important;
    max-width: none;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    list-style: none;
    columns: auto !important;
    box-sizing: border-box;
}
:is(#actividades, #actividades-horz).secyt-buscador #lact.secyt-resultados--tarjetas > li.secyt-card {
    display: flex;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #dce4da;
    border-radius: 12px;
    background: #fff;
    color: #293b31;
    list-style: none;
    box-sizing: border-box;
    box-shadow: 0 3px 12px rgba(38, 61, 54, .04);
    font: 400 14px/1.6 Montserrat, Roboto, Arial, sans-serif;
    overflow-wrap: anywhere;
}
.secyt-buscador .secyt-card__contenido {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 22px;
}
.secyt-buscador .secyt-card .secyt-card__titulo {
    margin: 0 0 9px;
    padding: 0;
    font: 600 20px/1.3 Montserrat, Roboto, Arial, sans-serif;
    text-transform: none;
}
.secyt-buscador .secyt-card .secyt-card__titulo a { color: #293b31; text-decoration: none; }
.secyt-buscador .secyt-card .secyt-card__titulo a:hover { color: #205d3c; text-decoration: underline; }
.secyt-buscador .secyt-card .secyt-card__entidad {
    margin: 0 0 18px;
    color: #637168;
    font: 500 13px/1.5 Montserrat, Roboto, Arial, sans-serif;
}
.secyt-buscador .secyt-card .secyt-card__datos { margin: 8px 0 22px; padding: 0; }
.secyt-buscador .secyt-card__dato {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1eb;
}
.secyt-buscador .secyt-card__dato:first-child { padding-top: 0; }
.secyt-buscador .secyt-card__dato:last-child { border-bottom: 0; }
.secyt-buscador .secyt-card__dato dt {
    margin: 0;
    color: #205d3c;
    font-weight: 600;
}
.secyt-buscador .secyt-card__dato dd { margin: 0; color: #46564c; }
.secyt-buscador .secyt-card a.secyt-card__enlace {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 11px 14px;
    min-height: 44px;
    border: 1px solid #dce4da;
    border-radius: 7px;
    background: #f0f5ef;
    color: #205d3c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
}
.secyt-buscador .secyt-card a.secyt-card__enlace:hover { background: #263d36; color: #fff; }
.secyt-buscador .secyt-card__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
/* Una columna cuando el espacio disponible sea pequeño, incluso en una portada a dos columnas. */
@media (max-width: 600px) {
    .secyt-buscador .secyt-card__contenido { padding: 18px; }
    .secyt-buscador .secyt-card .secyt-card__titulo { font-size: 18px; }
}
