/* ============================================
   FAMILIA SENDERISTA - Design System
   Mobile-first, nature-inspired, responsive
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors - Nature Premium Palette */
  --color-primary: #1B4332;
  --color-primary-mid: #2D6A4F;
  --color-primary-light: #52B788;
  --color-secondary: #B08D3E; /* Gold/Ochre for premium feel */
  --color-secondary-light: #D4A843;
  --color-accent: #1D3557; /* Deep Blue for contrast */
  --color-accent-light: #457B9D;

  /* Neutrals */
  --color-bg: #F8F9F5;
  --color-bg-alt: #FFFFFF;
  --color-card: #FFFFFF;
  --color-text: #2D3A30;
  --color-text-light: #4A5D4E;
  --color-text-muted: #8E9A90;
  --color-border: rgba(0,0,0,0.06);
  --color-white: #FFFFFF;
  --color-dark: #122315;

  /* Premium Effects */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, rgba(18, 35, 21, 0.9) 0%, rgba(45, 106, 79, 0.6) 100%);
  --gradient-premium: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  --gradient-accent: linear-gradient(135deg, #B08D3E 0%, #D4A843 100%);

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 3rem;
  --fs-4xl: 4rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-tight: 1.1;
  --lh-normal: 1.7;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Borders & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 50px -12px rgba(0,0,0,0.08);
  --shadow-premium: 0 15px 35px rgba(27, 67, 50, 0.15);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-dark);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

@media (min-width: 768px) {
  h1 { font-size: calc(var(--fs-2xl) * 1.2); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--fs-4xl); }
}

/* Accessibility: Focus states */
:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--fs-md);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-premium);
  color: var(--color-white);
  box-shadow: var(--shadow-premium);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(27, 67, 50, 0.25);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--color-white);
  border: none;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(176, 141, 62, 0.3);
  color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline-white:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.6rem;
}

.logo span {
  color: var(--color-primary-light);
}

/* Mobile menu toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  transition: right var(--transition-base);
  overflow-y: auto;
}

.main-nav.open {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(45,106,79,0.06);
}

/* Dropdown */
.dropdown-toggle::after {
  content: '▾';
  margin-left: var(--space-xs);
  font-size: var(--fs-xs);
}

.dropdown-menu {
  display: none;
  padding-left: var(--space-md);
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu .nav-link {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

.nav-overlay.show {
  display: block;
}

/* Desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .main-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
  }

  .nav-item {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    z-index: 100;
  }

  .nav-item:hover > .dropdown-menu {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero { min-height: 75vh; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: var(--fs-md);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-normal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  margin: 0 var(--space-xs);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body {
  padding: var(--space-lg);
}

.card-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(45,106,79,0.1);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card-tag.dificultad-facil { background: #d4edda; color: #155724; }
.card-tag.dificultad-media { background: #fff3cd; color: #856404; }
.card-tag.edad { background: #e3f2fd; color: #1565c0; }

.card-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.card-title a {
  color: var(--color-dark);
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-text {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.card-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --- Intent Section (Home) --- */
.intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .intent-grid { grid-template-columns: repeat(3, 1fr); }
}

.intent-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.intent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.intent-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.intent-card h3 {
  margin-bottom: var(--space-sm);
}

.intent-card p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-lg);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-3xl);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
  font-size: var(--fs-md);
}

/* --- Route Tech Card --- */
.route-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .route-specs { grid-template-columns: repeat(4, 1fr); }
}

.spec-item {
  text-align: center;
}

.spec-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.spec-value {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--color-primary-dark);
}

/* --- Brand Grid --- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(5, 1fr); }
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
}

.brand-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  font-size: var(--fs-md);
}

/* --- Prose (article content) --- */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.prose ul, .prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--space-sm);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-cta);
  padding: var(--space-3xl) var(--space-md);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: var(--space-3xl) 0;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-xl);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (max-width: 480px) {
  .contact-form {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
  }
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  text-align: center;
  font-size: var(--fs-xs);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- About page --- */
.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .about-values { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  text-align: center;
  padding: var(--space-xl);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

/* --- Tip Cards --- */
.tip-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .tip-list { grid-template-columns: repeat(2, 1fr); }
}

.tip-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.tip-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  border-radius: 50%;
  font-size: var(--fs-sm);
}

.tip-card h3 {
  font-size: var(--fs-base);
  margin-bottom: var(--space-xs);
}

.tip-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}
/* --- Premium Home Components --- */

