/*
Theme Name: Elitours
Theme URI: https://www.elitours.com.mx
Author: Elitours
Author URI: https://www.elitours.com.mx
Description: Tema personalizado para Elitours — Agencia de viajes Cancún. Feed de ofertas diarias con sidebar de publicidad, diseño elegante navy y dorado.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Privado
Text Domain: elitours
*/

/* =============================================
   VARIABLES & RESET
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1a2f45;
  --gold:       #C49A3C;
  --gold-light: #E8C97A;
  --gold-pale:  rgba(196,154,60,0.12);
  --cream:      #FAF7F2;
  --white:      #FFFFFF;
  --muted:      #6B7280;
  --border:     rgba(196,154,60,0.2);
  --border-light: rgba(196,154,60,0.1);
  --shadow:     0 2px 12px rgba(13,27,42,0.08);
  --radius:     6px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #F5E9C8;
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* =============================================
   LAYOUT WRAPPER
   ============================================= */
.site-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 40px rgba(13,27,42,0.06);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(13,27,42,0.5);
}

.site-logo {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 5px;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 6px rgba(196,154,60,0.4));
}
.site-logo span {
  color: var(--gold);
  -webkit-text-stroke: 1.5px #000;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-menu li a {
  display: block;
  padding: 0 1rem;
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 400;
  line-height: 72px;
  transition: color 0.2s;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item > a { color: var(--gold-light); }

/* mobile toggle only */

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 18px;
}

/* =============================================
   HERO BANNER CON FOTOS DE DESTINOS
   ============================================= */
.site-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--gold);
}

.hero-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  gap: 2px;
}
.hero-photo {
  overflow: hidden;
  position: relative;
}
.hero-photo-label {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  font-weight: 500;
  text-shadow:
    0 0 8px rgba(13,27,42,1),
    0 0 18px rgba(13,27,42,0.98),
    0 1px 4px rgba(13,27,42,1);
}
.hero-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(1.1);
  transition: transform 8s ease;
}
.hero-photo img:hover { transform: scale(1.05); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  gap: 1.5rem;
}

.hero-text .tagline {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  line-height: 1.2;
  font-weight: 500;
  text-shadow:
    0 0 18px rgba(13,27,42,0.95),
    0 0 35px rgba(13,27,42,0.9),
    0 2px 8px rgba(13,27,42,1),
    -2px 0 10px rgba(13,27,42,0.85),
    2px 0 10px rgba(13,27,42,0.85);
}
.hero-text .tagline em {
  color: var(--gold-light);
  font-style: italic;
}
.hero-text .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.95);
  margin-top: 5px;
  font-weight: 400;
  letter-spacing: 0.3px;
  text-shadow:
    0 0 12px rgba(13,27,42,1),
    0 0 25px rgba(13,27,42,0.95),
    0 1px 6px rgba(13,27,42,1);
}

.hero-contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: right;
  flex-shrink: 0;
}
.hero-contact-item {
  font-size: 11.5px;
  color: rgba(255,255,255,0.95);
  text-shadow:
    0 0 10px rgba(13,27,42,1),
    0 0 22px rgba(13,27,42,0.95),
    0 1px 5px rgba(13,27,42,1);
}
.hero-contact-item svg {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 4px;
  color: var(--gold);
}
.hero-contact-item strong {
  color: var(--white);
  font-weight: 500;
}

/* =============================================
   MAIN LAYOUT: FEED + SIDEBAR
   ============================================= */
.site-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  align-items: start;
}

/* =============================================
   FEED DE POSTS / OFERTAS
   ============================================= */
.posts-feed {
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-right: 0.5px solid var(--border);
  background: #F5E9C8;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}
.feed-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 400;
}
.feed-count {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 400;
}

/* Tarjeta de oferta / post */
.post-card {
  display: flex;
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(13,27,42,0.10);
}
.post-card:hover {
  box-shadow: 0 6px 20px rgba(13,27,42,0.15);
  transform: translateY(-2px);
}

