/*
Theme Name: Escapada507 Deals
Theme URI: https://escapada507.com/
Author: Escapada507
Author URI: https://escapada507.com/
Description: Tema WordPress editable para vender ofertas de turismo, paquetes vacacionales, restaurantes y tours con contador de expiracion.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: escapada507
*/

:root {
  --esc-sun: #f5c451;
  --esc-coral: #d94f70;
  --esc-ocean: #149e8e;
  --esc-action: #149e8e;
  --esc-action-dark: #0f766e;
  --esc-blue: #7a3f1d;
  --esc-ink: #2b1d14;
  --esc-muted: #7a6658;
  --esc-soft: #fff7ed;
  --esc-border: #f2dcc8;
  --esc-radius: 14px;
  --esc-shadow: 0 24px 70px rgba(92, 50, 24, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--esc-ink);
  background: var(--esc-soft);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.esc-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.esc-topbar {
  color: #fff;
  background: linear-gradient(90deg, #2b1d14, #149e8e);
  font-size: .9rem;
}

.esc-topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.esc-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.esc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(242, 220, 200, .9);
  backdrop-filter: blur(16px);
}

.esc-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.esc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--esc-ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.esc-brand img {
  max-height: 56px;
  width: auto;
}

.esc-brand__text {
  display: grid;
  line-height: 1.05;
}

.esc-brand__name {
  font-size: 1.28rem;
  font-weight: 950;
}

.esc-brand__tagline {
  color: var(--esc-ocean);
  font-size: .78rem;
  font-weight: 800;
}

.esc-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.esc-menu,
.esc-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.esc-menu a {
  color: var(--esc-ink);
  font-size: .94rem;
  font-weight: 850;
  text-decoration: none;
}

.esc-menu a:hover,
.esc-menu .current-menu-item > a {
  color: var(--esc-action);
}

.esc-button,
.wp-block-button__link,
button.esc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--esc-action), var(--esc-action-dark));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(20, 158, 142, .26);
}

.esc-button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: none;
}

.esc-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--esc-border);
  border-radius: 12px;
  background: #fff;
}

.esc-menu-toggle span,
.esc-menu-toggle::before,
.esc-menu-toggle::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--esc-ink);
}

.esc-menu-toggle::before {
  transform: translateY(-7px);
}

.esc-menu-toggle::after {
  transform: translateY(7px);
}

.esc-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--esc-blue);
  overflow: hidden;
}

.esc-hero__media,
.esc-hero__overlay {
  position: absolute;
  inset: 0;
}

.esc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.esc-hero__overlay {
  background:
    radial-gradient(circle at 88% 22%, rgba(20, 158, 142, .38), transparent 28%),
    linear-gradient(90deg, rgba(43, 29, 20, .92), rgba(85, 48, 24, .72) 48%, rgba(43, 29, 20, .18));
}

.esc-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 96px 0 120px;
}

.esc-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: .8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.esc-hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: 0;
}

.esc-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.esc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.esc-search-strip {
  position: relative;
  z-index: 3;
  margin-top: -78px;
}

.esc-search-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--esc-shadow);
}

.esc-search-card input,
.esc-search-card select {
  min-height: 50px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--esc-border);
  border-radius: 999px;
  background: #fff;
  color: var(--esc-ink);
  font-weight: 750;
}

.esc-section {
  padding: 92px 0;
  background: #fff;
}

.esc-section--soft {
  background: var(--esc-soft);
}

.esc-section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 8% 20%, rgba(217, 79, 112, .18), transparent 24%),
    radial-gradient(circle at 90% 70%, rgba(20, 158, 142, .16), transparent 26%),
    #2b1d14;
}

.esc-section__head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.esc-section__head h2,
.entry-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.esc-section__head p {
  margin: 14px 0 0;
  color: var(--esc-muted);
  font-size: 1.08rem;
}

.esc-section--dark .esc-section__head p {
  color: rgba(255, 255, 255, .76);
}

.esc-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.esc-trust-item {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--esc-border);
  border-radius: var(--esc-radius);
  box-shadow: 0 14px 40px rgba(92, 50, 24, .08);
}

.esc-trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--esc-ink);
  font-size: 1.08rem;
}

.esc-trust-item span {
  color: var(--esc-muted);
}

