/* ====================================================
   RESPONSIVE — Refinamientos mobile y tablet
   Carga DESPUÉS del resto para sobrescribir cuando hace falta
==================================================== */

/* ========================================
   PREVENT iOS ZOOM ON INPUTS
======================================== */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }
}

/* ========================================
   LOADER · NAV · BOTONES MOBILE
======================================== */
@media (max-width: 640px) {
  .loader-logo {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.5rem;
    text-align: center;
    line-height: 1.1;
  }
  .loader-bar { width: 140px; }
  .loader-text { font-size: 0.62rem; }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .nav-logo-sub { display: none; }
  .nav-logo-text { font-size: 0.95rem; }
  .nav-logo-v { font-size: 1.85rem; }
  .main-nav { padding: 0.85rem 1.1rem; }
}

@media (max-width: 380px) {
  .loader-logo { font-size: 1.35rem; }
  .nav-logo-text { font-size: 0.85rem; }
}

/* ========================================
   HERO — mobile y tablet
======================================== */
@media (max-width: 768px) {
  .hero { min-height: 95dvh; }

  /* Eyebrow más compacto */
  .hero-eyebrow {
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hero-eyebrow-text {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    white-space: normal;
    text-align: center;
  }
  .hero-eyebrow-line { width: 24px; }

  /* Title más controlado */
  .hero-title { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-subtitle { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 0.75rem; }
  .hero-description { font-size: 0.95rem; line-height: 1.55; }
  .hero-description br { display: none; }

  /* Botones — en tablet (>540px) row, en móvil column */
  .hero-actions {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 0.65rem;
    justify-content: center;
  }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  /* Meta — mostrar los 3 en horizontal compacto */
  .hero-meta {
    flex-direction: row !important;
    justify-content: space-around;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0 0.75rem !important;
    bottom: 1.2rem;
  }
  .hero-meta-item {
    display: flex !important;
    flex: 1;
    align-items: center !important;
    text-align: center !important;
    max-width: none !important;
    gap: 0.1rem;
  }
  .hero-meta-item[style*="right"],
  .hero-meta-item[style*="center"] { text-align: center !important; }
  .hero-meta-label { font-size: 0.5rem; letter-spacing: 0.1em; }
  .hero-meta-value { font-size: 1rem; }
  .hero-meta-sub { font-size: 0.5rem; }
  .hero-meta-value-sm { font-size: 0.5em; }
}

@media (max-width: 540px) {
  .hero-actions { flex-direction: column; max-width: 320px; }
  .hero-actions .btn { width: 100%; flex: none; }
}

@media (max-width: 480px) {
  .hero-meta-item:nth-child(2) .hero-meta-label,
  .hero-meta-item:nth-child(3) .hero-meta-label { display: block; }
  .hero-meta-sub { display: none; }
}

/* ========================================
   MARQUEE — mobile
======================================== */
@media (max-width: 640px) {
  .marquee-band { padding: 0.85rem 0; }
  .marquee-item { font-size: 1.15rem; }
  .marquee-separator { margin: 0 1rem; }
  .marquee-band::before,
  .marquee-band::after { width: 60px; }
}

/* ========================================
   CHEF SECTION — mobile y tablet
======================================== */
@media (max-width: 900px) {
  .chef-section { padding-top: clamp(3rem, 8vh, 5rem); }
  .chef-badge {
    width: 100px;
    height: 100px;
    font-size: 0.72rem;
    top: -8px;
    right: 5%;
  }
  .chef-badge-star { font-size: 1.05rem; }
  .chef-badge-text { font-size: 0.62rem; }
}

@media (max-width: 640px) {
  .chef-photo-wrap { transform: rotate(-0.5deg); aspect-ratio: 4/4.5; }
  .chef-title { font-size: clamp(2rem, 9vw, 2.8rem); }
  .chef-text { font-size: 0.95rem; line-height: 1.6; }
  .chef-quote { padding: 1.2rem 1.25rem; }
  .chef-quote-mark { width: 22px; height: 22px; top: 8px; left: 0.75rem; }
  .chef-quote p { padding-left: 1.85rem; font-size: 1.05rem; line-height: 1.4; }
  .chef-quote-author { padding-left: 1.85rem; font-size: 1.2rem; margin-top: 0.5rem; }
  .chef-stats { gap: 0; margin-top: var(--space-lg); }
  .chef-stat { padding: 0.65rem 0.25rem; }
  .chef-stat-number { font-size: 1.55rem; }
  .chef-stat-label { font-size: 0.58rem; letter-spacing: 0.05em; }
  .chef-caption { font-size: 1.05rem; }
}

/* ========================================
   VALORES — tablet medio
======================================== */
@media (max-width: 900px) and (min-width: 501px) {
  .valor-card { padding: 2rem 1.25rem; }
  .valor-icon { width: 44px; height: 44px; }
  .valor-title { font-size: 1.2rem; }
  .valor-description { font-size: 0.85rem; }
}

@media (max-width: 500px) {
  .valor-card { padding: 1.85rem 1.25rem; }
  .valor-number { font-size: 1rem; top: 0.85rem; left: 1rem; }
  .valor-icon { width: 42px; height: 42px; margin-bottom: 0.75rem; }
  .valor-title { font-size: 1.15rem; }
  .valor-description { font-size: 0.88rem; }
}

/* ========================================
   PLATOS SIGNATURE — tablet (768px en concreto)
======================================== */
@media (min-width: 641px) and (max-width: 1024px) {
  .platos-editorial {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .plato-card { grid-column: span 1; }
  .plato-card--feature {
    grid-column: span 2;
  }
  .plato-card--feature .plato-image-wrap { aspect-ratio: 21/9; }
}

@media (max-width: 640px) {
  .plato-card,
  .plato-card--feature { border-radius: 14px; }
  .plato-card--feature .plato-image-wrap,
  .plato-card .plato-image-wrap { aspect-ratio: 16/10; }
  .plato-name { font-size: 1.4rem; }
  .plato-description { font-size: 0.88rem; }
  .plato-price { font-size: 1.15rem; }
  .plato-info { padding: 1.1rem 1.25rem; gap: 0.4rem; }
  .plato-tag { font-size: 0.6rem; padding: 0.3rem 0.7rem; }
}

/* ========================================
   CARTA — pestañas y items mobile
======================================== */
@media (max-width: 640px) {
  .carta-nav {
    border-radius: 14px;
    padding: 0.35rem;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 0.25rem;
  }
  .carta-nav-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.6rem;
    flex-shrink: 0;
    letter-spacing: 0.08em;
  }
  .carta-category-title { font-size: 1.65rem; }
  .carta-category-subtitle { font-size: 1rem; }
  .carta-item-name { font-size: 1.1rem; }
  .carta-item-price { font-size: 1.05rem; }
  .carta-item-description { font-size: 0.85rem; }
  .carta-cta-note { font-size: 1.25rem; }
}

/* ========================================
   GALERIA — mobile
======================================== */
@media (max-width: 480px) {
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 0.85rem;
  }
  .galeria-item--wide { grid-column: span 1; }
  .galeria-item--tall { grid-row: span 1; }
  .galeria-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(13, 8, 5, 0.75) 0%, transparent 50%);
  }
  .galeria-caption { font-size: 0.95rem; }
  .entorno-quote-text { font-size: 1.25rem; }
  .entorno-quote-author { font-size: 1.1rem; }
}

