/* fabada.info - Styles */

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

:root {
  --gold: #c8a94e;
  --gold-light: #d4b85c;
  --dark: #1a1612;
  --dark-light: #2a2420;
  --cream: #faf6ef;
  --warm: #8b6f47;
  --warm-dark: #6b5535;
  --bg-section: #f5f0e8;
  --bg-dark-section: #1e1a15;
  --text-dark: #2c2418;
  --text-light: #e8dcc8;
  --text-muted: #a09080;
  --border-gold: rgba(200, 169, 78, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.2);
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.nav-logo span {
  color: var(--cream);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0;
}

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

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

.nav-links a:hover {
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--cream);
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/fabada_698a0d191f47c.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 22, 18, 0.6) 0%,
    rgba(26, 22, 18, 0.75) 50%,
    rgba(26, 22, 18, 0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-badge {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero h1 {
  font-size: 4rem;
  color: var(--cream);
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--dark);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(200, 169, 78, 0.4);
  color: var(--dark);
}

.hero-cta svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== SECTIONS GENERAL ===== */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--bg-dark-section);
  color: var(--text-light);
}

.section-alt {
  background: var(--bg-section);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--cream);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}

/* ===== HISTORIA ===== */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.historia-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.historia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.historia-image:hover img {
  transform: scale(1.03);
}

.historia-text h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.historia-text p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  opacity: 0.85;
  font-size: 1rem;
}

.historia-quote {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(200, 169, 78, 0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--warm);
  font-size: 1.05rem;
}

/* ===== RECETA ===== */
.receta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ingredientes-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gold);
  position: sticky;
  top: 100px;
}

.ingredientes-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ingredientes-card h3 svg {
  color: var(--gold);
  width: 24px;
  height: 24px;
}

.ingredientes-list {
  margin-bottom: 1.5rem;
}

.ingredientes-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(200, 169, 78, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.ingredientes-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.chef-tip {
  background: rgba(200, 169, 78, 0.1);
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border-gold);
}

.chef-tip-label {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.chef-tip p {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--warm);
  line-height: 1.6;
}

.pasos-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.paso-item {
  background: white;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(200, 169, 78, 0.1);
  transition: all var(--transition);
  position: relative;
  padding-left: 4.5rem;
}

.paso-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-gold);
}

.paso-number {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}

.paso-item h4 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.paso-item p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== VARIEDADES ===== */
.variedades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.variedad-card {
  background: var(--dark-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(200, 169, 78, 0.1);
}

.variedad-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--border-gold);
}

.variedad-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.variedad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.variedad-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.variedad-content {
  padding: 1.5rem;
}

.variedad-content h3 {
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.variedad-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CONCURSOS ===== */
.contest-intro-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

.contest-intro-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contest-intro-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.contest-intro-text h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.contest-intro-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.podiums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.podium-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(200, 169, 78, 0.1);
  transition: all var(--transition);
  text-align: center;
}

.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-gold);
}

.podium-year {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.2rem;
  line-height: 1;
}

.podium-places {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.podium-place {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
}

.podium-medal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.podium-medal.gold {
  background: linear-gradient(135deg, #c8a94e, #e0c96a);
  color: var(--dark);
}

.podium-medal.silver {
  background: linear-gradient(135deg, #a0a0a0, #c0c0c0);
  color: var(--dark);
}

.podium-medal.bronze {
  background: linear-gradient(135deg, #b87333, #d4935a);
  color: var(--dark);
}

.podium-info {
  flex: 1;
  min-width: 0;
}

.podium-restaurant {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.podium-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.podium-divider {
  height: 1px;
  background: rgba(200, 169, 78, 0.12);
  margin: 0.2rem 0;
}

/* Palmarés histórico */
.palmares-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.palmares-item {
  background: white;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(200, 169, 78, 0.1);
  transition: all var(--transition);
}

.palmares-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.palmares-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.palmares-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  display: block;
  line-height: 1.3;
}

.palmares-loc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

/* ===== MAESTROS ===== */
.maestros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.maestro-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(200, 169, 78, 0.1);
  transition: all var(--transition);
}

.maestro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.maestro-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(200, 169, 78, 0.3);
}

.maestro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.maestro-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.maestro-restaurant {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
}

.maestro-card p.maestro-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.maestro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.maestro-tag {
  background: rgba(200, 169, 78, 0.1);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-gold);
}

/* ===== BANNER TASTIEST ===== */
.banner-tastiest {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 3rem 2rem;
  text-align: center;
}

.banner-tastiest a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--dark);
  font-size: 1.3rem;
  font-weight: 600;
}

.banner-tastiest .banner-text {
  font-size: 1.1rem;
  font-weight: 400;
}

.banner-tastiest .banner-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.banner-tastiest a svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
}

.banner-tastiest a:hover svg {
  transform: translateX(6px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--cream);
  font-weight: 400;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer h4 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(200, 169, 78, 0.15);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.legal-content .legal-update {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-gold);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.85;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COOKIEBOT WIDGET ===== */
#CookiebotWidget {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .historia-grid {
    gap: 2.5rem;
  }

  .receta-grid {
    grid-template-columns: 1fr;
  }

  .ingredientes-card {
    position: static;
  }

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

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

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

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

  .contest-intro-block {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(26, 22, 18, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 1.2rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .historia-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .variedades-grid {
    grid-template-columns: 1fr;
  }

  .maestros-grid {
    grid-template-columns: 1fr;
  }

  .podiums-grid {
    grid-template-columns: 1fr;
  }

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

  .contest-intro-block {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-content h1 {
    font-size: 1.8rem;
  }

  .banner-tastiest a {
    flex-direction: column;
    gap: 0.5rem;
  }
}