.esc-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.esc-category-card {
  min-height: 220px;
  position: relative;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  border-radius: var(--esc-radius);
  background: #2b1d14;
  box-shadow: var(--esc-shadow);
}

.esc-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}

.esc-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .74));
}

.esc-category-card span {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  font-weight: 950;
}

.esc-category-card:hover img {
  transform: scale(1.08);
}

.esc-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.esc-offer-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--esc-border);
  border-radius: 18px;
  box-shadow: 0 16px 46px rgba(92, 50, 24, .1);
}

.esc-offer-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.esc-offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s ease;
}

.esc-offer-card:hover .esc-offer-card__image img {
  transform: scale(1.07);
}

.esc-offer-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--esc-coral), var(--esc-action));
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.esc-offer-card__body {
  padding: 22px;
}

.esc-offer-location {
  color: var(--esc-ocean);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.esc-offer-card h3 {
  margin: 8px 0 8px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.esc-offer-card p {
  margin: 0;
  color: var(--esc-muted);
}

.esc-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.esc-price {
  color: var(--esc-ink);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
}

.esc-regular-price {
  color: #a58a78;
  font-size: .95rem;
  font-weight: 800;
  text-decoration: line-through;
}

.esc-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.esc-countdown span {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: #fff;
  background: #2b1d14;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 900;
}

.esc-countdown b {
  display: block;
  font-size: 1rem;
  line-height: 1;
}

.esc-offer-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.esc-safe-note {
  color: var(--esc-muted);
  font-size: .82rem;
  font-weight: 800;
}

.esc-flash-band {
  color: #fff;
  background: linear-gradient(90deg, var(--esc-action-dark), var(--esc-ocean));
  overflow: hidden;
}

.esc-flash-band__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.esc-flash-band strong {
  font-size: 1.4rem;
}

.esc-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.esc-how-card {
  padding: 30px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--esc-radius);
}

.esc-how-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.18rem;
}

.esc-how-card span {
  color: rgba(255, 255, 255, .76);
}

.esc-subscribe-section {
  background:
    radial-gradient(circle at 14% 20%, rgba(217, 79, 112, .22), transparent 28%),
    linear-gradient(135deg, #2b1d14, #7a3f1d 58%, #149e8e);
  color: #fff;
}

.esc-subscribe-card {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 38px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  box-shadow: var(--esc-shadow);
}

.esc-subscribe-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.esc-subscribe-card p,
.esc-subscribe-card__privacy {
  color: rgba(255, 255, 255, .82);
}

.esc-subscribe-card__privacy {
  display: inline-block;
  margin-top: 16px;
  font-weight: 850;
}

.esc-subscribe-form,
.esc-purchase-box,
.esc-redemption-box {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--esc-border);
  border-radius: 18px;
  box-shadow: 0 18px 54px rgba(92, 50, 24, .13);
}

.esc-redemption-box--pending {
  border-color: rgba(245, 196, 81, .45);
  background: linear-gradient(135deg, #fff, #fffbeb);
}

.esc-subscribe-form form,
.esc-purchase-box form {
  display: grid;
  gap: 14px;
}

.esc-subscribe-form label,
.esc-purchase-box label {
  display: grid;
  gap: 6px;
  color: var(--esc-ink);
  font-weight: 850;
}

.esc-subscribe-form input,
.esc-purchase-box input,
.search-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--esc-border);
  border-radius: 12px;
  background: #fff;
  color: var(--esc-ink);
}

.esc-subscribe-message {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 850;
}

.esc-subscribe-message--ok {
  color: #065f46;
  background: #d1fae5;
}

.esc-subscribe-message--error {
  color: #991b1b;
  background: #fee2e2;
}

.esc-purchase-box,
.esc-redemption-box {
  margin-top: 28px;
}

.esc-purchase-box {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 28px;
  align-items: start;
}

.esc-purchase-box h2,
.esc-redemption-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.esc-purchase-box p,
.esc-redemption-box p {
  margin: 0;
  color: var(--esc-muted);
}

.esc-offer-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.esc-offer-detail-main {
  display: grid;
  gap: 16px;
}

.esc-offer-accordion {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--esc-border);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(92, 50, 24, .08);
}

.esc-offer-accordion summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: var(--esc-ink);
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.esc-offer-accordion summary::-webkit-details-marker {
  display: none;
}

.esc-offer-accordion summary::after {
  content: "+";
  color: var(--esc-action);
  font-size: 1.7rem;
  line-height: 1;
}

