/* =================================================================
   MALAGA THEME — CONSOLIDATED CSS
   Todo el CSS del tema en un solo archivo optimizado
   ================================================================= */

/* ========================= Variables CSS ========================= */
:root {
  /* Colores del tema */
  --bs-primary: #f13539;
  --bs-primary-rgb: 241, 53, 57;
  --brand: #f13539;
  --brand-ink: #fff;
  --ink: #333;
  --muted: #6c757d;
  
  /* Fondos */
  --bg-soft: #f8f9fa;
  --bg-beige: #fff7f2;
  --bg-beige-light: #fffaf6;
  --border-soft: #f3eae4;
  
  /* Tour pages */
  --tour-bg-soft: #fff7f2;
  --tour-bg-light: #fffaf6;
  --tour-bg-contrast: #fef3eb;
  --tour-border: #f3eae4;
  --tour-text: #1b1b1b;
  
  /* Efectos */
  --radius: 12px;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.25rem 0.75rem rgba(241, 53, 57, 0.15);
  --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Navbar */
  --nav-pad-y: 1rem;
  --nav-pad-y-shrunk: 0.375rem;
  --logo-h: 64px;
  --logo-h-shrunk: 44px;
  --nav-bg: #f13539;
  --nav-transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================= Base Global ========================= */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

a {
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

h1::first-letter,
h2::first-letter {
  color: var(--brand);
}

h1 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); }

p {
  line-height: 1.65;
}

iframe {
  max-width: 100%;
  border: 0;
}

/* ========================= NAVBAR ========================= */

#mainNavbar {
  padding-top: var(--nav-pad-y);
  padding-bottom: var(--nav-pad-y);
  transition: padding var(--nav-transition);
  background: var(--nav-bg) !important;
  will-change: padding;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#mainNavbar .navbar-brand {
  padding: 0;
  margin-right: 1rem;
}

#mainNavbar .navbar-brand img {
  height: var(--logo-h);
  width: auto;
  display: block;
  transition: height var(--nav-transition), opacity var(--nav-transition);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

#mainNavbar.is-shrunk {
  --nav-pad-y: var(--nav-pad-y-shrunk);
  --logo-h: var(--logo-h-shrunk);
}

#mainNavbar .navbar-nav {
  gap: 0.5rem;
}

#mainNavbar .navbar-nav .nav-link {
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: background var(--nav-transition), opacity var(--nav-transition);
}

#mainNavbar .navbar-nav .nav-link:hover,
#mainNavbar .navbar-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

#mainNavbar .navbar-nav .current-menu-item > a.nav-link,
#mainNavbar .navbar-nav .current_page_item > a.nav-link {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

#mainNavbar .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.375rem 0.5rem;
  transition: border-color 0.2s, background 0.2s;
}

#mainNavbar .navbar-toggler:hover,
#mainNavbar .navbar-toggler:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

#mainNavbar .navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.header-flags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-flags a {
  display: inline-block;
  transition: transform 0.2s;
}

.header-flags a:hover {
  transform: scale(1.1);
}

.header-flags img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.header-email:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.header-email::before {
  content: "✉";
  font-size: 1.125rem;
}

/* ========================= HEADER HERO IMAGE ========================= */
.slide_img_block {
  position: relative;
  overflow: hidden; /* evita que la imagen desborde horizontalmente */
  width: 100%;
}

.slide_img_block .slide_img {
  display: block;
  width: 100%;
  max-width: 100%;
  /* altura limitada y responsive; object-fit funciona porque fijamos height */
  height: clamp(200px, 28vw, 480px);
  object-fit: cover;
  object-position: center;
}

/* Variante de single-post donde se usa background-image inline */
.slide_img_div_block {
  width: 100%;
  height: clamp(200px, 28vw, 480px);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 991.98px) {
  .slide_img_block .slide_img,
  .slide_img_div_block {
    height: clamp(140px, 40vw, 300px);
  }
}

/* Barra de reserva bajo el hero (aplicada en todas las plantillas) */
.book_now.book-now-enhanced {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.book_now .booking.container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  min-height: 56px;
}

