/*
Theme Name: Esencia Gourmand
Theme URI: https://www.esenciagourmand.com
Author: Esencia Gourmand
Author URI: https://www.esenciagourmand.com
Description: Tema personalizado para Esencia Gourmand — Foie Gras, Cocinados y Delicatessen desde Girona. Diseño elegante en negro y oro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Propietario
Text Domain: esencia-gourmand
*/

/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --gold:        #b68a2c;
  --gold-light:  #d6b46a;
  --gold-pale:   #f4efe7;
  --cream:       #faf8f5;
  --dark:        #f7f5f2;
  --dark2:       #f0ede8;
  --dark3:       #e7e1d9;
  --text-light:  #4f4b45;
  --text-muted:  #7f786f;
  --font-display: 'Cinzel', serif;
  --font-serif:   'Cormorant Garamond', serif;
  --font-body:    'Lato', sans-serif;
}

/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #2f2c28; }

/* ============================================================
   TIPOGRAFÍA GLOBAL
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  color: #2f2c28;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: 1.5rem; }
p  { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

/* ============================================================
   NAVBAR
   ============================================================ */
#eg-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 72px;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,134,11,0.2);
  transition: height 0.3s ease, border-color 0.3s ease;
}
#eg-navbar.scrolled {
  height: 56px;
  border-bottom-color: rgba(184,134,11,0.35);
}

.eg-nav-brand img {
  height: 46px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.05);
}

.eg-nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}
.eg-nav-menu > li { position: relative; }
.eg-nav-menu > li > a {
  display: block;
  padding: 0 1.1rem;
  height: 72px;
  line-height: 72px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color 0.2s;
}
.eg-nav-menu > li > a:hover { color: #f0d696; }

/* Dropdown */
.eg-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  background: rgba(10,10,10,0.97);
  border: 1px solid rgba(184,134,11,0.25);
  border-top: 2px solid var(--gold);
  padding: 0.5rem 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  animation: egFadeDown 0.2s ease;
}
.eg-has-dropdown:hover .eg-dropdown,
.eg-has-dropdown:focus-within .eg-dropdown { display: block; }
.eg-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, padding-left 0.2s, background 0.2s;
}
.eg-dropdown a:last-child { border-bottom: none; }
.eg-dropdown a:hover {
  color: var(--gold-light);
  padding-left: 2rem;
  background: rgba(184,134,11,0.06);
}

/* Hamburger */
.eg-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.eg-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--gold-light);
  transition: all 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
#eg-hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #0b0a08;
  padding: 72px 6vw 0;
}
.eg-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.26) 42%, rgba(0,0,0,0.04) 72%, rgba(0,0,0,0.10) 100%),
    url('assets/images/hero_patos_origen.png') center center / cover no-repeat;
  filter: brightness(1.18) saturate(1.05);
  transform: scale(1.01);
}
.eg-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 18% 45%, rgba(182,138,44,0.08) 0%, transparent 46%);
}
.eg-hero-content {
  position: relative;
  text-align: left;
  z-index: 2;
  padding: 10vh 0 2rem;
  width: min(620px, 92vw);
}
.eg-hero-pretitle {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: egHeroIn 1s ease 0.3s forwards;
}
.eg-hero-logo {
  width: clamp(250px, 34vw, 500px);
  height: auto;
  mix-blend-mode: screen;
  filter: brightness(1.08) drop-shadow(0 0 45px rgba(182,138,44,0.32));
  opacity: 0;
  animation: egHeroIn 1.2s ease 0.6s forwards;
}
.eg-hero-divider {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem 0 1.7rem;
  opacity: 0;
  animation: egHeroIn 1s ease 1s forwards;
}
.eg-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: 0.98;
  font-weight: 400;
  color: #f4efe7;
  max-width: 620px;
  margin-bottom: 1.2rem;
  text-shadow: 0 12px 34px rgba(0,0,0,0.42);
  opacity: 0;
  animation: egHeroIn 1s ease 1.1s forwards;
}
.eg-hero-tagline {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f4efe7;
  opacity: 0;
  animation: egHeroIn 1s ease 1.25s forwards;
}
.eg-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0.95rem 1.55rem;
  background: var(--gold);
  color: #fffaf2;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
  opacity: 0;
  animation: egHeroIn 1s ease 1.42s forwards;
}
.eg-hero-button::after { content: '→'; font-size: 1.1rem; line-height: 1; }
.eg-hero-button:hover { color: #fffaf2; background: #c99b38; }
.eg-hero-scroll {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  opacity: 0;
  animation: egHeroIn 1s ease 1.6s forwards;
}
.eg-hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0.8rem auto 0;
  animation: egScrollPulse 2s ease infinite;
}
/* Particles */
.eg-particle {
  position: absolute;
  width: 2px;
  border-radius: 50%;
  background: rgba(184,134,11,0.15);
  animation: egFloatUp linear infinite;
  pointer-events: none;
}

