/* ═══════════════════════════════════════════════════════
   components.css — Navbar, Footer, Drawer, Pattern
   Irene Izaguerri Design System
   ═══════════════════════════════════════════════════════ */

/* ── NAVBAR ──────────────────────────────────────────── */
#irene-navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: var(--nav-h);
  z-index: 300;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
#irene-navbar.scrolled { border-color: var(--almendra-300); }

.irene-nav-inner {
  height: var(--nav-h);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.irene-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--cafe);
  transition: color .25s;
}
.irene-nav-logo:hover { color: var(--pistacho); }
/* Nav links */
.irene-nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
}
.irene-nav-links a {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 600;
  color: var(--cafe);
  padding: var(--sp-s) 0;
  text-decoration: none;
  transition: border-color .2s;
  border-bottom: 2px solid transparent;
  position: relative;
}
.irene-nav-links a:hover {
  border-bottom-color: #E3D1C3;
}
.irene-nav-links a.active {
  border-bottom-color: #E3D1C3;
}
.irene-nav-links a.active::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #E3D1C3;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

/* Burger */
.irene-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.irene-burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--cafe);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.irene-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.irene-burger.open span:nth-child(2) { opacity: 0; }
.irene-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER ──────────────────────────────────────────── */
.irene-drawer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 298;
  background: rgba(249,246,243,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 40px) clamp(32px, 8vw, 64px) 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity .35s cubic-bezier(.4,0,.2,1),
    transform .35s cubic-bezier(.4,0,.2,1),
    visibility 0s linear .35s;
}
.irene-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity .35s cubic-bezier(.4,0,.2,1),
    transform .35s cubic-bezier(.4,0,.2,1),
    visibility 0s linear 0s;
}
.irene-drawer a {
  font-family: var(--fd);
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 600;
  font-style: italic;
  color: var(--cafe);
  padding: var(--sp-m) 0;
  border-bottom: 1px solid rgba(227,209,195,.4);
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .3s cubic-bezier(.4,0,.2,1),
    transform .3s cubic-bezier(.4,0,.2,1),
    border-color .2s,
    color .2s;
}
.irene-drawer.open a:nth-child(1) { opacity: 1; transform: none; transition-delay: .08s; }
.irene-drawer.open a:nth-child(2) { opacity: 1; transform: none; transition-delay: .13s; }
.irene-drawer.open a:nth-child(3) { opacity: 1; transform: none; transition-delay: .18s; }
.irene-drawer.open a:nth-child(4) { opacity: 1; transform: none; transition-delay: .23s; }
.irene-drawer.open a:nth-child(5) { opacity: 1; transform: none; transition-delay: .28s; }
.irene-drawer a:last-child { border-bottom: none; }
.irene-drawer a:hover { border-bottom-color: #E3D1C3; }
.irene-drawer a.active { border-bottom: 2px solid #E3D1C3; }

body.drawer-open { overflow: hidden; }

/* ── FOOTER ──────────────────────────────────────────── */
#irene-footer {
  background: var(--cafe);
  padding: var(--sp-xxl) 0 var(--sp-m);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.irene-footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-m) clamp(20px, 4vw, 16px);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.irene-footer-logo {
  position: absolute;
  top: -40px;
  left: clamp(20px, 4vw, 16px);
  color: var(--caramelo);
  display: block;
  transition: opacity .2s;
}
.irene-footer-logo:hover { opacity: .7; }
.irene-footer-nav,
.irene-footer-legal {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  flex-wrap: wrap;
}
.irene-footer-nav a,
.irene-footer-legal a {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 400;
  color: var(--caramelo);
  text-decoration: none;
  line-height: 24px;
  transition: opacity .2s;
}
.irene-footer-nav a:hover,
.irene-footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.irene-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(204,204,153,.3);
  padding: var(--sp-m) clamp(20px, 4vw, 16px);
  max-width: var(--container);
  margin: var(--sp-m) auto 0;
  width: 100%;
  flex-wrap: wrap;
  gap: var(--sp-m);
}

.irene-footer-copy {
  font-family: var(--fd);
  font-size: 14px;
  color: var(--caramelo);
  opacity: 1;
}

.irene-footer-social {
  display: flex;
  align-items: center;
  gap: 21px;
}
.irene-footer-social a svg { width: 28px; height: 28px; transition: opacity .2s; }
.irene-footer-social a:hover svg { opacity: .7; }

/* ── PATTERN STRIP ───────────────────────────────────── */
/* ── SERVICIO CARD ───────────────────────────────────── */
irene-servicio-card { display: flex; }

.isc-card {
  background: #fff;
  border-radius: var(--r-s);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  overflow: hidden;
  display: flex; flex-direction: column;
  width: 100%;
  transition: box-shadow .25s, transform .25s;
  max-width: 500px;
  margin: 0 auto;
}
.isc-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
  transform: translateY(-3px);
}