.book_now .btn-book-under-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.875rem 2.375rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 24px rgba(241, 53, 57, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.book_now .btn-book-under-hero:hover,
.book_now .btn-book-under-hero:focus {
  background: #d92e32;
  box-shadow: 0 16px 28px rgba(241, 53, 57, 0.26);
  transform: translateY(-1px);
}

.book_now .btn-book-under-hero:focus {
  outline: 2px solid rgba(241, 53, 57, 0.35);
  outline-offset: 3px;
}

.book_now .btn-book-under-hero .btn-icon {
  display: inline-flex;
  line-height: 0;
}

@media (max-width: 575.98px) {
  .book_now .btn-book-under-hero {
    width: 100%;
    justify-content: center;
  }
}

/* ========================= BOTONES FLOTANTES ========================= */

.wa-float,
.cal-float {
  position: fixed;
  right: 1.5rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  font-weight: 600;
  cursor: pointer;
}

.wa-float {
  bottom: 1.5rem;
  background: #25D366;
}

.cal-float {
  bottom: 6.5rem;
  background: #cf2e2e;
}

.wa-float i {
  font-size: 1.875rem;
}

.cal-float i {
  font-size: 1.75rem;
}

/* Replacement: floating button to open private request modal */
.private-form-float {
  position: fixed;
  right: 1.5rem;
  bottom: 6.5rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.private-form-float:hover { transform: translateY(-2px); box-shadow: 0 0.625rem 1.375rem rgba(0,0,0,.22);} 
.private-form-float svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
  .private-form-float { right: .75rem; bottom: 3.875rem; height: 44px; border-radius: 10px; padding: 0 .875rem 0 .75rem; width: auto; }
}

/* Modal styles for private request */
.modal-private .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 1.125rem 3rem rgba(0,0,0,.25); }
.modal-private .modal-header { background: var(--brand); border-bottom: none; padding: 1.125rem 1.25rem; }
.modal-private .modal-title { color: #fff; font-weight: 700; }
.modal-private .btn-close { filter: invert(1); opacity: .9; }
.modal-private .btn-close:hover { opacity: 1; }

.wa-label,
.cal-label {
  display: none;
  font-size: 1rem;
  white-space: nowrap;
}

.wa-float:hover,
.cal-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.625rem 1.375rem rgba(0, 0, 0, 0.22);
}

/* ========================= MODAL CALENDARIO ========================= */

.modal-calendar .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1.125rem 3rem rgba(0, 0, 0, 0.25);
}

.modal-calendar .modal-header {
  background: var(--brand);
  border-bottom: none;
  padding: 1.25rem 1.5rem;
}

.modal-calendar .modal-title {
  font-weight: 700;
  color: #fff;
}

/* Cerrar en blanco sobre cabecera roja */
.modal-calendar .btn-close {
  filter: invert(1);
  opacity: 0.9;
}
.modal-calendar .btn-close:hover { opacity: 1; }

.modal-calendar .modal-body {
  padding: 0;
  background: #fff;
}

.heading_block {
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
}

.heading_block h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tour-text);
}

/* Ocultar el título duplicado dentro del modal de Turitop; mantenemos solo el de la cabecera */
.modal-calendar .heading_block { display: none; }

.turitop-embed-wrap {
  padding: 0 0 1.125rem;
  width: 100%;
}

/* Turitop: forzar que el widget use todo el ancho disponible */
.turitop-embed-wrap > div,
.turitop-embed-wrap .loading-turitop,
.turitop-embed-wrap [id^="TT_"],
.turitop-embed-wrap .tt-widget,
.turitop-embed-wrap .TT_Widget,
.turitop-embed-wrap iframe {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}

.turitop-embed-wrap .loading-turitop { margin: 0 auto; }

/* En la home: caja visual agradable para el calendario */
.section .turitop-embed-wrap {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.section .turitop-embed-wrap input,
.section .turitop-embed-wrap select {
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.section .turitop-embed-wrap table { width: 100%; }

/* ========================= FOOTER ========================= */

footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--brand) 0%, 
    #ff6b6e 50%, 
    var(--brand) 100%);
}

footer .container > .row:first-child {
  padding: 3.5rem 0 2rem;
}

footer .logo img {
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
  transition: filter 0.3s;
}

footer .logo img:hover {
  filter: drop-shadow(0 4px 12px rgba(241, 53, 57, 0.2));
}

footer .mission {
  max-width: 480px;
}

footer .mission p {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

footer .phone_and_time a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
  background: rgba(241, 53, 57, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

footer .phone_and_time a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 53, 57, 0.25);
}

footer .social {
  gap: 0.75rem;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
    background-color: #fff;
    background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

footer .social a:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(241, 53, 57, 0.25);
    background-color: #fff7f7;
}

  footer .social a.facebook { 
    background-image: url('../img/icons/facebook-logo-red.svg'); 
  }

  footer .social a.twitter { 
    background-image: url('../img/icons/twitter-logo-red.svg'); 
  }

  footer .social a.instagram { 
    background-image: url('../img/icons/instagram-logo-red.svg'); 
  }

  footer .social a.tripadwiser { 
    background-image: url('../img/icons/tripadvisor-logo-red.svg'); 
  }

  footer .social a.whatsapp { 
    background-image: url('../img/icons/whatsapp-logo-red.svg'); 
  }

  footer .social a:hover {
    background-size: 26px 26px;
  }