/* ============================================================
   SECCIONES — BASE
   ============================================================ */
.eg-section {
  padding: 6rem 6vw;
}
.eg-section--cream { background: var(--cream); }
.eg-section--dark2  { background: var(--dark2); }
.eg-section--dark   { background: var(--dark); }

.eg-section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.eg-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: #2f2c28;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.eg-section--cream .eg-section-title { color: var(--dark); }
.eg-gold-line {
  width: 60px; height: 1px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

/* ============================================================
   FILOSOFÍA
   ============================================================ */
.eg-filosofia-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.eg-filosofia-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 3rem;
}
.eg-filosofia-text p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.8rem;
}
.eg-filosofia-closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  margin: 2rem 0 3rem;
}
.eg-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(184,134,11,0.3);
  border-bottom: 1px solid rgba(184,134,11,0.3);
}
.eg-stat {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-align: center;
}

/* ============================================================
   PHOTO BANNER
   ============================================================ */
.eg-photo-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.eg-photo-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 8s ease;
}
.eg-photo-banner:hover img { transform: scale(1.04); }
.eg-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.08) 45%,
    rgba(10,10,10,0.08) 55%,
    rgba(10,10,10,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.eg-photo-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 300;
  color: #2f2c28;
  text-align: center;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
  padding: 0 2rem;
}
.eg-photo-caption span {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.78), 0 6px 18px rgba(0,0,0,0.58), 0 0 1px rgba(0,0,0,0.35);
}

.eg-photo-caption-main {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.62rem, 3.25vw, 2.75rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: normal;
  color: #f4efe7 !important;
  text-shadow: 0 3px 8px rgba(0,0,0,0.74), 0 12px 32px rgba(0,0,0,0.58), 0 0 2px rgba(0,0,0,0.42);
}

/* ============================================================
   TARJETAS DE PRODUCTO
   ============================================================ */
.eg-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
  margin-top: 3rem;
}
.eg-card {
  background: var(--dark3);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.eg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.eg-card:hover::before { height: 100%; }
.eg-card:hover {
  border-color: rgba(184,134,11,0.2);
  transform: translateY(-3px);
}
.eg-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  margin-bottom: 1rem;
}
.eg-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #2f2c28;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}
.eg-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.eg-refs { list-style: none; }
.eg-refs li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.eg-refs li:last-child { border-bottom: none; }
.eg-ref-code {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.62rem;
  white-space: nowrap;
}


/* ============================================================
   POPUP DE IMÁGENES DE PRODUCTO
   ============================================================ */
