/*
Theme Name: Hotel Avilés
Theme URI: https://hotelaviles.com
Author: hotelaviles.com
Author URI: https://hotelaviles.com
Description: Tema WordPress para hotelaviles.com — Directorio turístico de Avilés, Asturias. Hoteles, restaurantes, qué ver y blog de viajes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotelaviles
Tags: hotel, turismo, aviles, asturias, directory
*/

/* ===== VARIABLES ===== */
:root {
  --bg: hsl(210, 20%, 98%);
  --fg: hsl(215, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-fg: hsl(215, 25%, 15%);
  --primary: hsl(215, 50%, 23%);
  --primary-fg: hsl(210, 40%, 98%);
  --secondary: hsl(210, 20%, 95%);
  --secondary-fg: hsl(215, 25%, 15%);
  --muted: hsl(210, 15%, 93%);
  --muted-fg: hsl(215, 10%, 46%);
  --accent: hsl(28, 85%, 55%);
  --accent-fg: hsl(0, 0%, 100%);
  --border: hsl(214, 20%, 88%);
  --radius: 0.625rem;
  --shadow-card: 0 2px 16px -4px hsla(215, 50%, 23%, 0.08);
  --shadow-card-hover: 0 8px 30px -8px hsla(215, 50%, 23%, 0.15);
  --hero-overlay: linear-gradient(180deg, hsla(215, 50%, 15%, 0.55) 0%, hsla(215, 50%, 10%, 0.75) 100%);
  --font-serif: 'DM Serif Display', serif;
  --font-sans: 'DM Sans', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-serif); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== NAVBAR ===== */
.site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  height: 64px;
}
.site-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary-fg);
}
.site-logo span { color: var(--accent); }

.site-nav { display: flex; gap: 0.25rem; }
.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(210, 40%, 98%, 0.8);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--accent); }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--primary-fg); cursor: pointer; padding: 0.5rem; }
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .mobile-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--primary);
    border-top: 1px solid hsla(210, 40%, 98%, 0.1);
    padding-bottom: 1rem;
  }
  .site-nav.open a { padding: 0.75rem 1.5rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 64px;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  padding: 2rem 1rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: var(--primary-fg);
  margin-bottom: 1rem;
  line-height: 1.15;
  text-wrap: balance;
}
.hero-content p {
  font-size: 1.125rem;
  color: hsla(210, 40%, 98%, 0.8);
  margin-bottom: 2rem;
}

/* Search bar */
.hero-search {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-search .field { flex: 1; min-width: 150px; }
.hero-search label { display: block; font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.25rem; margin-left: 0.25rem; }
.hero-search select,
.hero-search input {
  width: 100%;
  background: var(--secondary);
  color: var(--fg);
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  font-family: var(--font-sans);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-accent:hover { opacity: 0.9; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; }

/* ===== SECTIONS ===== */
.section { padding: 4rem 0; }
.section-bg { background: var(--secondary); }
.section-primary { background: var(--primary); }

.section-title {
  font-size: 1.875rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--muted-fg);
  margin-bottom: 2rem;
}

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.card:hover { box-shadow: var(--shadow-card-hover); }
.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1rem; }
.card-body h3 { font-size: 1.125rem; margin-bottom: 0.25rem; }

.badge {
  display: inline-block;
  background: var(--secondary);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
}
.badge-accent {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ===== EXPERIENCE CARDS ===== */
.experience-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 16rem;
  display: block;
}
.experience-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.experience-card:hover img { transform: scale(1.05); }
.experience-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(215, 50%, 23%, 0.9), hsla(215, 50%, 23%, 0.4), transparent);
}
.experience-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem;
}
.experience-card h3 {
  color: var(--primary-fg);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.experience-card p {
  color: hsla(210, 40%, 98%, 0.7);
  font-size: 0.875rem;
}

/* ===== MAP SECTION ===== */
.map-container {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--primary);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--primary-fg); margin-bottom: 0.75rem; }
.cta-section p { color: hsla(210, 40%, 98%, 0.7); font-size: 1.125rem; margin-bottom: 1.5rem; }

