/* ==========================================================================
   Marea Verde - Hoja de Estilos Principal
   Café Costero en Uvita, Costa Rica
   Diseño Mobile-First | Paleta Cálida | Tipografías Google Fonts
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables CSS y Tema Cálido
   -------------------------------------------------------------------------- */
:root {
  /* Paleta cálida costera */
  --color-sand-50: #fcfaf7;
  --color-sand-100: #fbf8f3;
  --color-sand-200: #f4eee5;
  --color-sand-300: #eadfcb;
  --color-sand-400: #d8c3a5;
  --color-sand-500: #d8a468;
  
  --color-terracotta-500: #c65d3b;
  --color-terracotta-600: #ad4b2c;
  --color-terracotta-700: #8c3a20;
  --color-terracotta-light: #fbeee9;

  --color-forest-900: #142a24;
  --color-forest-800: #1a3b32;
  --color-forest-700: #254e43;
  --color-forest-600: #336558;
  --color-forest-light: #eef5f2;

  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;

  --color-text-main: #261e18;
  --color-text-muted: #5e5248;
  --color-text-subtle: #8a7a6e;
  --color-card-bg: #ffffff;
  --color-border: rgba(140, 101, 65, 0.16);
  --color-border-light: rgba(140, 101, 65, 0.08);

  /* Tipografías */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevaciones y sombras */
  --shadow-sm: 0 2px 6px rgba(45, 30, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(45, 30, 20, 0.08);
  --shadow-lg: 0 16px 36px rgba(45, 30, 20, 0.12);

  /* Radio de bordes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transición estándar */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y Configuración Base (Mobile-First)
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background-color: var(--color-sand-100);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-top: 2.25rem;
}

/* ---------- Cinta de demostración ---------- */

.demo-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.25rem;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-terracotta-600, #b1552e);
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


img,
svg {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Enlace de salto accesible */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-forest-800);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* Contenedor responsivo */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --------------------------------------------------------------------------
   3. Tipografía y Encabezados
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-forest-900);
  line-height: 1.2;
  font-weight: 600;
}

.section-header {
  margin-bottom: 2.25rem;
}

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

.section-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta-600);
  background-color: var(--color-terracotta-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. Botones y Elementos Interactivos
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  line-height: 1;
}

.btn-primary {
  background-color: var(--color-terracotta-500);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(198, 93, 59, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-terracotta-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 93, 59, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-forest-800);
  border: 1.5px solid var(--color-forest-800);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-forest-800);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background-color: #1eb956;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1.05rem 2rem;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
}

.btn-icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Encabezado del Sitio (Header y Navegación)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 2.25rem;
  width: 100%;
  background-color: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 100;
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-forest-800);
}

.logo-icon {
  color: var(--color-terracotta-500);
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-forest-900);
}

/* Botón Hamburguesa Móvil */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(234, 223, 203, 0.5);
  transition: background-color var(--transition-fast);
}

.menu-toggle:hover {
  background-color: rgba(234, 223, 203, 0.9);
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-forest-900);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú de Navegación en Pantallas Pequeñas */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-sand-100);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem 1.75rem;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

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

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-forest-900);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-terracotta-500);
  padding-left: 0.75rem;
}

.nav-cta-wrap {
  padding-top: 0.5rem;
}

.nav-cta-wrap .btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Sección Hero
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(175deg, #f4eee5 0%, #fbf8f3 60%, #eadfcb 100%);
  padding: 3.5rem 0 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, rgba(251, 248, 243, 0.97) 0%, rgba(251, 248, 243, 0.86) 42%, rgba(37, 78, 67, 0.55) 100%), url("img/stock/hero-beach.jpg");
  background-size: cover;
  background-position: center 60%;
  z-index: 0;
}

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

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-forest-800);
  background-color: rgba(37, 78, 67, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-terracotta-500);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-forest-900);
  margin-bottom: 1rem;
}

.hero-promise {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Tarjetas destacadas del Hero */
.hero-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border-light);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
}

.feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  background-color: var(--color-sand-200);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}

.feature-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-forest-900);
  margin-bottom: 0.2rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Sección de Bienvenida / Filosofía
   -------------------------------------------------------------------------- */
.welcome-section {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--color-sand-100);
}

.welcome-container {
  text-align: center;
  max-width: 800px;
}

.welcome-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta-600);
  margin-bottom: 0.75rem;
}

.welcome-heading {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem;
  color: var(--color-forest-900);
}

.welcome-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   8. Sección de Menú Destacado
   -------------------------------------------------------------------------- */
.menu-section {
  padding: 4.5rem 0;
  background-color: var(--color-sand-200);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.menu-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.menu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.menu-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-forest-700);
}

.menu-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-terracotta-600);
  white-space: nowrap;
}