/* ========================================
   PRENSA / PREMIOS — mobile y tablet
======================================== */
@media (max-width: 900px) {
  .prensa-award-img { width: 130px; height: 130px; padding: 8px; }
  .prensa-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    text-align: left;
    line-height: 1.1;
  }
  .prensa-award {
    text-align: left !important;
    align-items: center;
    flex-wrap: wrap;
  }
  .prensa-award-text { text-align: left; }
  .prensa-body { text-align: left; margin: 0 0 var(--space-md); font-size: 0.92rem; }
  .prensa-cite { padding: 1rem 1.25rem; }
  .prensa-cite p { font-size: 1.05rem; line-height: 1.45; }
}

@media (max-width: 480px) {
  .prensa-award {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center !important;
  }
  .prensa-award-img { margin: 0 auto; width: 110px; height: 110px; }
  .prensa-award-text {
    width: 100%;
    text-align: center !important;
  }
  .prensa-title { text-align: center; }
  .prensa-body { text-align: center; }
  .prensa-logos { max-width: 280px; margin: 0 auto !important; }
  .prensa-logo-score { font-size: 1.4rem; }
  .prensa-logo-source { font-size: 0.58rem; }
}

/* ========================================
   TESTIMONIOS — tablet 2 cols, mobile 1
======================================== */
@media (min-width: 641px) and (max-width: 1024px) {
  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .testimonio-card { padding: 1.5rem 1.35rem; }
  .testimonio-text { font-size: 1rem; line-height: 1.55; }
  .testimonio-card::before { font-size: 4.5rem; left: 1rem; top: -4px; }
  .testimonio-author-name { font-size: 0.85rem; }
  .testimonio-author-source { font-size: 0.62rem; }
}