/* ===== FILTERS ===== */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.filters .label { font-size: 0.875rem; font-weight: 600; }
.filter-btn {
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: var(--secondary);
  color: var(--secondary-fg);
  font-family: var(--font-sans);
}
.filter-btn:hover { background: var(--muted); }
.filter-btn.active {
  background: var(--accent);
  color: var(--accent-fg);
}

/* ===== SIDEBAR LAYOUT ===== */
.layout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .layout-sidebar {
    flex-direction: row;
  }
  .sidebar { width: 16rem; flex-shrink: 0; }
}
.sidebar-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 6rem;
}

/* ===== PLACE CARD ===== */
.place-card .card-img { aspect-ratio: 16/10; }
.place-card .card-body p {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.place-card .schedule {
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid hsla(28, 85%, 55%, 0.3);
}

/* ===== TRANSPORT ===== */
.transport-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.transport-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.transport-card ul { list-style: none; }
.transport-card li {
  font-size: 0.875rem;
  color: var(--muted-fg);
  line-height: 1.6;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 2px solid hsla(28, 85%, 55%, 0.3);
}

.parking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.parking-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}
.parking-card h3 { font-weight: 600; margin-bottom: 0.25rem; }
.parking-card .price { color: var(--accent); font-weight: 500; margin-top: 0.5rem; font-size: 0.875rem; }

/* ===== BLOG ===== */
.blog-article {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
  margin-bottom: 2rem;
}
.blog-article:hover { box-shadow: var(--shadow-card-hover); }
@media (min-width: 768px) {
  .blog-article { display: flex; }
  .blog-article .blog-img { width: 20rem; flex-shrink: 0; }
}
.blog-img { aspect-ratio: 16/10; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-article:hover .blog-img img { transform: scale(1.05); }
.blog-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.blog-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 0.5rem; }
.blog-body h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.blog-body p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
.blog-footer { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.blog-footer a { font-size: 0.875rem; color: var(--accent); font-weight: 500; }

/* ===== FOR HOTELIERS ===== */
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.feature-card h3 { font-size: 1.125rem; margin: 0.5rem 0; }
.feature-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
.feature-icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: hsla(28, 85%, 55%, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.stat-card .value { font-size: 1.875rem; font-weight: 700; }
.stat-card .label { font-size: 0.875rem; color: var(--muted-fg); }

blockquote {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 28rem; margin: 0 auto; }
.contact-form label { display: block; font-size: 0.875rem; color: hsla(210, 40%, 98%, 0.7); margin-bottom: 0.25rem; }
.contact-form input {
  width: 100%;
  background: hsla(210, 40%, 98%, 0.1);
  color: var(--primary-fg);
  border: 1px solid hsla(210, 40%, 98%, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.contact-form input:focus { border-color: var(--accent); }
.contact-form input::placeholder { color: hsla(210, 40%, 98%, 0.3); }
.contact-form button {
  width: 100%;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: opacity 0.2s;
}
.contact-form button:hover { opacity: 0.9; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 3rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h3 { font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer-grid h3 span { color: var(--accent); }
.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsla(210, 40%, 98%, 0.6);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.footer-grid p,
.footer-grid a {
  font-size: 0.875rem;
  color: hsla(210, 40%, 98%, 0.7);
  line-height: 1.8;
  display: block;
  transition: color 0.2s;
}
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid hsla(210, 40%, 98%, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsla(210, 40%, 98%, 0.5);
}

/* ===== 404 ===== */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.not-found h1 { font-size: 4rem; color: var(--muted-fg); margin-bottom: 1rem; }
.not-found p { color: var(--muted-fg); margin-bottom: 2rem; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--primary);
  padding: 3rem 0;
  margin-top: 64px;
}
.page-header h1 { font-size: 2.25rem; color: var(--primary-fg); margin-bottom: 0.5rem; }
.page-header p { color: hsla(210, 40%, 98%, 0.7); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted-fg); font-size: 0.875rem; }