.isc-header {
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--r-s) var(--r-s) 0 0;
}
.isc-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.isc-header-icon svg { width: 56px; height: 56px; display: block; }

.isc-header.c-pistacho { background: #899A71; }
.isc-header.c-caramelo { background: #CCCC99; }
.isc-header.c-almendra { background: #DADADC; }
.isc-header.c-cafe     { background: #343434; }

.isc-title {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  margin: 0;
}
.isc-title.on-dark  { color: #fff; }
.isc-title.on-light { color: #343434; }

.isc-body {
  padding: 24px 16px 16px;
  display: flex; flex-direction: column; gap: 16px;
  flex: 1;
}

.isc-desc {
  font-family: var(--fd);
  font-size: 16px; font-weight: 400; line-height: 24px;
  color: #343434; flex: 1; margin: 0;
}

/* Features */
.isc-features-wrap {
  display: flex; flex-direction: column; gap: 8px;
}
.isc-features-label {
  font-family: var(--fd);
  font-size: 16px; font-weight: 600; line-height: 24px;
  color: var(--pistacho); margin: 0;
}
.isc-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin: 0; padding: 0;
}
.isc-features li {
  display: flex; align-items: flex-start; gap: 8px;
  padding-left: 8px;
  font-family: var(--fd);
  font-size: 16px; font-weight: 400; line-height: 24px; color: #343434;
}
.isc-features li svg { flex-shrink: 0; margin-top: 5px; width: 14px; height: 14px; }

/* Ideal para */
.isc-ideal {
  background: #F9FAFA;
  border-radius: var(--r-s);
  padding: 16px;
}
/* Footer */
.isc-footer {
  background: var(--caramelo-100);
  height: 86px;
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.isc-price { display: flex; flex-direction: column; gap: 2px; }
.isc-price-label {
  font-family: var(--fp);
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--pistacho); line-height: 1;
}
.isc-price-value {
  font-family: var(--fd);
  font-style: italic; font-weight: 500;
  font-size: 24px;
  color: var(--cafe);
}
.isc-price-value.muted {
  font-size: 14px; font-style: normal;
  font-weight: 400; color: var(--almendra-900);
}
.isc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--cafe);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--caramelo);
  padding: var(--sp-s) var(--sp-s);
  border-radius: var(--r-xs);
  transition: background .2s, color .2s, border-color .2s;
}
.isc-cta:hover {
  border-color: var(--caramelo-700);
}
.isc-cta svg { width: 14px; height: 16px; flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .irene-nav-links { display: none; }
  .irene-burger    { display: flex; }
}

@media (max-width: 640px) {
  .irene-footer-main    { flex-direction: column; align-items: flex-start; gap: var(--sp-l); padding-top: var(--sp-xxl); }
  .irene-footer-nav,
  .irene-footer-legal   { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }
  .irene-footer-bottom  { flex-direction: column; align-items: flex-start; }
}
/* ── CTA SECTION ─────────────────────────────────────── */
.irene-cta-section {
  background: var(--cafe);
  padding: var(--section-pad) 0;
}

@media (max-width: 640px) {
  .irene-cta-section { padding: 10vh 0; }
}

.irene-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.irene-cta-eyebrow {
  color: var(--caramelo);
  opacity: .75;
}

.irene-cta-title {
  color: var(--coconut);
}

.irene-cta-lead {
  color: rgba(255,255,255,.7);
}


/* ── COOKIE BANNER ───────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: var(--sp-l);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--cafe);
  color: var(--coconut);
  border-radius: var(--r-s);
  padding: var(--sp-ml) var(--sp-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  max-width: 760px;
  width: calc(100% - 40px);
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  animation: banner-up .4s cubic-bezier(.4,0,.2,1);
}

@keyframes banner-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#cookie-banner p {
  font-family: var(--fp);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  flex: 1;
  margin: 0;
}

#cookie-banner p a {
  color: var(--caramelo);
  border-bottom: 1px solid rgba(204,204,153,.4);
}

.cookie-banner-actions {
  display: flex;
  gap: var(--sp-s);
  flex-shrink: 0;
}

.cookie-btn-reject,
.cookie-btn-accept {
  font-family: var(--fp);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  padding: var(--sp-s) var(--sp-m);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.7);
}
.cookie-btn-reject:hover {
  border-color: var(--coconut);
  color: var(--coconut);
}

.cookie-btn-accept {
  background: var(--caramelo);
  border: 1px solid var(--caramelo);
  color: var(--cafe);
}
.cookie-btn-accept:hover {
  background: var(--coconut);
  border-color: var(--coconut);
}

@media (max-width: 640px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-m);
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: var(--r-s) var(--r-s) 0 0;
  }
  @keyframes banner-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
/* Un único recurso de logo, con el color del enlace de cabecera o pie. */
.irene-logo{display:block;width:170px;height:34px;background-color:currentColor;-webkit-mask:url("../svg/logo.svg") center/contain no-repeat;mask:url("../svg/logo.svg") center/contain no-repeat;}