/* ========================================
   RESERVAS — mobile y tablet
======================================== */
@media (max-width: 768px) {
  .reservas-form { padding: 1.5rem 1.25rem; }
  .reservas-form-title { font-size: 1.5rem; margin-bottom: 1rem; }
  .reservas-data { gap: 1.25rem; }
  .reservas-data-item { gap: 0.85rem; }
  .reservas-data-icon { width: 38px; height: 38px; }
  .reservas-data-icon svg { width: 16px; height: 16px; }
  .reservas-data-value { font-size: 0.95rem; }
  .reservas-description { font-size: 0.95rem; line-height: 1.6; margin-bottom: var(--space-lg); }
  .horario-row {
    grid-template-columns: 75px 1fr;
    gap: 0.65rem;
    font-size: 0.82rem;
  }
  .horario-dia { font-size: 0.6rem; }
  .horario-hora { font-size: 0.85rem; }
  .reservas-title { font-size: clamp(2rem, 9vw, 3rem); margin-top: 0.5rem; }
}

/* Form row breakpoints más finos */
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; gap: 0.85rem; }
}
@media (min-width: 541px) and (max-width: 900px) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
}

/* ========================================
   SECTION HEADERS · TYPOGRAFÍA FLUIDA
======================================== */
@media (max-width: 640px) {
  .section-header { margin-bottom: var(--space-lg); }
  .section-title { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.1; }
  .section-subtitle { font-size: 0.95rem; line-height: 1.55; }
  .section-eyebrow { font-size: 0.55rem; padding: 0.3rem 0.75rem; }
}

/* ========================================
   FOOTER — mobile compacto
======================================== */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-brand { grid-column: span 1; }
  .footer-grid > div:not(.footer-brand) {
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border-dark);
  }
  .footer-brand-text { max-width: 100%; margin-inline: auto; font-size: 0.88rem; }
  .footer-list { align-items: center; }
  .footer-socials { justify-content: center; gap: 0.6rem; }
  .footer-social { width: 40px; height: 40px; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
    padding-top: var(--space-md);
    font-size: 0.65rem;
  }
}

/* ========================================
   SAFE AREAS iOS notch
======================================== */
@supports (padding: max(0px)) {
  .main-nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  .hero-meta {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .main-footer {
    padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  }
}

/* ========================================
   PERFORMANCE: REDUCE ANIMATIONS EN TOUCH
======================================== */
@media (max-width: 768px) and (hover: none) {
  .hero-image { animation-duration: 60s; }
  .chef-badge { animation: none; }
  .prensa-award-img { animation: none; }
}

/* ========================================
   TOUCH-FRIENDLY TAP TARGETS (≥44px)
======================================== */
@media (hover: none) {
  .nav-link { padding: 0.85rem 0; min-height: 44px; display: flex; align-items: center; }
  .carta-nav-btn { min-height: 44px; }
  .footer-social { min-width: 44px; min-height: 44px; }
  .btn { min-height: 48px; }
  .nav-toggle { width: 36px; min-height: 44px; padding: 8px 0; }
}

/* ========================================
   LANDSCAPE MOBILE FIX (low height phones)
======================================== */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: 100dvh; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-meta { display: none; }
}
