/*
Theme Name: Onreale Child
Template: photograph
Description: Child theme de Onreale Collection
Version: 1.0
*/

/* ==============================
   LAYOUT GENERAL
   ============================== */
.vid-thumb #sticky-header,
.sld-plus #sticky-header {
  background: linear-gradient(
    to bottom,
    rgb(23 23 23 / 0%) 0%,
    rgba(23, 23, 23, 0) 100%
  );
}

#sticky-header {
  background-color: #17171700;
}

#primary {
  padding: 0px;
  width: 100%;
}

/* ==============================
   NAV — ESCRITORIO (min 1025px)
   ============================== */
@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }

  .main-navigation ul.nav-menu {
    background-color: #8e754f;
    padding: 0 30px;
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50% + 30px);
  }

  body.page-id-322 .main-navigation ul.nav-menu {
    background-color: transparent;
    transition: background-color 0.3s ease;
  }

  body.page-id-322.scrolled .main-navigation ul.nav-menu {
    background-color: #8e754f;
  }

  .is-sticky #sticky-header {
    background: none;
    background-color: rgb(255 255 255 / 100%);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  }
}

/* ==============================
   NAV — MÓVIL Y TABLET (max 1024px)
   ============================== */
@media (max-width: 1024px) {
  /* Sticky */
  #sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
  }

  /* Barra blanca siempre */
  #sticky-header,
  .main-navigation,
  .main-header {
    background-color: #ffffff !important;
    width: 100%;
  }

  /* Ocultar el burger duplicado dentro del nav */
  .main-navigation > .menu-toggle {
    display: none !important;
  }

  /* Mostrar solo el burger de .right-toggle */
  .right-toggle .menu-toggle {
    display: flex !important;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    background-color: transparent !important;
    border: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  /* Menú desplegado */
  .main-navigation ul.nav-menu {
    background-color: #ffffff !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-navigation ul.nav-menu a {
    color: #8e754f !important;
  }

  .main-navigation ul.nav-menu a:hover {
    color: #5a4a30 !important;
  }

  /* Color del burger — dejamos animación X al tema */
  .right-toggle .menu-toggle .line-bar,
  .right-toggle .menu-toggle .line-bar::before,
  .right-toggle .menu-toggle .line-bar::after {
    background-color: #8e754f !important;
  }

  /* Color de la X cuando está abierto */
  .right-toggle .menu-toggle.on .line-bar,
  .right-toggle .menu-toggle.on .line-bar::before,
  .right-toggle .menu-toggle.on .line-bar::after {
    background-color: #8e754f !important;
  }
}

/* ==============================
   OCULTAR LUPA
   ============================== */
.header-search,
.header-search-x {
  display: none !important;
}

/* ==============================
   GTRANSLATE — BANDERAS DE IDIOMAS
   ============================== */
li.menu-item-gtranslate {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

li.menu-item-gtranslate > div {
  position: relative !important;
  white-space: nowrap !important;
}

body .gt_switcher .gt_selected {
  background: transparent !important;
}

body .gt_switcher .gt_selected a {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff !important;
  margin-left: 10px;
}

body .gt_switcher .gt_selected a:after {
  opacity: 1 !important;
  margin: 12px 40px 0 0;
  filter: brightness(0) invert(1);
}

body .gt_switcher .gt_selected a span {
  color: #fff !important;
}

body .gt_switcher .gt_selected:hover,
body .gt_switcher .gt_selected a:hover,
body .gt_switcher:hover {
  background: transparent !important;
  color: #fff !important;
}

body .gt_switcher {
  position: absolute !important;
  z-index: 99999 !important;
  margin-top: -32px;
}

body .gt_switcher .gt_options {
  position: absolute !important;
}

body .gt_option a {
  height: 30px;
}

@media (max-width: 1024px) {
  li.menu-item-gtranslate {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    margin-left: -15px !important;
    display: flex !important;
    align-items: center !important;
  }

  body .gt_switcher .gt_selected a {
    color: #8e754f !important;
  }

  body .gt_switcher .gt_selected a:after {
    opacity: 1 !important;
    margin: 1px 40px 0 0;
    filter: none;
  }

  body .gt_option a img {
    margin-right: 6px !important;
  }

  #site-branding {
    margin-left: -1px !important;
  }

  .menu-toggle {
    margin-right: -8px !important;
  }

  .main-header {
    padding-top: 5px !important;
    padding-bottom: 5px;
  }
}

/* El borde al pulsar viene del estilo nativo del navegador llamado outline, 
   que se aplica automáticamente a elementos enfocados para accesibilidad.
   
   Regla para quitarlo... */