.footer-nav {
  padding: 2rem 0 1.5rem;
  border-top: 1px solid #e9ecef;
  background: rgba(248, 249, 250, 0.5);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu > li > a {
  display: inline-block;
  padding: 0.625rem 1.125rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6c757d;
  background: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.footer-menu > li > a:hover {
  color: var(--brand);
  background: white;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 53, 57, 0.15);
}

.footer-menu > li > a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  background: white;
  color: var(--brand);
}

.footer-menu > li.current-menu-item > a,
.footer-menu > li.current_page_item > a {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(241, 53, 57, 0.3);
}

.copyrights {
  padding: 1.75rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--brand) 0%, #c81f23 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.copyrights::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--brand);
  border-radius: 3px;
}

.copyrights p {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ========================= COMPONENTES TEMA ========================= */

.ma-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
}

.ma-heading > div { display: none; }

.ma-heading::before {
  content: "";
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: url('../img/icons/umbrella.svg') center/contain no-repeat;
  filter: invert(24%) sepia(97%) saturate(3567%) hue-rotate(348deg) brightness(94%) contrast(93%);
}

.ma-heading h1,
.ma-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
}

.ma-heading.no-icon::before {
  display: none;
}

/* Softer heading underline on blog areas */
.single_post_page .ma-heading,
.blog-archive .ma-heading,
.search-results-page .ma-heading { border-bottom: 1px solid var(--border-soft); padding-bottom: .375rem; }

/* No underline inside sidebar cards */
.sidebar-section .ma-heading { border-bottom: 0; padding-bottom: 0; margin-bottom: .75rem; }

.btn-brand {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.btn-brand:hover,
.btn-brand:focus {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(241, 53, 57, 0.3);
  color: #fff;
}

.read_more_button {
  display: inline-block;
  min-width: 220px;
  padding: 0.625rem 1.5rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.read_more_button:hover,
.read_more_button:focus {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(241, 53, 57, 0.3);
  color: #fff;
}

/* ========================= TOUR CARDS ========================= */

.tour_block {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid #eee;
}

.tour_block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tour_block .img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tour_block .img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour_block:hover .img img {
  transform: scale(1.05);
}

/* Línea roja bajo la imagen (alineada a todo el ancho, sin desajustes de subpíxel) */
.tour_block .img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand);
}

/* Cuerpo del card */
.tour_block .content {
  padding: 14px 16px 16px;
}

.tour_block .tour_name {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--tour-text);
  font-size: 1.05rem;
}

.tour_block .tour_name:hover {
  color: var(--brand);
  text-decoration: underline;
}

.tour_block .additional_info {
  color: #495057;
  margin: 0 0 6px;
}

.tour_block .time,
.tour_block .place {
  font-size: 0.9375rem;
  color: #555;
}

/* Rating */
.review_rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.review_rating .number {
  font-weight: 700;
}