.post-color-bar {
  width: 5px;
  flex-shrink: 0;
}
/* Colores por categoría */
.cat-europa     { background: linear-gradient(to bottom, #378ADD, #185FA5); }
.cat-asia       { background: linear-gradient(to bottom, #639922, #3B6D11); }
.cat-cruceros   { background: linear-gradient(to bottom, #7F77DD, #534AB7); }
.cat-mexico     { background: linear-gradient(to bottom, #EF9F27, #BA7517); }
.cat-usa        { background: linear-gradient(to bottom, #888780, #5F5E5A); }
.cat-caribe     { background: linear-gradient(to bottom, #1D9E75, #0F6E56); }
.cat-sudamerica { background: linear-gradient(to bottom, #D85A30, #993C1D); }
.cat-africa     { background: linear-gradient(to bottom, #BA7517, #854F0B); }
.cat-pacifico   { background: linear-gradient(to bottom, #378ADD, #0C447C); }
.cat-oriente    { background: linear-gradient(to bottom, #D4537E, #993556); }
.cat-default    { background: linear-gradient(to bottom, var(--gold), #8a6b28); }

.post-body {
  padding: 1rem 1.1rem;
  flex: 1;
  min-width: 0;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}
.tag-europa     { background: #E6F1FB; color: #0C447C; }
.tag-asia       { background: #EAF3DE; color: #27500A; }
.tag-cruceros   { background: #EEEDFE; color: #3C3489; }
.tag-mexico     { background: #FAEEDA; color: #633806; }
.tag-usa        { background: #F1EFE8; color: #444441; }
.tag-caribe     { background: #E1F5EE; color: #085041; }
.tag-sudamerica { background: #FAECE7; color: #712B13; }
.tag-oferta     { background: #FCEBEB; color: #791F1F; }
.tag-nuevo      { background: #E1F5EE; color: #085041; }
.tag-default    { background: #FAEEDA; color: #633806; }

.post-title-link {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.3rem;
  font-weight: 500;
  transition: color 0.2s;
}
.post-title-link:hover { color: var(--gold); }

.post-excerpt {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
}
.post-date {
  font-size: 10px;
  color: var(--muted);
}
.post-read-more {
  font-size: 10.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  transition: color 0.2s;
}
.post-read-more:hover { color: var(--gold-light); }

/* Si el post tiene imagen destacada */
.post-card.has-thumb {
  flex-direction: column;
}
.post-card.has-thumb .post-color-bar {
  width: 100%;
  height: 5px;
}
.post-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* =============================================
   PAGINACIÓN
   ============================================= */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 0.5px solid var(--border);
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--navy);
  background: var(--white);
  transition: all 0.2s;
}
.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
  font-weight: 500;
}
.page-numbers.dots { border: none; background: transparent; }

/* =============================================
   SIDEBAR
   ============================================= */
.site-sidebar {
  padding: 1.5rem 1.25rem;
  background: var(--white);
  position: sticky;
  top: 72px;
}

.sidebar-block {
  margin-bottom: 1.75rem;
}
.sidebar-block:last-child { margin-bottom: 0; }

.sidebar-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 0.5px solid var(--border);
  font-weight: 400;
}

/* Buscador sidebar */
.sidebar-search {
  display: flex;
  gap: 0.4rem;
}
.sidebar-search input[type="search"] {
  flex: 1;
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  outline: none;
}
.sidebar-search input:focus { border-color: var(--gold); }
.sidebar-search button {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
}

/* =============================================
   BLOQUE PUBLICIDAD YATES
   ============================================= */
.yates-widget {
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  border: 0.5px solid rgba(196,154,60,0.2);
}
.yates-widget-header {
  padding: 0.7rem 0.9rem;
  background: var(--gold-pale);
  border-bottom: 0.5px solid rgba(196,154,60,0.15);
}
.yates-widget-eyebrow {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 2px;
}
.yates-widget-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.2;
}

.yates-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.yates-photos-grid .span-full { grid-column: span 2; }
.yates-photo-item {
  position: relative;
  overflow: hidden;
}
.yates-photo-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  filter: brightness(0.72) saturate(1.1);
  transition: filter 0.3s;
}
.yates-photo-item.span-full img { height: 88px; }
.yates-photo-item:hover img { filter: brightness(0.85) saturate(1.2); }
.yates-photo-caption {
  position: absolute;
  bottom: 5px;
  left: 7px;
  font-size: 9px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  font-weight: 500;
}

.yates-links {
  padding: 0.3rem 0;
}
.yates-link-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-top: 0.5px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.yates-link-item:hover { background: rgba(255,255,255,0.04); }
.yates-link-icon { font-size: 17px; flex-shrink: 0; }
.yates-link-info { flex: 1; min-width: 0; }
.yates-link-name {
  font-size: 11px;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yates-link-url {
  font-size: 9.5px;
  color: rgba(255,255,255,0.38);
}
.yates-cta-link {
  display: block;
  text-align: center;
  padding: 0.55rem;
  font-size: 10px;
  color: var(--gold);
  border-top: 0.5px solid rgba(196,154,60,0.18);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
  transition: background 0.2s;
}
.yates-cta-link:hover {
  background: var(--gold-pale);
  color: var(--gold-light);
}

/* =============================================
   LISTA DE DESTINOS / CATEGORÍAS SIDEBAR
   ============================================= */
.cat-list {
  list-style: none;
  padding: 0;
}
.cat-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.3rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.cat-list li:hover { background: var(--cream); }
.cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cat-list a {
  font-size: 12.5px;
  color: var(--navy);
  flex: 1;
  transition: color 0.15s;
}
.cat-list li:hover a { color: var(--gold); }
.cat-list .count {
  font-size: 10px;
  color: var(--muted);
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 10px;
  border: 0.5px solid var(--border-light);
}

/* =============================================
   POSTS RECIENTES SIDEBAR
   ============================================= */
.recent-posts-list {
  list-style: none;
  padding: 0;
}
.recent-posts-list li {
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border-light);
}
.recent-posts-list li:last-child { border-bottom: none; }
.recent-post-link {
  font-family: var(--font-display);
  font-size: 12.5px;
  color: var(--navy);
  line-height: 1.3;
  display: block;
  margin-bottom: 2px;
}
.recent-post-link:hover { color: var(--gold); }
.recent-post-date {
  font-size: 10px;
  color: var(--muted);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  padding: 2rem;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--white); }
.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.6;
}
.footer-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 0.8rem;
  font-weight: 400;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}
.footer-contact-item strong {
  color: var(--white);
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}
.footer-bottom {
  border-top: 0.5px solid rgba(196,154,60,0.15);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   SINGLE POST
   ============================================= */
.single-post-wrap {
  padding: 2rem;
}
.single-post-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--border);
}
.single-post-cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.single-post-title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.single-post-meta {
  font-size: 11.5px;
  color: var(--muted);
}
.single-post-thumb {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.single-post-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy);
}
.single-post-content p { margin-bottom: 1rem; }
.single-post-content h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 1.5rem 0 0.75rem;
  color: var(--navy);
}
.single-post-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 1.25rem 0 0.5rem;
}
.single-post-content ul, .single-post-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.single-post-content li { margin-bottom: 0.3rem; }
.single-post-content img {
  border-radius: var(--radius);
  margin: 1rem 0;
}
.single-post-content a { color: var(--gold); border-bottom: 1px solid var(--border); }
.single-post-content a:hover { color: var(--gold-light); border-color: var(--gold); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 0.5px solid var(--border);
}
.post-nav-item {
  padding: 0.875rem 1rem;
  background: var(--cream);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.post-nav-item:hover { border-color: var(--gold); }
.post-nav-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.post-nav-title { font-family: var(--font-display); font-size: 13px; color: var(--navy); line-height: 1.3; }
.post-nav-item.next { text-align: right; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .site-main { grid-template-columns: 1fr; }
  .site-sidebar { position: static; border-top: 0.5px solid var(--border); }
  .hero-photos { height: 140px; }
  .hero-photo img { height: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-feed { padding: 1.25rem; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(196,154,60,0.15);
    z-index: 99;
    padding: 0.5rem 0;
  }
  .nav-menu.open li a { line-height: 1; padding: 0.7rem 1.5rem; }
  .hero-photos { grid-template-columns: repeat(2, 1fr); height: 130px; }
  .hero-photo img { height: 130px; }
  .hero-photos .hero-photo:nth-child(3),
  .hero-photos .hero-photo:nth-child(4) { display: none; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero-contacts { text-align: left; }
  .hero-text .tagline { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
}
