/* ============================================
   CSS VARIABLES - LA GRATITUD MODERN THEME
   ============================================ */
:root {
  --accent: #ff6b35;
  --accent-dark: #e85a28;
  --accent-light: #ff8c5f;
  --bg: #fffbf7;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --warm: #fff4ed;
  --teal: #0d7377;
  --teal-dark: #094f52;
  --orange: #ff9a56;
  --maxw: 1100px;
  --gap: 1.5rem;
  --header-height: 80px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
}

/* ============================================
   HEADER - MODERN VIBRANT STYLE
   ============================================ */
header.site {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(13, 115, 119, 0.3);
  transition: all 0.3s ease;
}

header.site.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 8px 30px rgba(13, 115, 119, 0.4);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInLeft 0.6s ease;
}

.brand img {
  border-radius: 50%;
  height: 52px;
  width: 52px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: transform 0.3s ease;
  border: 3px solid var(--accent);
}

.brand img:hover {
  transform: scale(1.05) rotate(-5deg);
}

.brand h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.brand .meta {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Navigation */
nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  animation: fadeInRight 0.6s ease;
  flex-wrap: nowrap;
}

nav a, #langSelect {
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 25px;
  background: rgba(255, 107, 53, 0.2);
  border: 2px solid rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

nav a:hover, #langSelect:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

#langSelect {
  cursor: pointer;
  margin-left: 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  padding: 2rem 0 4rem;
}

/* ============================================
   HERO SECTION - MODERN & VIBRANT
   ============================================ */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--warm) 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
  border: 2px solid rgba(255, 107, 53, 0.2);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.hero p {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

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

.hero-image img {
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease;
}

section h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
  font-weight: 800;
}

section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  border-radius: 2px;
}

/* ============================================
   CARD GRID - MODERN VIBRANT STYLE
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  margin-top: 2rem;
}

.card {
  background: var(--card);
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
  animation-fill-mode: both;
  border: 2px solid rgba(255, 107, 53, 0.15);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(255, 107, 53, 0.25);
}

.card:hover::before {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.card h4 {
  font-size: 1.4rem;
  margin: 1.5rem 1.5rem 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.card p {
  color: #444;
  margin: 0 1.5rem 1rem;
  line-height: 1.7;
}

.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 1.5rem 1.5rem;
  display: block;
}

/* ============================================
   BUTTONS - VIBRANT MODERN STYLE
   ============================================ */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-content {
  background: linear-gradient(135deg, #ffffff 0%, var(--warm) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
  border: 2px solid rgba(255, 107, 53, 0.15);
}

.how-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.how-step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 700;
}

.step-content p {
  color: #444;
  line-height: 1.7;
}

/* ============================================
   MENU STYLING - MODERN RESTAURANT MENU
   ============================================ */
.menu-container {
  background: linear-gradient(135deg, #ffffff 0%, var(--warm) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
  margin-top: 2rem;
  border: 2px solid rgba(255, 107, 53, 0.2);
}

.menu-section {
  margin-bottom: 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.1);
}

.menu-section:last-child {
  margin-bottom: 0;
}

.menu-category {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--teal);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 107, 53, 0.15);
  gap: 1rem;
  transition: all 0.2s ease;
}

.menu-item:hover {
  padding-left: 0.5rem;
  background: rgba(255, 244, 237, 0.5);
  border-radius: 8px;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.menu-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.menu-item-desc {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.menu-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.special-offer {
  background: linear-gradient(135deg, #fff9f5 0%, #ffe4d6 100%);
  padding: 2rem;
  border-radius: 16px;
  margin-top: 2rem;
  border: 3px solid var(--accent);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.2);
}

.special-offer .menu-category {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
}

.menu-item.highlight {
  background: rgba(255,255,255,0.7);
  padding: 1.2rem;
  border-radius: 8px;
  border-bottom: none;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.menu-item.highlight:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.02);
}

.menu-item.highlight:last-child {
  margin-bottom: 0;
}

/* ============================================
   FORM - MODERN VIBRANT STYLE
   ============================================ */
form {
  background: linear-gradient(135deg, #ffffff 0%, var(--warm) 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
  border: 2px solid rgba(255, 107, 53, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
  font-size: 1rem;
}

input, textarea, select {
  padding: 1rem;
  border: 2px solid rgba(255, 107, 53, 0.3);
  border-radius: 12px;
  width: 100%;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 1.2rem;
  border-radius: 12px;
  margin-top: 1rem;
  display: none;
  animation: slideDown 0.5s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-message.show {
  display: block;
}

/* ============================================
   FOOTER - MODERN TEAL STYLE
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
  color: #ffffff;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

footer strong {
  font-size: 1.2rem;
  color: #ffffff;
}

footer .meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
#cookie-banner {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--warm) 100%);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
  display: none;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  animation: slideUp 0.5s ease;
  border: 2px solid rgba(255, 107, 53, 0.3);
}

#cookie-banner.show {
  display: flex;
}

.cookie-content {
  max-width: 70%;
}

.cookie-content strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  z-index: 999;
}

#scrollTop.show {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.meta a:hover {
  color: var(--accent);
  text-decoration: underline;
}

footer .meta a {
  color: rgba(255, 255, 255, 0.85);
}

footer .meta a:hover {
  color: #ffffff;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  nav a, #langSelect {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
  
  .hero {
    padding: 2rem 1.5rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  section h3 {
    font-size: 1.8rem;
  }
  
  .how-step {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .menu-container {
    padding: 1.5rem;
  }
  
  .menu-section {
    padding: 1.5rem;
  }
  
  .menu-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .menu-item-price {
    align-self: flex-start;
  }
  
  #cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  
  .cookie-content {
    max-width: 100%;
  }
  
  .cookie-actions {
    width: 100%;
  }
  
  .cookie-actions .btn {
    flex: 1;
  }
  
  #scrollTop {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .wrap {
    padding: 1rem;
  }
  
  form, .how-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand h1 {
    font-size: 1.3rem;
  }
  
  .brand .meta {
    font-size: 0.75rem;
  }
  
  .hero h2 {
    font-size: 1.6rem;
  }
  
  .card {
    padding: 0;
  }
  
  .card img {
    height: 200px;
  }
  
  .price {
    font-size: 1.8rem;
  }
  
  .menu-category {
    font-size: 1.3rem;
  }
}