.eg-product-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(182,138,44,0.45);
  text-underline-offset: 4px;
}
.eg-product-link:hover,
.eg-product-link:focus-visible { color: #2f2c28; }
.eg-product-link:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.eg-product-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,0.72);
}
.eg-product-modal.open { display: flex; }
.eg-product-modal__dialog {
  position: relative;
  width: min(720px, 94vw);
  max-height: 88vh;
  background: #faf8f5;
  border: 1px solid rgba(182,138,44,0.35);
  box-shadow: 0 30px 90px rgba(0,0,0,0.45);
  padding: 1rem;
}
.eg-product-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(182,138,44,0.45);
  background: rgba(250,248,245,0.92);
  color: #2f2c28;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.eg-product-modal__img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #fff;
}
.eg-product-modal__caption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}
.eg-product-modal__fallback {
  display: none;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
.eg-product-modal.has-error .eg-product-modal__img { display: none; }
.eg-product-modal.has-error .eg-product-modal__fallback { display: block; }
body.eg-modal-open { overflow: hidden; }

/* ============================================================
   PHOTO SPLIT (Cocinados)
   ============================================================ */
.eg-photo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.eg-split-img { overflow: hidden; }
.eg-split-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}
.eg-split-img:hover img { transform: scale(1.05); }
.eg-split-content {
  background: var(--dark2);
  padding: 4.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================================
   TABLA DE REFERENCIAS
   ============================================================ */
.eg-table-wrap {
  overflow-x: auto;
  margin-top: 3rem;
  border: 1px solid rgba(184,134,11,0.15);
}
.eg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.eg-table thead { background: rgba(184,134,11,0.1); }
.eg-table thead th {
  font-family: var(--font-display);
  font-size: 0.53rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(184,134,11,0.3);
  white-space: nowrap;
}
.eg-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.eg-table tbody tr:hover { background: rgba(184,134,11,0.04); }
.eg-table tbody td {
  padding: 0.8rem 1.2rem;
  color: var(--text-muted);
  vertical-align: middle;
}
.eg-table tbody td:first-child {
  font-family: var(--font-display);
  font-size: 0.63rem;
  color: var(--gold);
}
.eg-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.eg-pill--conserva { background: rgba(184,134,11,0.15); color: var(--gold-light); }
.eg-pill--semi     { background: rgba(100,160,100,0.1);  color: #8db88d; }
.eg-pill--cocinado { background: rgba(160,100,100,0.1);  color: #c49090; }
.eg-pill--horeca   { background: rgba(100,100,200,0.1);  color: #9090c4; }

/* ============================================================
   CONTACTO
   ============================================================ */
.eg-contact-wrap {
  max-width: 600px;
  margin: 3rem auto 0;
  text-align: center;
}
.eg-contact-wrap p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.eg-contact-sep {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 1.2rem auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
#eg-footer {
  background: #000;
  border-top: 1px solid rgba(184,134,11,0.15);
  padding: 2.5rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.eg-footer-brand {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.eg-footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.eg-footer-copy {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes egHeroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes egFadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes egScrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}
@keyframes egFloatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(540deg); opacity: 0; }
}

/* scroll-reveal */
.eg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.eg-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .eg-photo-split { grid-template-columns: 1fr; }
  .eg-split-img   { height: 320px; }
  .eg-split-content { padding: 3rem 5vw; }
}
@media (max-width: 768px) {
  .eg-nav-menu { display: none; flex-direction: column; }
  .eg-nav-menu.open {
    display: flex;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(184,134,11,0.2);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .eg-nav-menu > li > a { height: auto; line-height: 1; padding: 1rem 2rem; }
  .eg-dropdown {
    position: static;
    transform: none;
    border: none;
    border-top: 1px solid rgba(184,134,11,0.1);
    background: rgba(184,134,11,0.04);
    min-width: unset;
    padding: 0.2rem 0;
    display: none;
  }
  .eg-has-dropdown.open .eg-dropdown { display: block; animation: none; }
  .eg-hamburger { display: flex; }
  .eg-photo-banner { height: 320px; }
  .eg-section  { padding: 4rem 5vw; }
  .eg-stats    { gap: 1.5rem; }
  #eg-footer   { flex-direction: column; text-align: center; }
}


/* Ajustes solicitados: menú dorado y texto del banner en blanco roto */
.eg-nav-menu > li > a,
.eg-dropdown a {
  color: var(--gold-light) !important;
}
.eg-nav-menu > li > a:hover,
.eg-dropdown a:hover {
  color: #f0d696 !important;
}
.eg-photo-caption,
.eg-photo-caption span {
  color: #f4efe7 !important;
}

@media (max-width: 760px) {
  #eg-hero {
    min-height: 720px;
    padding: 82px 6vw 0;
  }
  .eg-hero-bg {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.20) 48%, rgba(0,0,0,0.54) 100%),
      url('assets/images/foto_productos_1.jpg') center / cover no-repeat;
    filter: brightness(1.18) saturate(1.05);
  }
  .eg-hero-content { text-align: center; margin: 0 auto; }
  .eg-hero-divider { margin-left: auto; margin-right: auto; }
  .eg-photo-caption span {
    text-shadow: 0 2px 5px rgba(0,0,0,0.82), 0 8px 22px rgba(0,0,0,0.65), 0 0 1px rgba(0,0,0,0.45);
  }
  .eg-photo-caption-main {
    font-size: clamp(1.72rem, 6.2vw, 2.15rem);
    font-weight: 400;
    text-shadow: 0 3px 8px rgba(0,0,0,0.82), 0 14px 34px rgba(0,0,0,0.68), 0 0 2px rgba(0,0,0,0.48);
  }
}

/* Ajustes adicionales: hero más destacado, referencias desplegables y misma imagen en responsive */
.eg-hero-content {
  padding: clamp(2rem, 5vw, 3.2rem);
  background: linear-gradient(135deg, rgba(8,7,5,0.56), rgba(8,7,5,0.22));
  border-left: 1px solid rgba(240,214,150,0.45);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  backdrop-filter: blur(2px);
}
.eg-hero-title {
  color: #fffaf2;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 10px rgba(0,0,0,0.72), 0 18px 42px rgba(0,0,0,0.55);
}
.eg-hero-tagline {
  color: #f7d889;
  font-weight: 600;
  text-shadow: 0 3px 12px rgba(0,0,0,0.72);
}
.eg-hero-divider {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), transparent);
  box-shadow: 0 0 20px rgba(240,214,150,0.35);
}