.hero-premium {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

/* Brands Section */
.section-brands {
  padding: var(--space-xl) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.brands-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.brands-ticker {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xl);
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--transition-base);
}

.brand-item {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--color-dark);
}

/* Premium Cards */
.premium-card {
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.intent-icon-wrapper {
  width: 70px;
  height: 70px;
  background: rgba(45, 106, 79, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 2rem;
  transition: all var(--transition-base);
}

.premium-card:hover .intent-icon-wrapper {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(-5deg) scale(1.1);
}

.intent-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-primary-mid);
}

/* Featured Section */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 0.4rem 0.8rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
}

.card-tags {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Why Section */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

.why-list {
  margin: var(--space-xl) 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  margin-bottom: var(--space-md);
  font-weight: var(--fw-medium);
}

.why-image {
  position: relative;
  background: var(--color-bg-alt);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.experience-badge .number {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.experience-badge .text {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-left { text-align: left; }

/* ============================================
   Agency Polish Layer
   Shared production-grade refinements
   ============================================ */

:root {
  --color-primary-dark: #0F2F23;
  --color-primary: #173F31;
  --color-primary-mid: #2F6D53;
  --color-primary-light: #7BC7A1;
  --color-secondary: #C79A3A;
  --color-secondary-light: #E1BE68;
  --color-accent: #245C73;
  --color-accent-light: #6EA9BE;
  --color-bg: #F4F7F1;
  --color-bg-alt: #FFFFFF;
  --color-card: #FFFFFF;
  --color-text: #213128;
  --color-text-light: #516459;
  --color-text-muted: #7B8A81;
  --color-border: rgba(23, 63, 49, 0.12);
  --gradient-hero: linear-gradient(90deg, rgba(9, 28, 21, 0.78) 0%, rgba(23, 63, 49, 0.55) 44%, rgba(36, 92, 115, 0.3) 100%);
  --gradient-premium: linear-gradient(135deg, #123B2C 0%, #2F6D53 100%);
  --gradient-accent: linear-gradient(135deg, #B8842E 0%, #E1BE68 100%);
  --gradient-cta: linear-gradient(135deg, #0F2F23 0%, #245C73 58%, #C79A3A 130%);
  --shadow-card: 0 12px 30px rgba(20, 45, 34, 0.08);
  --shadow-md: 0 16px 34px rgba(20, 45, 34, 0.10);
  --shadow-lg: 0 28px 70px rgba(20, 45, 34, 0.15);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --header-height: 76px;
}

* {
  letter-spacing: 0;
}

html,
body {
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(244,247,241,0.96) 26rem),
    var(--color-bg);
}

.container {
  max-width: 1180px;
}

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-header .section-subtitle {
  margin-bottom: 0;
}

.section-intents,
.section-featured,
.section-why {
  position: relative;
}

.section-featured {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(244,247,241,0.96)),
    var(--color-bg);
}

.section-why {
  background: var(--color-bg-alt);
}

.text-center {
  text-align: center;
}

.site-header {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 0 rgba(23, 63, 49, 0.08);
}

.logo {
  gap: 0.7rem;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.logo-icon {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(160deg, #8CC8D7 0 44%, #F1D17B 45% 48%, #2F6D53 49% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 8px 18px rgba(23,63,49,0.16);
  font-size: 0;
}

.logo-icon::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 7px;
  height: 14px;
  background: #F8F9F5;
  clip-path: polygon(0 100%, 33% 34%, 47% 58%, 66% 15%, 100% 100%);
}

.logo-icon::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 5px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15,47,35,0.38);
}

.nav-link {
  border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(47, 109, 83, 0.08);
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}

.hero,
.hero-premium {
  min-height: calc(100svh - var(--header-height) - 34px);
  background-color: var(--color-primary-dark);
}

.hero::before,
.page-hero::before {
  background:
    linear-gradient(180deg, rgba(8,25,19,0.04) 0%, rgba(8,25,19,0.18) 100%),
    linear-gradient(90deg, rgba(8,25,19,0.56) 0%, rgba(23,63,49,0.34) 42%, rgba(36,92,115,0.08) 100%);
}

.hero-overlay {
  display: none;
}

.hero-content {
  max-width: 880px;
  padding: 5.8rem 1rem 5.3rem;
}

.hero-content h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: 3rem;
  line-height: 1.04;
  text-shadow: 0 3px 18px rgba(0,0,0,0.26);
}

.hero-subtitle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.12rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.22);
}

.hero-tag,
.brands-label,
.footer-heading,
.spec-label,
.card-tag,
.experience-badge .text {
  letter-spacing: 0;
}

.hero-tag {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

.btn {
  min-height: 46px;
  border-radius: 999px;
  box-shadow: none;
}

.btn-primary {
  background: var(--gradient-premium);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--color-primary-dark);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.section-brands {
  padding: 1.6rem 0;
}

.brands-ticker {
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  opacity: 0.78;
  filter: none;
}

.brand-item {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.card,
.intent-card,
.brand-card,
.tip-card,
.contact-form {
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.card,
.intent-card {
  overflow: hidden;
}

.card:hover,
.intent-card:hover,
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img,
.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body,
.card-content {
  padding: 1.35rem;
}

.card-title,
.card-content h3 {
  margin-bottom: 0.6rem;
}

.card-title a,
.card-content h3 a {
  color: var(--color-primary-dark);
}

.card-text,
.card-content p {
  color: var(--color-text-light);
  font-size: var(--fs-sm);
}

.card-tags {
  flex-wrap: wrap;
}

.card-tag,
.category-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(47,109,83,0.1);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: none;
}

.tag-easy,
.card-tag.dificultad-facil {
  background: rgba(64, 145, 108, 0.14);
  color: #17613F;
}

.tag-med,
.card-tag.dificultad-media {
  background: rgba(199, 154, 58, 0.18);
  color: #755015;
}

.tag-age,
.card-tag.edad {
  background: rgba(36, 92, 115, 0.13);
  color: #245C73;
}

.tag-pro {
  background: rgba(199, 154, 58, 0.18);
  color: #6D4B12;
}

.card-meta,
.card-footer {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.grid,
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-grid .card {
  height: 100%;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.lead {
  color: var(--color-primary-dark);
  font-size: 1.18rem;
  line-height: 1.75;
}

.article-meta {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.article-note {
  background: rgba(36, 92, 115, 0.08);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary-dark);
  margin: 1.6rem 0;
  padding: 1rem 1.15rem;
}

.table-scroll {
  margin: 1.5rem 0 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
}

.route-pick {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 1.4rem 0;
  padding: 1.3rem;
}

.route-pick h3 {
  margin-top: 0;
}

.route-mini-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

.route-mini-grid > div {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.15rem;
}

.route-mini-grid h3 {
  margin-top: 0;
}

.article-faq {
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
  padding-top: 0.5rem;
}

.source-list {
  font-size: var(--fs-sm);
}

@media (min-width: 780px) {
  .route-mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prose {
  font-size: 1.04rem;
}

.prose img {
  width: 100%;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.related-posts {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.related-posts hr {
  display: none;
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background-image: url('../img/rutas-madrid.png');
  background-size: cover;
  background-position: center;
}

.breadcrumbs {
  padding: 1rem 0 0;
}

.page-hero .breadcrumbs,
.page-hero .breadcrumbs a {
  color: rgba(255,255,255,0.72);
}

.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--gradient-cta);
  box-shadow: var(--shadow-lg);
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: auto -10% -45% 45%;
  height: 70%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 62%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.why-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.why-image {
  background:
    linear-gradient(180deg, rgba(15,47,35,0.05), rgba(15,47,35,0.18)),
    url('../img/hero-familia.png') center / cover;
}

.footer-brand,
.footer-info,
.footer-nav,
.footer-social {
  min-width: 0;
}

.footer-info p,
.footer-brand p {
  max-width: 28rem;
  color: rgba(255,255,255,0.68);
}

@media (max-width: 1023px) {
  .main-nav {
    right: 0;
    width: 100vw;
    max-width: none;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }

  .main-nav.open {
    right: 0;
    transform: translateX(0);
  }

  .nav-list {
    gap: 0.2rem;
  }

  .dropdown-menu {
    padding-left: 0.5rem;
  }
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.22rem;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 4.75rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 3.6rem 0;
  }

  .logo {
    font-size: 1rem;
  }

  .hero,
  .hero-premium {
    min-height: 670px;
  }

  .hero-content {
    padding: 4.8rem 1rem 4.2rem;
  }

  .hero-content h1 {
    font-size: 2.55rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .brands-ticker {
    justify-content: flex-start;
  }

  .card-footer,
  .card-meta {
    justify-content: flex-start;
  }

  .experience-badge {
    left: 1rem;
    bottom: 1rem;
  }
}