.esc-offer-accordion[open] summary::after {
  content: "-";
}

.esc-offer-accordion__content {
  padding: 0 24px 24px;
  color: var(--esc-muted);
}

.esc-offer-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.esc-offer-bullets li {
  position: relative;
  padding-left: 18px;
}

.esc-offer-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--esc-action);
  border-radius: 50%;
}

.esc-purchase-box--sticky {
  position: sticky;
  top: 112px;
  display: block;
  margin-top: 0;
}

.esc-purchase-box--sticky form {
  margin-top: 18px;
}

.esc-option-list {
  display: grid;
  gap: 12px;
}

.esc-purchase-option {
  display: block;
  color: var(--esc-ink);
  font-weight: 800;
}

.esc-purchase-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.esc-purchase-option__card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--esc-border);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.esc-purchase-option input:checked + .esc-purchase-option__card {
  border-color: var(--esc-action);
  box-shadow: 0 14px 34px rgba(20, 158, 142, .16);
  transform: translateY(-1px);
}

.esc-purchase-option__card strong {
  font-size: .98rem;
  line-height: 1.35;
}

.esc-purchase-option__card em {
  color: var(--esc-muted);
  font-size: .9rem;
  font-style: normal;
  font-weight: 650;
}

.esc-purchase-option__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.esc-option-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  color: var(--esc-action-dark);
  background: rgba(20, 158, 142, .1);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
}

.esc-redemption-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-color: rgba(20, 158, 142, .3);
  background: linear-gradient(135deg, #fff, #f0fdfa);
}

.esc-redemption-code {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 16px;
  color: #fff;
  background: var(--esc-ink);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: .04em;
}

.esc-redemption-qr {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--esc-border);
  border-radius: 18px;
}

.esc-redemption-qr img {
  width: 220px;
  height: 220px;
}

.esc-page {
  padding: 72px 0;
  background: #fff;
}

.esc-content {
  max-width: 880px;
  margin-inline: auto;
}

.esc-footer {
  color: #cbd5e1;
  background: #2b1d14;
}

.esc-footer__cta {
  padding: 34px 0;
  background: rgba(255, 255, 255, .04);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.esc-footer__cta-inner,
.esc-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.esc-footer__main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 54px 0;
}

.esc-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.esc-footer a {
  color: #fff;
}

.esc-footer-brand img {
  max-width: 210px;
  margin-bottom: 16px;
}

.esc-footer-widget ul,
.esc-footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.esc-footer-widget li,
.esc-footer-menu li {
  margin: 8px 0;
}

.esc-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #c8b6a8;
  font-size: .9rem;
}

.esc-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(37, 211, 102, .32);
  text-decoration: none;
}

.esc-whatsapp svg {
  width: 28px;
  height: 28px;
}

.esc-expired {
  opacity: .66;
  filter: grayscale(.4);
}

@media (max-width: 980px) {
  .esc-menu-toggle {
    display: inline-flex;
  }

  .esc-nav {
    position: absolute;
    inset-inline: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--esc-border);
    border-radius: 16px;
    box-shadow: var(--esc-shadow);
  }

  .esc-nav.is-open {
    display: flex;
  }

  .esc-menu,
  .esc-menu ul {
    display: grid;
    gap: 12px;
  }

  .esc-search-card,
  .esc-trust-row,
  .esc-category-grid,
  .esc-offer-grid,
  .esc-how-grid,
  .esc-subscribe-card,
  .esc-purchase-box,
  .esc-offer-detail-layout,
  .esc-redemption-box,
  .esc-footer__main {
    grid-template-columns: 1fr;
  }

  .esc-purchase-box--sticky {
    position: static;
  }

  .esc-footer__cta-inner,
  .esc-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .esc-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .esc-brand__text {
    display: none;
  }

  .esc-hero {
    min-height: 690px;
  }

  .esc-hero__content {
    padding: 78px 0 122px;
  }

  .esc-section {
    padding: 68px 0;
  }

  .esc-flash-band__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .esc-subscribe-card,
  .esc-subscribe-form,
  .esc-purchase-box,
  .esc-redemption-box {
    padding: 22px;
  }

  .esc-redemption-qr img {
    width: 180px;
    height: 180px;
  }

  .esc-offer-bullets {
    grid-template-columns: 1fr;
  }
}