.menu-item-title {
  font-size: 1.25rem;
  color: var(--color-forest-900);
  margin-bottom: 0.6rem;
}

.menu-item-description {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.menu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-top: 1px dashed var(--color-border-light);
  padding-top: 0.85rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  background-color: var(--color-sand-200);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.menu-footer-note {
  margin-top: 2.75rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. Sección Horarios y Ubicación
   -------------------------------------------------------------------------- */
.info-section {
  padding: 4.5rem 0;
  background-color: var(--color-sand-100);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.info-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-forest-light);
  color: var(--color-forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-title {
  font-size: 1.35rem;
  color: var(--color-forest-900);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--color-border-light);
}

.schedule-day {
  font-weight: 600;
  color: var(--color-forest-900);
  font-size: 0.95rem;
}

.schedule-hours {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.schedule-item.closed .schedule-hours {
  color: var(--color-terracotta-600);
  font-weight: 500;
}

.schedule-details {
  background-color: var(--color-sand-200);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.schedule-details strong {
  color: var(--color-forest-900);
}

.location-address {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.location-address strong {
  color: var(--color-forest-900);
}

.location-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.loc-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.loc-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   10. Sección de Contacto (WhatsApp Prominente)
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, var(--color-sand-100) 0%, var(--color-sand-300) 100%);
}

.contact-card-wrapper {
  background-color: var(--color-forest-800);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-card-wrapper::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(198, 93, 59, 0.25) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.contact-content .section-badge {
  background-color: rgba(255, 255, 255, 0.15);
  color: #f7d298;
}

.contact-content .section-title {
  color: #ffffff;
}

.contact-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.25rem;
}

.contact-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.whatsapp-icon {
  flex-shrink: 0;
}

.whatsapp-number-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2rem;
}

.contact-mini-card {
  background-color: rgba(255, 255, 255, 0.07);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
}

.mini-title {
  display: block;
  font-size: 0.95rem;
  color: #f7d298;
  margin-bottom: 0.35rem;
}

.contact-mini-card p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   11. Pie de Página (Footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-forest-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.footer-logo .logo-icon {
  color: var(--color-sand-500);
}

.footer-logo .brand-text {
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav-list a:hover {
  color: var(--color-sand-500);
  padding-left: 0.25rem;
}

.footer-contact p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-wa-link {
  color: #25d366;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.4rem;
}

.footer-wa-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-peace {
  color: var(--color-sand-500);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   12. Animación de Scroll-Reveal Robusta y Accesible
   Garantía: Sin JS o con prefers-reduced-motion jamás queda en opacity 0
   -------------------------------------------------------------------------- */
/* Por defecto, los elementos son plenamente visibles */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

/* Si JS está disponible y el usuario no tiene reducción de movimiento */
.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js-reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeto estricto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .js-reveal-enabled .reveal,
  .js-reveal-enabled .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   13. Media Queries Responsivas (Tablets y Escritorio)
   -------------------------------------------------------------------------- */
/* Dispositivos medianos (>= 640px) */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-bottom-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Tablets y Escritorio (>= 768px) */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
    width: auto;
  }

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

  .nav-link {
    padding: 0.35rem 0;
    font-size: 0.95rem;
    border-bottom: none;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta-500);
    transition: width var(--transition-fast);
  }

  .nav-link:hover::after,
  .nav-link:focus::after {
    width: 100%;
  }

  .nav-link:hover,
  .nav-link:focus {
    padding-left: 0;
  }

  .nav-cta-wrap {
    padding-top: 0;
  }

  .nav-cta-wrap .btn {
    width: auto;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-container {
    grid-template-columns: 2fr 1fr 1.5fr;
  }
}

/* Pantallas Grandes (>= 1024px) */
@media (min-width: 1024px) {
  .hero-section {
    padding: 5rem 0 4.5rem;
  }

  .hero-container {
    gap: 3.5rem;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card-wrapper {
    padding: 4rem 3.5rem;
  }
}

/* ---------- Fotografía real: interludios y detalles ---------- */

.welcome-photo {
  display: block;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius-md, 0.75rem);
  box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.12));
}

.photo-interlude {
  position: relative;
  min-height: 20rem;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.photo-interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 24, 20, 0.78) 0%, rgba(20, 24, 20, 0.1) 65%);
}

.photo-interlude-caption {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 2.25rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.photo-interlude-caption p {
  color: #fff;
  font-family: var(--font-display, serif);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 600;
  max-width: 32rem;
  margin: 0;
}

.photo-interlude.cappuccino {
  background-image: url("img/stock/cappuccino.jpg");
  background-position: center 35%;
  min-height: 18rem;
}

.photo-interlude.beach {
  background-image: url("img/stock/aerial-beach.jpg");
}

.footer-credits {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}
