/* ======================================================
   DELIGHT CAFÉ — Dynamic Island Web App (€2.000 Quality)
   ====================================================== */

:root {
  /* Colors */
  --bg-app: #F8F6F0;
  --surface: #FFFFFF;
  --surface-subtle: #F3EFE6;
  
  --primary: #3E2723;       /* Deep Coffee Brown */
  --primary-light: #5D4037;
  --accent: #D84315;        /* Terracotta / Flame */
  --accent-soft: #FFF3E0;
  --tripadvisor: #00E676;   /* TripAdvisor Green */
  --google-blue: #4285F4;   /* Google Review Blue */
  
  --text-main: #1C1917;
  --text-muted: #78716C;
  --border-light: #E7E2D8;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadows & Radius */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(62, 39, 35, 0.08);
  --shadow-lg: 0 16px 32px rgba(62, 39, 35, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body.mobile-app {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  padding-bottom: 95px; /* Space for dynamic island */
}

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

/* ─── SLOW CINEMATIC SCROLL REVEAL ANIMATIONS ─── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* QR Center-Growing Animation */
.qr-grow-reveal {
  transform: scale(0.1) rotate(-10deg);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1.2s ease;
  will-change: transform, opacity;
}
.qr-grow-reveal.visible {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* ─── TOP STATUS BAR ─── */
.top-status-bar {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-indicator { display: flex; align-items: center; gap: 0.4rem; }
.status-dot.green {
  width: 8px; height: 8px; background: #00E676; border-radius: 50%;
  box-shadow: 0 0 8px #00E676; animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.status-link { color: #FFCC80; text-decoration: underline; font-size: 0.75rem; }

/* ─── APP HEADER WITH OFFICIAL LOGO ─── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.7rem 1.2rem;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-logo-wrap {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 2px solid var(--border-light);
  flex-shrink: 0;
}
.official-logo { width: 100%; height: 100%; object-fit: cover; }
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.brand-subtitle { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.tripadvisor-badge-small {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  border: 2px solid #00E676; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: transform 0.2s;
}
.tripadvisor-badge-small:active { transform: scale(0.9); }
.tripadvisor-badge-small img { width: 100%; height: 100%; object-fit: cover; }

/* ─── HERO PRODUCT & DIRECT ACTION ─── */
.hero-product { padding: 1rem; }
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.hero-img-wrap { position: relative; height: 220px; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.4rem 0.8rem;
  border-radius: 50px; box-shadow: var(--shadow-sm);
}
.hero-details { padding: 1.2rem; }
.hero-details h1 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.hero-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.2rem; }

.hero-quick-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.btn-action {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.2rem; border-radius: var(--radius-md); font-weight: 700;
  font-size: 0.95rem; text-align: center; transition: 0.2s;
}
.btn-action.primary { background: var(--primary); color: #fff; }
.btn-action.secondary { background: var(--surface-subtle); color: var(--primary); border: 1px solid var(--border-light); }
.btn-action:active { transform: scale(0.98); }

/* ─── HIGHLIGHTS CAROUSEL ─── */
.highlights-section { padding: 1rem 0; }
.section-title-wrap { padding: 0 1.2rem; margin-bottom: 0.8rem; }
.section-title-wrap h2 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--primary); }
.section-title-wrap p { font-size: 0.85rem; color: var(--text-muted); }

.highlights-scroll {
  display: flex; gap: 1rem; overflow-x: auto; padding: 0.4rem 1.2rem 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.highlight-card {
  min-width: 240px; max-width: 240px; background: var(--surface);
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); scroll-snap-align: start; flex-shrink: 0;
}
.highlight-card.interactive-hl {
  cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card.interactive-hl:hover, .highlight-card.interactive-hl:active {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent);
}

.hl-img-wrap { position: relative; height: 140px; }
.hl-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hl-tag {
  position: absolute; bottom: 0.5rem; left: 0.5rem; background: rgba(0,0,0,0.75);
  color: #fff; font-size: 0.65rem; padding: 0.2rem 0.5rem; border-radius: 4px; backdrop-filter: blur(4px);
}
.hl-info { padding: 0.8rem; }
.hl-info h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.hl-info p { font-size: 0.8rem; color: var(--text-muted); height: 38px; overflow: hidden; }
.hl-action { display: inline-block; margin-top: 0.4rem; font-weight: 700; color: var(--accent); font-size: 0.85rem; }

/* ─── CARTA INTERACTIVA ─── */
.carta-section { padding: 1.5rem 1rem; background: var(--surface); border-radius: var(--radius-lg); margin: 1rem; border: 1px solid var(--border-light); }

.search-box-wrap { margin-bottom: 1rem; }
#menu-search {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-light); background: var(--bg-app);
  font-size: 0.9rem; font-family: var(--font-sans); outline: none; transition: 0.2s;
}
#menu-search:focus { border-color: var(--accent); background: #fff; }

.categories-scroll {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.8rem;
  margin-bottom: 1rem; -webkit-overflow-scrolling: touch;
}
.cat-pill {
  background: var(--surface-subtle); border: 1px solid var(--border-light);
  padding: 0.6rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.85rem;
  color: var(--text-muted); white-space: nowrap; cursor: pointer; transition: 0.2s;
}
.cat-pill.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.menu-list { display: flex; flex-direction: column; gap: 0.8rem; }
.menu-item-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1rem; background: var(--bg-app); border-radius: var(--radius-md);
  border: 1px solid var(--border-light); transition: 0.2s;
}
.menu-item-row:active { background: #fff; transform: scale(0.99); }
.menu-item-name { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.single-price { font-weight: 800; color: var(--accent); font-size: 1rem; }

.size-badges-wrap { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.size-badge {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid var(--border-light); padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm); font-size: 0.7rem; min-width: 52px;
}
.size-badge .s-label { color: var(--text-muted); text-transform: uppercase; font-size: 0.65rem; }
.size-badge .s-price { font-weight: 800; color: var(--primary); }

.menu-footer-note {
  margin-top: 1rem; font-size: 0.8rem; text-align: center; color: var(--text-muted);
}

/* ─── GOOGLE MAPS & UBICACIÓN ─── */
.map-section { padding: 1rem; }
.map-card-wrap {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-md);
}
.map-embed-box { width: 100%; height: 280px; position: relative; }
.location-details { padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.loc-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.loc-icon { font-size: 1.2rem; }
.loc-item strong { font-size: 0.9rem; color: var(--primary); }
.loc-item p { font-size: 0.85rem; color: var(--text-muted); }

.gps-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.5rem; }
.btn-gps {
  padding: 0.8rem; border-radius: var(--radius-md); font-weight: 700; font-size: 0.8rem;
  text-align: center; border: 1px solid var(--border-light); transition: 0.2s;
}
.btn-gps:active { transform: scale(0.97); }
.btn-gps.google { background: #4285F4; color: #fff; border: none; }
.btn-gps.apple { background: #000; color: #fff; border: none; }

/* ─── TRIPADVISOR & GOOGLE REVIEW CARDS ─── */
.reviews-section { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.ta-card {
  background: linear-gradient(135deg, #00E676 0%, #00B0FF 100%);
  border-radius: var(--radius-lg); padding: 1.5rem; color: #000;
  box-shadow: var(--shadow-md); text-align: center;
}
.ta-badge-tag {
  display: inline-block; background: rgba(0,0,0,0.8); color: #fff;
  font-size: 0.65rem; font-weight: 800; padding: 0.3rem 0.7rem; border-radius: 50px;
  margin-bottom: 0.8rem; letter-spacing: 1px;
}
.ta-card h2 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 0.4rem; color: #000; }
.ta-card p { font-size: 0.85rem; color: rgba(0,0,0,0.8); margin-bottom: 1.2rem; }

.ta-qr-box {
  background: #fff; border-radius: var(--radius-md); padding: 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.qr-link-wrapper { display: block; transition: transform 0.2s; }
.qr-link-wrapper:hover { transform: scale(1.05); }
.qr-img-frame { width: 160px; height: 160px; border-radius: 12px; overflow: hidden; }
.qr-code-img { width: 100%; height: 100%; object-fit: contain; }

.stars { color: #FFB300; font-size: 1.1rem; }
.rating-text { font-size: 0.85rem; color: var(--text-main); }
.btn-ta-direct {
  display: inline-block; background: #000; color: #fff;
  padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 700; font-size: 0.85rem;
  margin-top: 0.5rem; transition: transform 0.2s;
}
.btn-ta-direct:active { transform: scale(0.96); }

/* Google Review Card */
.google-review-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 2px solid #E8F0FE;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gr-content { display: flex; gap: 0.8rem; align-items: flex-start; }
.gr-icon { font-size: 1.8rem; }
.gr-content h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.gr-content p { font-size: 0.82rem; color: var(--text-muted); }

.btn-google-review {
  background: var(--google-blue);
  color: #fff;
  text-align: center;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
  transition: transform 0.2s;
}
.btn-google-review:active { transform: scale(0.97); }

/* ─── SOBRE NOSOTROS ─── */
.story-section { padding: 1rem; }
.story-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--border-light);
}
.story-card h2 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--primary); margin-bottom: 0.6rem; }
.story-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.story-img-wrap { height: 180px; border-radius: var(--radius-md); overflow: hidden; }
.story-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ─── FOOTER ─── */
.app-footer { text-align: center; padding: 2rem 1rem 1rem; font-size: 0.8rem; color: var(--text-muted); }
.footer-brand { font-family: var(--font-serif); font-weight: 800; font-size: 1.2rem; color: var(--primary); }

/* ─── DYNAMIC ISLAND NAVIGATION (APPLE STYLE) ─── */
.dynamic-island-wrapper {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: calc(100% - 24px);
  max-width: 440px;
  pointer-events: none;
}

.dynamic-island {
  pointer-events: auto;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 40px;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0,0,0,0.6);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.island-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  flex: 1;
}

.island-tab .island-icon {
  font-size: 1.15rem;
  transition: transform 0.3s ease;
}

.island-tab .island-text {
  transition: opacity 0.25s ease, max-width 0.3s ease;
  white-space: nowrap;
}

.island-tab:hover, .island-tab.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.island-tab.active .island-icon {
  transform: scale(1.15);
}

.island-tab.call-btn {
  background: linear-gradient(135deg, #D84315 0%, #FF6E40 100%);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(216, 67, 21, 0.4);
}

.island-tab.call-btn:active {
  transform: scale(0.94);
}

/* Dynamic Island Pulse Effect on Tab Change */
.dynamic-island.pulse {
  transform: scale(1.03);
}

/* Desktop Responsive Enhancements */
@media (min-width: 768px) {
  body.mobile-app { max-width: 480px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,0.1); border-radius: 24px; }
  .dynamic-island-wrapper { max-width: 440px; }
}