.star-icons {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.star-icons .back-stars i { color: #e3e6eb; }
.star-icons .front-stars {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
}
.star-icons .front-stars i { color: #f5b301; }

.tour_block .img .price,
.tour_block .img .bage {
  position: absolute;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-weight: 700;
  background: var(--brand);
  border-radius: 0 var(--radius) 0 0;
  z-index: 10; /* asegura que estén siempre sobre la imagen */
  pointer-events: none; /* evita que interfieran con clics */
}

.tour_block .img .price {
  bottom: 0;
  left: 0;
  font-size: 1.5rem;
}

.tour_block .img .bage {
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.7);
}

/* ========================= BLOG POSTS ========================= */

.blog_post {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog_post:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog_post .post_img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  transition: opacity var(--transition);
}

.blog_post .post_img:hover {
  opacity: 0.9;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0.25rem;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.navigation.pagination .page-numbers:hover {
  background: #d93030;
  transform: scale(1.1);
}

.navigation.pagination .page-numbers.current {
  background: #fff;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.navigation.pagination .page-numbers.dots {
  background: transparent;
  color: var(--ink);
}

/* ========================= TEAM MEMBERS ========================= */

/* Latest posts (cards con imagen) movido desde front-page.php */
.post-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card .post-thumb {
  border-radius: 12px;
  overflow: hidden;
}

.post-card .post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }

.member .img {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.member .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================= ACORDEÓN ========================= */

.accordeon .heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: color var(--transition);
}

.accordeon .heading:hover {
  color: var(--brand);
}

.accordeon .plus_minus {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: url('../img/icons/arrow_red.svg') center/contain no-repeat;
  transition: transform var(--transition);
}

.accordeon .heading.opened .plus_minus {
  transform: rotate(90deg);
}

.accordeon .content {
  display: none;
  padding: 1rem 0 1rem 2.5rem;
}

/* ========================= ICONOS IDIOMAS ========================= */

.lang {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-size: cover;
  border-radius: 50%;
  margin: 0 0.25rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-spanish { background-image: url('../img/lang-icons/spain.png'); }
.lang-english { background-image: url('../img/lang-icons/uk.png'); }
.lang-french { background-image: url('../img/lang-icons/france.png'); }
.lang-german { background-image: url('../img/lang-icons/germany.png'); }
.lang-italian { background-image: url('../img/lang-icons/italy.png'); }

/* ========================= ACF MAP ========================= */

.acf-map {
  width: 100%;
  height: 400px;
  border: 1px solid #dee2e6;
  border-radius: var(--radius);
}

.acf-map img {
  max-width: inherit !important;
}

/* ========================= TOUR PAGES ========================= */

.tour-section {
  margin: 2.5rem 0;
}

.prices .tickets {
  background: var(--tour-bg-light);
  border: 1px solid var(--tour-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.prices .tickets:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.prices .t_name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--tour-text);
}

.prices .t_price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0.75rem 0;
}

.prices .ex_field {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.tour .tour_info {
  background: var(--tour-bg-soft);
  border: 1px solid var(--tour-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  height: 100%;
  transition: background 0.2s;
}

.tour .tour_info:hover {
  background: var(--tour-bg-contrast);
}

.tour .tour_info .icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--brand); /* icons inherit brand red via currentColor */
}

.tour .tour_info .icon img,
.tour .tour_info .icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tour .tour_info span {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--brand);
  display: block;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tour .tour_info .info p {
  margin: 0;
  color: var(--tour-text);
  line-height: 1.5;
}

.latest_reviews .review_block {
  background: var(--tour-bg-light);
  border: 1px solid var(--tour-border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.latest_reviews .review_block:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.latest_reviews .review_block__wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.latest_reviews .review_block .photo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.latest_reviews .avatar-fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--tour-bg-contrast);
  color: #666;
  border: 2px solid #fff;
}

.latest_reviews .name {
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--brand);
}

.latest_reviews .text {
  color: #333;
  line-height: 1.6;
}

.latest_reviews .nav-pills .nav-link {
  background: var(--tour-bg-soft);
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
}

.latest_reviews .nav-pills .nav-link:hover {
  background: var(--tour-bg-contrast);
}

.latest_reviews .nav-pills .nav-link.active {
  background: var(--brand);
  color: #fff;
}

.tour-shortinfo {
  margin: 2.5rem 0;
  color: var(--tour-text);
}

.tour-shortinfo .shortinfo-heading {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1.5rem;
}

.tour-shortinfo .shortinfo-block {
  border-left: 4px solid var(--brand);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--tour-bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tour-shortinfo .shortinfo-block:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: var(--tour-bg-contrast);
}

.tour-shortinfo h3 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.tour-shortinfo h3 i {
  color: var(--brand);
  font-size: 1.375rem;
  width: 24px;
  text-align: center;
}

.tour-shortinfo .content {
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== New Private Tour Page: Price cards ===== */
.ticket-prices .price-card {
  background: #fff;
  border: 1px solid var(--tour-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-prices .price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.ticket-prices .price-card__inner {
  padding: 1.25rem 1.25rem 1.1rem;
}

.ticket-prices .price-card__persons {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--brand);
  background: var(--tour-bg-contrast);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ticket-prices .price-card__name {
  font-weight: 700;
  color: var(--tour-text);
  font-size: 1.125rem;
}

.ticket-prices .price-card__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  margin-top: 0.35rem;
}

/* Extra notes inside each price card */
.ticket-prices .price-card__extras {
  margin-top: 0.75rem;
  padding-left: 1.1rem;
}
.ticket-prices .price-card__extras li {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.ticket-prices .price-notes {
  margin-top: 0.25rem;
}

/* Pricing: visible notice */
.ticket-prices .price-notice {
  display: block;
  margin: 0.5rem auto 0;
  max-width: 920px;
  padding: 0.9rem 1rem;
  background: var(--tour-bg-soft);
  border: 1px solid var(--tour-border);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  color: var(--tour-text);
  font-weight: 600;
}

.faq-accordion .card {
  border: 1px solid var(--tour-border);
  border-left: 4px solid transparent;
  border-radius: 14px;
  box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-accordion .card:hover,
.faq-accordion .collapse.show ~ .card {
  border-left-color: var(--brand);
  box-shadow: 0 0.5rem 1.5rem rgba(241, 53, 57, 0.12);
}

.faq-accordion .card-header {
  background: var(--tour-bg-soft);
  /* Remove the underline under each question (keep only card border) */
  border-bottom: 0;
  padding: 0;
}

.faq-accordion .card-header button {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--tour-text);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: color 0.2s, background 0.2s;
}

/* Remove underlines from link-style buttons inside FAQ */
.faq-accordion .card-header .btn-link,
.faq-accordion .btn-faq { text-decoration: none !important; }
.faq-accordion .card-header .btn-link:hover,
.faq-accordion .btn-faq:hover,
.faq-accordion .card-header .btn-link:focus,
.faq-accordion .btn-faq:focus { text-decoration: none !important; }

.faq-accordion .card-header button:hover,
.faq-accordion .card-header button:not(.collapsed) {
  color: var(--brand);
  background: var(--tour-bg-contrast);
}

/* We render the chevron with markup (.chev), so don't add an extra pseudo arrow */
.faq-accordion .card-header button::before { content: none; }

.faq-accordion .card-header button:not(.collapsed)::before {
  transform: none;
}

.faq-accordion .card-body {
  padding: 1rem 1.25rem;
  background: #fff;
}

/* FAQ: inner bits */
.faq-accordion .btn-faq .icon-faq {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-right: .5rem;
}

.faq-accordion .btn-faq .q {
  flex: 1 1 auto;
}

.faq-accordion .btn-faq .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: transform .2s ease, color .2s ease;
}

.faq-accordion .btn-faq:hover .chev { color: var(--brand); }
.faq-accordion .btn-faq:not(.collapsed) .chev { transform: rotate(180deg); color: var(--brand); }

/* ===== New Private Tour Page: Meeting point card ===== */
.mp-card {
  border: 1px solid var(--tour-border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.mp-card .mp-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.875rem;
}

.mp-card .mp-value {
  color: var(--tour-text);
}

.mp-card .mp-identify {
  white-space: pre-line;
}

.mp-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.mp-btn {
  font-weight: 700;
  border-radius: 10px;
}

/* ===== New Private Tour Page: Gallery grid ===== */
.gallery-grid .gallery-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.gallery-grid .gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-grid .gallery-thumb:hover img {
  transform: scale(1.04);
}

/* Headings helper used in reviews and blocks */
.me-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.me-heading > div {
  width: 42px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
}
.me-heading h2 { margin: 0; }

/* Content area tweaks */
.content-video .tour_content > *:first-child { margin-top: 0; }
.content-video .tour_content p { margin-bottom: 1rem; }
.tour_languages { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }

/* Lead paragraph below the H1 on tour pages */
.page-lead {
  color: #4a4a4a;
}

.tour_map .ratio {
  border-radius: 12px;
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.map-shadow {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.carousel .carousel-item img {
  border-radius: 12px;
  object-fit: cover;
}

.carousel-indicators [data-bs-target] {
  background: rgba(241, 53, 57, 0.3);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  transition: background 0.2s, transform 0.2s;
}

.carousel-indicators [data-bs-target]:hover {
  transform: scale(1.2);
}

.carousel-indicators .active {
  background: var(--brand);
  transform: scale(1.3);
}

/* ========================= UTILIDADES ========================= */

.section {
  padding: 2.5rem 0;
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-beige {
  background: var(--bg-beige);
}

.shadow-brand {
  box-shadow: var(--shadow-md);
}

.rounded-theme {
  border-radius: var(--radius);
}

.transition-smooth {
  transition: all var(--transition);
}

/* ========================= RESPONSIVE ========================= */

@media (max-width: 991.98px) {
  :root {
    --nav-pad-y: 0.625rem;
    --nav-pad-y-shrunk: 0.375rem;
    --logo-h: 54px;
    --logo-h-shrunk: 40px;
  }

  #mainNavbar .navbar-nav {
    gap: 0;
    margin-top: 1rem;
  }

  #mainNavbar .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0;
  }

  .header-flags {
    margin-top: 1rem;
    justify-content: center;
  }

  .prices .tickets {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .wa-float,
  .cal-float {
    height: 44px;
    border-radius: 10px;
    gap: 0.5rem;
    padding: 0 0.875rem 0 0.75rem;
    width: auto;
    right: 0.75rem;
  }
  
  .wa-float {
    bottom: 0.75rem;
  }
  
  .cal-float {
    bottom: 3.875rem;
  }
  
  .wa-float i {
    font-size: 1.375rem;
  }
  
  .cal-float i {
    font-size: 1.25rem;
  }
  
  .wa-label,
  .cal-label {
    display: inline;
  }

  .tour-shortinfo .shortinfo-block {
    padding: 0.875rem 1rem;
  }
  
  .tour-shortinfo h3 {
    font-size: 1.125rem;
  }
  
  .latest_reviews .review_block__wrapper {
    flex-direction: column;
  }
  
  .latest_reviews .review_block .photo img,
  .latest_reviews .avatar-fallback {
    width: 48px;
    height: 48px;
  }

  .ma-heading::before {
    width: 28px;
    height: 28px;
  }
  
  .member .img {
    width: 200px;
    height: 200px;
  }
}

@media (min-width: 992px) {
  .footer-menu > li {
    position: relative;
  }
  
  .footer-menu > li + li::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d8d8d8;
    margin: 0 0.375rem 0.1875rem 0;
  }
}

/* ========================= GALERÍA CAROUSEL MULTI-ITEM ========================= */

.section.gallery {
  background: var(--bg-soft);
  padding: 3.5rem 0;
}

.gallery-carousel-multi {
  position: relative;
  margin: 2rem auto 0;
  max-width: 1200px;
}

.gallery-carousel-multi .carousel-inner {
  padding: 0 50px;
}

.gallery-carousel-multi .carousel-item {
  transition: transform 0.6s ease-in-out;
  min-height: 350px;
  display: flex;
  align-items: center;
}

.gallery-carousel-multi .carousel-item .row {
  width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.gallery-carousel-multi .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--transition);
  background: #fff;
  height: 100%;
}

.gallery-carousel-multi .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(241, 53, 57, 0.2);
}

.gallery-carousel-multi .gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-carousel-multi .gallery-item:hover img {
  transform: scale(1.05);
}

/* Controles del carousel */
.gallery-carousel-multi .carousel-control-prev,
.gallery-carousel-multi .carousel-control-next {
  width: 45px;
  height: 45px;
  background: var(--brand);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all var(--transition);
  z-index: 10;
}

.gallery-carousel-multi .carousel-control-prev {
  left: 0;
}

.gallery-carousel-multi .carousel-control-next {
  right: 0;
}

.gallery-carousel-multi .carousel-control-prev:hover,
.gallery-carousel-multi .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(241, 53, 57, 0.4);
}

.gallery-carousel-multi .carousel-control-prev-icon,
.gallery-carousel-multi .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Indicadores */
.gallery-carousel-multi .carousel-indicators {
  position: relative;
  margin: 2rem 0 0 0;
  bottom: auto;
}

.gallery-carousel-multi .carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(241, 53, 57, 0.3);
  border: 2px solid var(--brand);
  transition: all var(--transition);
  margin: 0 5px;
}

.gallery-carousel-multi .carousel-indicators .active {
  background-color: var(--brand);
  transform: scale(1.3);
}

/* Responsivo */
@media (max-width: 991px) {
  .gallery-carousel-multi .carousel-item {
    min-height: 300px;
  }
  
  .gallery-carousel-multi .gallery-item img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .gallery-carousel-multi .carousel-inner {
    padding: 0 40px;
  }
  
  .gallery-carousel-multi .carousel-control-prev,
  .gallery-carousel-multi .carousel-control-next {
    width: 38px;
    height: 38px;
  }
  
  .gallery-carousel-multi .carousel-item {
    min-height: 260px;
  }
  
  .gallery-carousel-multi .gallery-item img {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .gallery-carousel-multi .carousel-inner {
    padding: 0 35px;
  }
  
  .gallery-carousel-multi .carousel-control-prev,
  .gallery-carousel-multi .carousel-control-next {
    width: 32px;
    height: 32px;
  }
  
  .gallery-carousel-multi .carousel-control-prev-icon,
  .gallery-carousel-multi .carousel-control-next-icon {
    width: 16px;
    height: 16px;
  }
  
  .gallery-carousel-multi .carousel-item {
    min-height: 220px;
  }
  
  .gallery-carousel-multi .gallery-item img {
    height: 200px;
  }
  
  .section.gallery {
    padding: 2.5rem 0;
  }
  
  .gallery-carousel-multi .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* Animación de entrada */
.gallery-carousel-multi {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= FORMULARIOS WPFORMS ========================= */

.section.job_form {
  background: linear-gradient(135deg, #fff7f2 0%, #ffffff 100%);
  padding: 3.5rem 0;
}

.form_shortcode {
  max-width: 800px;
  margin: 2rem auto 0;
}

/* Contenedor del formulario */
.wpforms-container {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(241, 53, 57, 0.08);
  border: 1px solid rgba(241, 53, 57, 0.1);
}

/* Campos del formulario */
.wpforms-field {
  margin-bottom: 1.75rem;
}

.wpforms-field-label {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: block;
}

.wpforms-field-label .wpforms-required-label {
  color: var(--brand);
  margin-left: 0.25rem;
}

/* Inputs y textareas */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field input[type="number"],
.wpforms-field select,
.wpforms-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
  background: #fafafa;
  color: var(--ink);
}

.wpforms-field input:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(241, 53, 57, 0.1);
}

.wpforms-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Placeholder */
.wpforms-field input::placeholder,
.wpforms-field textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* Errores de validación */
.wpforms-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.wpforms-field.wpforms-has-error input,
.wpforms-field.wpforms-has-error textarea,
.wpforms-field.wpforms-has-error select {
  border-color: #dc3545;
  background: #fff5f5;
}

/* Botón de envío */
.wpforms-submit-container {
  margin-top: 2rem;
}

.wpforms-submit {
  background: var(--brand);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(241, 53, 57, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wpforms-submit:hover {
  background: #d62d31;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(241, 53, 57, 0.35);
}

.wpforms-submit:active {
  transform: translateY(0);
}

/* Spinner de carga */
.wpforms-submit-spinner {
  display: inline-block;
  margin-left: 0.5rem;
  animation: wpforms-spin 1s linear infinite;
}

@keyframes wpforms-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Mensaje de confirmación */
.wpforms-confirmation-container-full {
  background: #d4edda;
  border: 2px solid #28a745;
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #155724;
  font-weight: 500;
  text-align: center;
}

/* Selectores personalizados */
.wpforms-field 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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  appearance: none;
}

/* Responsivo */
@media (max-width: 768px) {
  .wpforms-container {
    padding: 1.5rem;
  }
  
  .form_shortcode {
    margin: 1.5rem auto 0;
  }
  
  .section.job_form {
    padding: 2.5rem 0;
  }
  
  .wpforms-submit {
    width: 100%;
    padding: 1rem;
  }
}

/* Animación suave al cargar */
.wpforms-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================= PERFORMANCE & ACCESSIBILITY ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .navbar,
  .wa-float,
  .cal-float,
  footer .social {
    display: none !important;
  }
}

/* ========================= BLOG / SINGLE POST ========================= */

/* Base layout improvements */
.single_post_page .entry-header { margin-bottom: 1rem; margin-top: 1rem; }
.single_post_page .entry-meta { color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.single_post_page .entry-content { font-size: 1.05rem; line-height: 1.8; }
.single_post_page .entry-content p { margin-bottom: 1.1rem; }
.single_post_page .entry-content img { width: 100%; max-width: 100%; height: auto; border-radius: 12px; display: block; }
.single_post_page .entry-content figure,
.single_post_page .entry-content .wp-caption,
.single_post_page .entry-content .wp-block-image { width: 100% !important; margin: 1rem 0; }
.single_post_page .entry-content .wp-caption img,
.single_post_page .entry-content .wp-block-image img { width: 100% !important; height: auto; }
.single_post_page .entry-content .alignleft,
.single_post_page .entry-content .alignright,
.single_post_page .entry-content .aligncenter,
.single_post_page .entry-content .alignnone { float: none !important; margin: 1rem 0; }
.single_post_page .entry-content blockquote {
  border-left: 4px solid var(--brand);
  padding: .75rem 1rem; margin: 1rem 0; background: var(--bg-soft);
}

/* Share buttons */
.share-buttons-wrapper { margin-top: 1.5rem; }
.share-buttons { display: flex; gap: .5rem; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: #fff; background: var(--brand); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: .95; }
.share-btn i { font-size: 1.1rem; }

/* Author box */
.author-bio { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: var(--shadow-sm); margin-top: 1.25rem; }
.author-bio .author-avatar img, .author-bio .avatar { border-radius: 50%; box-shadow: var(--shadow-sm); }
.author-bio .author-name { margin: 0 0 .25rem; }
.author-bio .author-description { margin: 0; color: var(--muted); }

/* Related posts */
.related-posts { margin-top: 2rem; }
.related-posts .related-heading { margin-bottom: 1rem; }
.related-post-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.related-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-post-image { display: block; overflow: hidden; }
.related-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.related-post-card:hover .related-post-image img { transform: scale(1.06); }
.related-post-title { font-size: 1rem; font-weight: 700; padding: .75rem .875rem 1rem; margin: 0; }
.related-post-title a { color: var(--ink); }
.related-post-title a:hover { color: var(--brand); }

/* Comments area: spacing and safety */
.comments-area { clear: both; margin-top: 2rem; }
.comments-area .comments-title::first-letter { color: inherit; }
.comments-area .comment-list { display: grid; gap: 1rem; border-top: 0; }
.comments-area .comment-body { border: 1px solid var(--border-soft) !important; border-radius: 12px; padding: .75rem 1rem; box-shadow: var(--shadow-sm); background: #fff; }
.comments-area .comment-author { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.comments-area .comment-author .avatar { width: 36px; height: 36px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.comments-area .comment-metadata { color: var(--muted); font-size: .875rem; margin-bottom: .375rem; }
.comments-area .reply a { font-weight: 700; color: var(--brand); }
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea { width: 100%; border: 1px solid var(--border-soft); border-radius: 10px; padding: .625rem .75rem; background: #fff; }
.comments-area input:focus,
.comments-area textarea:focus { outline: none; border-color: rgba(var(--bs-primary-rgb), .5); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .1); }
.comments-area textarea:required:invalid { border-color: var(--border-soft); box-shadow: none; }
.comments-area input:required:invalid { border-color: var(--border-soft); box-shadow: none; }
.comments-area .submit { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: .625rem 1rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.comments-area .submit:hover { filter: brightness(.95); box-shadow: var(--shadow-md); }

@media (max-width: 575.98px) {
  .comments-area .submit { width: 100%; }
}

/* ========================= BLOG SIDEBAR ========================= */
.sidebar-widget { position: sticky; top: 2rem; }
.sidebar-section { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 1rem; margin-bottom: 1.25rem; }
.sidebar-section .ma-heading { margin-bottom: .5rem; }

/* Tours list in sidebar */
.sidebar-tours { display: grid; gap: .875rem; }
.sidebar-tour-card { display: grid; grid-template-columns: 96px 1fr; gap: .75rem; align-items: center; padding: .5rem; border-radius: 12px; border: 1px solid var(--border-soft); transition: box-shadow .2s ease, transform .2s ease; }
.sidebar-tour-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sidebar-tour-card .tour-card-image { border-radius: 10px; overflow: hidden; display: block; }
.sidebar-tour-card .tour-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sidebar-tour-card:hover .tour-card-image img { transform: scale(1.06); }
.sidebar-tour-card .tour-card-title { font-size: 1rem; margin: 0 0 .25rem; }
.sidebar-tour-card .tour-card-title a { color: var(--ink); }
.sidebar-tour-card .tour-card-title a:hover { color: var(--brand); }
.sidebar-tour-card .tour-card-schedule { color: var(--muted); font-size: .9rem; }

/* Categories */
.blog-categories ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .375rem; }
.blog-categories li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .625rem; border-radius: 10px; transition: background .15s ease; }
.blog-categories li:hover { background: var(--bg-soft); }
.blog-categories a { color: var(--ink); font-weight: 600; }
.blog-categories .count { background: var(--bg-soft); color: var(--muted); font-weight: 700; border-radius: 999px; padding: .125rem .5rem; font-size: .85rem; }

/* Social embeds */
.social-plugins > div { background: #fff; border: 1px solid var(--border-soft); border-radius: 12px; padding: .75rem; box-shadow: var(--shadow-sm); }
.social-plugins .instagram-plugin { overflow: hidden; }

@media (max-width: 991.98px) {
  .sidebar-widget { position: static; }
  .sidebar-section { padding: .75rem; }
}

/* ========================= BLOG LIST (INDEX, CATEGORY) ========================= */
.blog-archive .archive-header { margin-bottom: 1rem; }
.blog-archive .ma-heading h1::first-letter { color: inherit; }
.blog-archive .posts-grid { margin-top: .25rem; }
.blog-archive .blog-post-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.blog-archive .blog-post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-archive .post-thumbnail { display: block; }
.blog-archive .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.blog-archive .post-content { padding: .875rem .9rem 1rem; }
.blog-archive .post-title { font-size: clamp(1.125rem, .9rem + 1vw, 1.5rem); margin: 0 0 .25rem; line-height: 1.3; }
.blog-archive .post-title a { color: var(--ink); }
.blog-archive .post-title a:hover { color: var(--brand); }
.blog-archive .post-meta { color: var(--muted); font-size: .925rem; margin-bottom: .5rem; }
.blog-archive .post-excerpt { color: #333; }
.blog-archive .post-read-more { display: inline-flex; align-items: center; gap: .375rem; color: var(--brand); font-weight: 700; margin-top: .5rem; }
.blog-archive .post-read-more:hover { opacity: .9; }

/* ========================= SEARCH RESULTS ========================= */
.search-results-page .ma-heading h1::first-letter { color: inherit; }
.search-results-page .search-result-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.search-results-page .search-result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.search-results-page .result-content { padding: .875rem .9rem 1rem; }
.search-results-page .result-title { font-size: clamp(1.125rem, .9rem + 1vw, 1.5rem); margin: 0 0 .25rem; }
.search-results-page .result-title a { color: var(--ink); }
.search-results-page .result-title a:hover { color: var(--brand); }
.search-results-page .result-meta { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.search-results-page .result-read-more { color: var(--brand); font-weight: 700; }

/* ========================= SEARCH FORM (Sidebar/Anywhere) ========================= */
.search-form { width: 100%; }
.search-form .search-form-inner { display: flex; gap: .5rem; align-items: stretch; }
.search-form .search-field { flex: 1; border: 1px solid var(--border-soft); border-radius: 12px; padding: .625rem .75rem; }
.search-form .search-field:focus { outline: none; border-color: rgba(var(--bs-primary-rgb), .5); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .1); }
.search-form .search-submit { display: inline-flex; align-items: center; justify-content: center; width: 44px; border-radius: 12px; background: var(--brand); color: #fff; border: 0; box-shadow: var(--shadow-sm); }
.search-form .search-submit:hover { filter: brightness(.95); box-shadow: var(--shadow-md); }
