/* ── LEYMA · Shared Styles ── */
:root {
  --crimson:    #821212;
  --crimson-dk: #5C0D0D;
  --red:        #E33A18;
  --red-dk:     #BF2E12;

  --white:      #FFFFFF;
  --off-white:  #F9F7F4;
  --cream:      #F2ECE5;
  --wood-pale:  #EDE5D8;
  --wood:       #C4A882;
  --wood-dk:    #8C6B4A;

  --dark:       #1A1210;
  --dark-mid:   #2C1E1A;
  --gray:       #6B6460;
  --gray-lt:    #A09590;
  --border:     #E4DCD4;

  --font-head: 'Raleway', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-w: 1320px;
  --px:    clamp(1.5rem, 5vw, 5rem);
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── LOGO IMAGE ── */
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}


/* ── FOOTER LOGO ── */
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.85rem var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding: 0.5rem var(--px);
  background: rgba(249, 247, 244, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo { display: flex; flex-direction: column; gap: 0.1rem; }
.logo-wm {
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--crimson);
  line-height: 1;
  transition: color 0.3s;
}
.logo-wm .e { color: var(--red); }
.logo-tag {
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-lt);
  transition: color 0.3s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--crimson); }
.nav-links a.nav-active { color: var(--crimson); font-weight: 600; }
.nav-links .nav-cta {
  background: var(--crimson);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 1px;
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--crimson-dk) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: 1px;
}
.btn-primary   { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--crimson-dk); }
.btn-accent    { background: var(--red); color: var(--white); }
.btn-accent:hover  { background: var(--red-dk); }
.btn-outline   { background: transparent; color: var(--crimson); border: 1px solid var(--crimson); }
.btn-outline:hover { background: var(--crimson); color: var(--white); }
.btn-outline-wh { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline-wh:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ── SECTION BASE ── */
section { padding: 6rem var(--px); }
.label {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.label.dim { color: rgba(255,255,255,0.4); }
.title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--dark);
}
.title.light { color: var(--white); }
.intro {
  font-size: 1rem;
  color: var(--gray);
  max-width: 480px;
  margin-top: 1rem;
  line-height: 1.8;
}
.intro.light { color: rgba(255,255,255,0.6); }

/* ── BACKGROUND HELPERS ── */
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-wood   { background: var(--wood-pale); }
.bg-dark   { background: var(--dark); }
.bg-crimson { background: var(--crimson); }

/* ── IMAGE PLACEHOLDER ── */
.img-ph {
  background: var(--wood-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood);
  width: 100%;
}
.img-ph.dark-ph {
  background: var(--dark-mid);
  color: rgba(255,255,255,0.2);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(100px + 5rem) var(--px) 5rem;
  background: var(--dark);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: var(--px); right: var(--px);
  height: 1px;
  background: rgba(227,58,24,0.3);
}
.ph-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
}
.ph-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1;
}
.ph-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 420px;
  margin-top: 1rem;
  line-height: 1.75;
}

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); }

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  padding: 5rem var(--px) 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}
.ft-logo-wm {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--white);
}
.ft-logo-wm .e { color: var(--red); }
.ft-logo-tag {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 0.2rem;
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1.5rem;
  line-height: 1.75;
  max-width: 240px;
}
.cert-row { display: flex; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.cert {
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.22rem 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  border-radius: 1px;
}
.footer-col h4 {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--red); }
/* ── FOOTER AYUDAS EUROPEAS ── */
.footer-ayudas {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.footer-ayudas-lbl {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
}
.footer-ayudas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-ayuda {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-ayuda img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0.85) saturate(0.7);
}
.footer-ayuda p {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.22);
}
.footer-bottom a { color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--red); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU OVERLAY ── */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--off-white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--crimson); }
.nav-mobile .mob-cta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white) !important;
  padding: 0.9rem 2.5rem;
  border-radius: 1px;
  margin-top: 0.5rem;
}
.nav-mobile .mob-cta:hover { background: var(--red-dk) !important; }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(130,18,18,0.35);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--crimson-dk); }

/* ── WHATSAPP BUTTON ── */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.1rem var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}
.cookie-banner p a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.55rem 1.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 1px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cookie-btn:hover { background: var(--red-dk); }

/* ── CERTIFICACIONES ── */
.certif {
  background: var(--white);
  padding: var(--section-pad) var(--px);
}
.certif-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.certif-head {
  margin-bottom: 2.5rem;
}
.certif-logos {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.certif-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.certif-logo-img {
  max-height: 110px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
.certif-link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.certif-link:hover { opacity: 0.65; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 4.5rem var(--px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-ayudas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 540px) {
  :root { --px: 1.25rem; }
  section { padding: 3.5rem var(--px); }
  .footer-grid { grid-template-columns: 1fr; }
}