#eg-referencias {
  display: none;
}
#eg-referencias:target {
  display: block;
  animation: egReferencesOpen 0.45s ease both;
}
@keyframes egReferencesOpen {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .eg-hero-bg {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.22) 48%, rgba(0,0,0,0.58) 100%),
      url('assets/images/hero_patos_origen.png') center center / cover no-repeat !important;
  }
  .eg-hero-content {
    padding: 2rem 1.35rem;
    width: min(620px, 88vw);
  }
}

/* ============================================================
   AJUSTES FINALES — BURDEOS PROFUNDO Y FILOSOFÍA
   ============================================================ */
:root {
  --burgundy-deep: #3d0018;
  --burgundy-deep-soft: rgba(61, 0, 24, 0.96);
  --burgundy-dropdown: rgba(43, 0, 17, 0.98);
}

#eg-navbar {
  background: var(--burgundy-deep-soft) !important;
  border-bottom: 1px solid rgba(214,180,106,0.32) !important;
}
#eg-navbar.scrolled {
  background: rgba(48,0,19,0.98) !important;
  border-bottom-color: rgba(214,180,106,0.46) !important;
}
.eg-dropdown {
  background: var(--burgundy-dropdown) !important;
  border-color: rgba(214,180,106,0.32) !important;
  box-shadow: 0 20px 50px rgba(30,0,12,0.55) !important;
}
.eg-dropdown a:hover {
  background: rgba(214,180,106,0.09) !important;
}
#eg-footer {
  background: linear-gradient(135deg, #3d0018 0%, #26000f 100%) !important;
  border-top: 1px solid rgba(214,180,106,0.26) !important;
}
.eg-footer-tagline,
.eg-footer-copy {
  color: rgba(250,248,245,0.72) !important;
}

.eg-filosofia-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-transform: none;
  margin-bottom: 1.1rem;
}
.eg-gold-line--center {
  margin: 0 auto 2.8rem;
  width: 92px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

@media (max-width: 768px) {
  .eg-nav-menu.open {
    background: rgba(61,0,24,0.98) !important;
    border-bottom-color: rgba(214,180,106,0.28) !important;
  }
  .eg-dropdown {
    background: rgba(214,180,106,0.07) !important;
  }
  .eg-filosofia-title {
    font-size: clamp(1.1rem, 5.5vw, 1.7rem);
  }
}

/* ============================================================
   SELECTOR MULTILENGUAJE
   ============================================================ */
.eg-language-switcher {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: 1rem;
  padding: 0.28rem;
  border: 1px solid rgba(214,180,106,0.32);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
}
.eg-language-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(250,248,245,0.74);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.38rem 0.48rem;
  transition: color .25s ease, background .25s ease;
}
.eg-language-switcher button:hover,
.eg-language-switcher button.is-active {
  color: #2b0012;
  background: var(--gold);
}
body.eg-lang-ar {
  text-align: right;
}
body.eg-lang-ar .eg-hero-content {
  margin-left: auto;
  margin-right: 8vw;
  text-align: right;
}
body.eg-lang-ar .eg-hero-divider,
body.eg-lang-ar .eg-gold-line {
  margin-left: auto;
  margin-right: 0;
}
body.eg-lang-ar .eg-gold-line--center {
  margin-left: auto;
  margin-right: auto;
}
body.eg-lang-ar .eg-card,
body.eg-lang-ar .eg-table,
body.eg-lang-ar .eg-contact-wrap,
body.eg-lang-ar .eg-filosofia-text {
  direction: rtl;
}
body.eg-lang-ar .eg-refs li {
  direction: rtl;
}
body.eg-lang-ar .eg-ref-code {
  direction: ltr;
  display: inline-block;
}
body.eg-lang-ar .eg-product-modal__caption {
  direction: rtl;
}

@media (max-width: 768px) {
  .eg-language-switcher {
    position: absolute;
    right: 4.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    gap: 0.15rem;
  }
  .eg-language-switcher button {
    font-size: 0.56rem;
    padding: 0.32rem 0.36rem;
  }
  body.eg-lang-ar .eg-language-switcher {
    right: auto;
    left: 4.5rem;
  }
  body.eg-lang-ar .eg-hero-content {
    margin: 0 auto;
    text-align: center;
  }
  body.eg-lang-ar .eg-hero-divider {
    margin-left: auto;
    margin-right: auto;
  }
}


/* Evita saltos de scroll automáticos en móvil al cargar imágenes/secciones */
html, body {
  overflow-anchor: none;
}