.main-navigation a:focus,
.main-navigation .menu-toggle:focus,
.right-toggle .menu-toggle:focus {
  outline: none !important;
}

/* ... y Regla comentada para evitar comportamiento de bordes si quieres 
       quitarlo de forma global en toda la web */

*:focus {
  outline: none !important;
}

/*  Botón para hacer scroll hacia arriba cuando estás bajando */

/* Ocultar iconos de Font Awesome */
.go-to-top .back-to-top-text,
.go-to-top .back-to-top-icon {
  font-family: inherit !important;
  font-size: 20px !important;
}

.go-to-top .back-to-top-text::before {
  content: "⏻";
}

.go-to-top .back-to-top-icon::before {
  content: "⏻";
}

/* Ocultar el contenido original de FA */
.go-to-top .back-to-top-text,
.go-to-top .back-to-top-icon {
  font-size: 0 !important;
}

.go-to-top .back-to-top-text::before,
.go-to-top .back-to-top-icon::before {
  font-size: 20px !important;
  color: #ffffff;
}

/* ==============================
   FOOTER
   ============================== */

/* Importar fuente */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@300&display=swap");

/* Líneas separadoras */
.onreale-footer-lines span,
.onreale-footer-lines div {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #8e754f;
  margin-bottom: 2px;
}

/* Tipografía footer */
.site-footer,
.site-footer p,
.site-footer a {
  font-family: "Source Serif 4", serif !important;
  font-size: 15px !important;
  font-weight: 300 !important;
}

/* ==============================
   FOOTER
   ============================== */

/* Líneas separadoras */
.onreale-footer-lines {
  display: flex;
  flex-direction: column;
  gap: 18px !important;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.onreale-footer-lines span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #8e754f;
}

.onreale-footer-lines span:first-child {
  margin-top: 50px;
}

/* Grid principal */
.onreale-footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 40px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columna izquierda */
.onreale-footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.onreale-footer-logo {
  height: 70px;
  width: auto;
}

.onreale-footer-contact {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.onreale-footer-contact a {
  color: #555;
  text-decoration: none;
}

.onreale-footer-contact a:hover {
  color: #8e754f;
}

.onreale-footer-contact:first-of-type a {
  font-size: 18px;
}

/* Columna derecha */
.onreale-footer-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.onreale-footer-right p {
  font-size: 22px;
  line-height: 1.4;
  color: #333;
  margin: 0;
}

.onreale-footer-right h2 {
  font-family: "Source Serif Pro", Sans-serif;
  font-size: 33px;
  font-weight: 300;
  color: #000000;
}

.site-info .copyright a:hover,
.site-info .copyright a:focus {
	color: #8e754f !important;
}

/* Móvil */
@media (max-width: 1024px) {
  .onreale-footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .onreale-footer-left {
    align-items: center;
  }

  .onreale-footer-right {
    display: none !important;
  }
}

/* =============================================
   BUSCADOR
   ============================================= */

#bloque_buscador {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  padding: 30px 35px;
  margin-bottom: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 0;
  border: 2px solid #8e754f;
}

.search_wrapper {
  width: 100%;
}

.adv-search-1 {
  width: 100%;
}

#adv-search-header-1 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 25px;
  text-align: left;
  font-family: "Roboto", sans-serif;
  color: #333;
}

.adv1-holder {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 15px;
  padding: 0;
}

.adv1-holder > div {
  flex: 0 0 calc(33.333% - 10px);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
  display: block;
  font-family: "Roboto", sans-serif;
}

/* Todos los inputs y selects con mismo height y sin redondeo */
#bloque_buscador select,
#bloque_buscador input[type="text"],
#bloque_buscador input[type="number"],
#bloque_buscador .form-control {
  width: 100%;
  height: 46px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  color: #333;
  background-color: #fff;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 0 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

#bloque_buscador select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

#bloque_buscador select:focus,
#bloque_buscador input:focus {
  border-color: #8e754f !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(142, 117, 79, 0.15);
}

#bloque_buscador input::placeholder {
  color: #999;
}

.grupbuttons {
  flex: 0 0 100% !important;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#advanced_submit_2 {
  min-width: 200px;
  height: 46px;
  background-color: #8e754f;
  color: white;
  padding: 0 30px;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#advanced_submit_2:hover {
  background-color: #5a4a30;
}

#extra {
  height: 46px;
  background-color: #fff;
  color: #666;
  padding: 0 25px;
  border: 1px solid #8e754f;
  border-radius: 0;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Roboto", sans-serif;
  margin-top: 0 !important;
}

