/* ==========================================================================
   RESTAURANTE EL PORTAL - DESIGN SYSTEM & STYLES (GOOGLE ADS & SEO READY)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  /* Primary & Accent Palette */
  --bg-dark: #0d0f12;
  --bg-card: #151921;
  --bg-card-hover: #1c222e;
  --bg-glass: rgba(21, 25, 33, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(217, 119, 6, 0.3);

  --accent-gold: #d97706;
  --accent-amber: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.25);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --success: #10b981;
  --info: #3b82f6;
  --danger: #ef4444;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.3);
  --glass-blur: blur(16px);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
}

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

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.75rem;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: justify-content;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-gold);
  display: flex;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-amber);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-amber);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Button UI Components */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  color: #0d0f12;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(217, 119, 6, 0.5);
  background: linear-gradient(135deg, #fbbf24, var(--accent-amber));
}

.btn-b2b {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-gold);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-b2b:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  color: #fff;
  font-size: 1.8rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.15), transparent 50%),
              linear-gradient(to bottom, #0d0f12, #12161f);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MENU SECTION
   ========================================================================== */
.menu-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 45px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.category-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.pill-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.pill-btn:hover,
.pill-btn.active {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  color: #0d0f12;
  font-weight: 700;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.dish-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.dish-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-soft);
}

.dish-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dish-card:hover .dish-img {
  transform: scale(1.08);
}

.dish-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-amber);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border-gold);
}

.dish-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dish-title {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
}

.dish-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dish-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.add-cart-btn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid var(--border-gold);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
}

.add-cart-btn:hover {
  background: var(--accent-amber);
  color: #0d0f12;
}

/* ==========================================================================
   SUCURSAL VIRTUAL NEGOCIOS (B2B PORTAL SECTION)
   ========================================================================== */
.b2b-section {
  background: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.1), transparent 40%),
              linear-gradient(to bottom, #11151c, #0a0c0f);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}

.b2b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.b2b-card-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.b2b-badge {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  color: #0d0f12;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 20px;
}

.b2b-features-list {
  list-style: none;
  margin: 25px 0 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.b2b-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 1rem;
}

.b2b-features-list i {
  color: var(--accent-amber);
  font-size: 1.2rem;
}

/* Cotizador Inteligente B2B Widget */
.calculator-box {
  background: rgba(21, 25, 33, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  backdrop-filter: blur(12px);
}

.calc-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-group {
  margin-bottom: 20px;
}

.calc-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.calc-input, .calc-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
}

.calc-result-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed var(--accent-amber);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 25px 0;
  text-align: center;
}

.calc-result-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.calc-result-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin: 5px 0;
}

.calc-result-detail {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   RESERVATIONS SECTION
   ========================================================================== */
.reservation-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-amber);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Ticket Modal Style */
.ticket-card {
  background: linear-gradient(135deg, #1c222e, #11151c);
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.ticket-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 15px;
}

/* ==========================================================================
   LOCATION & CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item {
  display: flex;
  gap: 20px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.info-details h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  background: #1a202c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.map-badge {
  background: var(--accent-amber);
  color: #0d0f12;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  margin-top: 15px;
}

/* ==========================================================================
   FOOTER & GOOGLE ADS DISCLOSURES
   ========================================================================== */
.footer {
  background: #090b0e;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-amber);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent-amber);
  padding-left: 5px;
}

.footer-ads-disclosure {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  margin-bottom: 40px;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 15px;
}

/* ==========================================================================
   MODALS & COOKIE BANNER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cookie-banner {
  position: fixed;
  bottom: 25px;
  left: 25px;
  right: 25px;
  max-width: 550px;
  background: rgba(21, 25, 33, 0.96);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 25px;
  z-index: 3000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

/* Cart Drawer */
.cart-floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-gold));
  color: #0d0f12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-gold);
  z-index: 999;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .b2b-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-bg { width: 100%; opacity: 0.2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2.1rem; }
  .reservation-box { padding: 30px 20px; }
}