#extra:hover {
  background-color: #8e754f;
  color: #fff;
}

#extraOC {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 0;
}

#extraOC.hidden {
  display: none !important;
}

#extraOC > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

#extraOC label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
}

#extraOC input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 0;
  cursor: pointer;
}

#extraOC select#EstadoCons {
  height: 46px;
  padding: 0 15px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: white;
  font-size: 14px;
  color: #555;
}

.filtros-activos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filtro-pill {
  display: inline-flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 6px 14px;
  font-size: 13px;
  color: #333;
  font-family: "Roboto", sans-serif;
}

.filtro-pill .remove {
  margin-left: 8px;
  cursor: pointer;
  color: #999;
  font-weight: bold;
}

.filtro-pill .remove:hover {
  color: #8e754f;
}

.hidden {
  display: none;
}

/* Responsive buscador */
@media (max-width: 1200px) {
  .adv1-holder > div {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 767px) {
  #bloque_buscador {
    padding: 20px;
  }

  .adv1-holder > div {
    flex: 0 0 100%;
  }

  .grupbuttons {
    flex-direction: column;
  }

  #advanced_submit_2,
  #extra {
    width: 100%;
  }
}

@media (max-width: 767px) {
  #bloque_buscador {
    border: none;
  }
}

#bloque_buscador,
#bloque_buscador select,
#bloque_buscador input,
#bloque_buscador button,
#bloque_buscador label,
#bloque_buscador .field-label,
#bloque_buscador #adv-search-header-1 {
  font-family: "Source Serif 4", serif !important;
}

/* =============================================
   PAGINACIÓN Y ORDENACIÓN
   ============================================= */

.paginacion {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 22px;
  margin-top: 3%;
  background: white;
  margin-bottom: 5%;
  border-radius: 0px;
}

.Bfl {
  margin: 0 3%;
  font-weight: bold;
  color: black;
}

#resultsyorden h1,
#resultsyorden1 h3 {
  display: flex;
  justify-content: space-between;
  padding: 0px;
  align-items: center;
  font-size: 30px !important;
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

#resultsyorden1 h3 {
  font-size: 20px !important;
}

#resultsyorden1 {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  align-items: center;
}

#resultsyorden h1 {
  margin-left: 10px;
}

#ordenacion {
  display: block;
  height: 40px;
  color: black;
  vertical-align: middle;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #eee;
  border-radius: 3px;
  box-shadow: none;
  transition:
    border-color ease-in-out 0.15s,
    box-shadow ease-in-out 0.15s;
  margin-bottom: 15px;
}

#listing_ajax_container {
  margin-top: 150px;
}


/* =============================================
   PAGINACIÓN
   ============================================= */
   
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 32px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.paginacion .Bfl {
    display: inline-flex;
}

/* Estilo base para todos los enlaces y spans */
.paginacion a, .paginacion span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 55px;
    transition: all 0.2s ease;
}

/* Enlaces de página (números) */
.paginacion a.pagina {
    color: #333;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.paginacion a.pagina:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

/* Página actual */
.paginacion span.paginaActual {
    color: #ffffff;
    background: #8e754f;
    border: 1px solid #8e754f;
    cursor: default;
}

/* Flechas anterior/siguiente */
.paginacion a.anterior, .paginacion a.siguiente {
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 600;
}

.paginacion a.anterior:hover, .paginacion a.siguiente:hover {
    background: #8e754f;
    border-color: #8e754f;
    color: #ffffff;
}

/* Flechas deshabilitadas */
.paginacion span.anterior, .paginacion span.siguiente {
    color: #d1d5db;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: not-allowed;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
    .paginacion {
        gap: 4px;
        padding: 24px 12px;
    }

    .paginacion a, .paginacion span {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
        border-radius: 55px;
    }
}

/* ---------------------------
   Paginación : Modif Marzo 2026
------------------------------- */
.destacados-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 0 16px;
}

.destacados-pagination .pag-num, .destacados-pagination .pag-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.destacados-pagination .pag-num.active {
    background: #00a99d;
    /* color verde yainmo */
    border-color: #00a99d;
    color: #fff;
    font-weight: 600;
}

.destacados-pagination .pag-arrow {
    font-size: 20px;
    font-weight: bold;
}

.destacados-pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}

.destacados-pagination .pag-num:not(.active):hover, .destacados-pagination .pag-arrow:not(:disabled):hover {
    border-color: #00a99d;
    color: #00a99d;
}
