/*
  Lumen Eighty Template
  https://templatemo.com/tm-628-lumen-eighty
*/

/* ============ TOKENS ============ */
:root {
  --bg-pure-white: #FFFFFF;      /* Absolute crisp pure white base */
  --surface-diagonal: #E0F2FE;   /* Pale ice blue for 80-degree diagonal slices */
  --text-ink: #1B1B24;           /* Cool midnight ink, never pure black */
  --text-muted: #68717C;         /* Cool slate grey for captions and secondary text */
  --accent-crimson: #C92A2A;     /* Bold crimson for active tabs, buttons and links */
  --accent-violet: #9B72CB;      /* Soft violet for hovers and editorial accents */
  --hover-ice: #CDE8FC;          /* Deeper ice blue for interactive states */
  --border-delicate: #D6E4EF;
  --crimson-tint: rgba(201, 42, 42, 0.08);
  --violet-tint: rgba(155, 114, 203, 0.10);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0.14, 0.3, 1);
  --font-ui: 'Plus Jakarta Sans', sans-serif;
  --font-editorial: 'Cormorant Garamond', serif;
  --header-h: 76px;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-pure-white);
  color: var(--text-ink);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-crimson); text-decoration: none; transition: color 0.4s var(--ease-out-expo); }
a:hover { color: var(--accent-violet); }
button { font-family: var(--font-ui); cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-crimson); outline-offset: 3px; }

.container { width: min(1240px, 92%); margin: 0 auto; }

/* ============ TYPOGRAPHY ============ */
.editorial-title {
  font-family: var(--font-editorial);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.editorial-italic { font-family: var(--font-editorial); font-style: italic; font-weight: 500; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-crimson);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--accent-crimson); }
.lede { font-size: 18px; font-weight: 300; color: var(--text-muted); max-width: 56ch; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-pure-white);
  border-bottom: 1px solid var(--border-delicate);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--text-ink);
  white-space: nowrap;
}
.brand span { color: var(--accent-crimson); font-weight: 300; }
.brand:hover { color: var(--accent-crimson); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; gap: 6px; align-items: center; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-ink);
  background: transparent;
  border: none;
  transition: color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
}
.nav-link:hover { color: var(--accent-crimson); background: var(--hover-ice); }
.nav-link.is-active { color: var(--accent-crimson); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--accent-crimson);
}
.caret {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.4s var(--ease-out-expo);
}
.has-drop:hover .caret, .has-drop:focus-within .caret { transform: rotate(225deg) translateY(-2px); }

/* ============ DROPDOWNS ============ */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 250px;
  list-style: none;
  background: var(--bg-pure-white);
  border: 1px solid var(--border-delicate);
  box-shadow: 0 15px 30px rgba(27, 27, 36, 0.06);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo), visibility 0s linear 0.45s;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.drop-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo), visibility 0s;
}
.dropdown a {
  display: block;
  padding: 11px 24px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-ink);
  transition: background 0.35s var(--ease-out-expo), color 0.35s var(--ease-out-expo), padding-left 0.35s var(--ease-out-expo);
}
.dropdown a:hover { background: var(--hover-ice); color: var(--accent-crimson); padding-left: 30px; }
.dropdown .drop-label {
  padding: 8px 24px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-delicate);
  margin-bottom: 6px;
}

.nav-cta {
  margin-left: 18px;
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--accent-crimson);
  border: 1px solid var(--accent-crimson);
  transition: background 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo);
}
.nav-cta:hover { background: var(--text-ink); border-color: var(--text-ink); color: #FFFFFF; }

/* ============ MOBILE NAV ============ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-delicate);
  padding: 0 10px;
}
.menu-toggle .bar { height: 1.5px; width: 100%; background: var(--text-ink); transition: transform 0.5s var(--ease-out-expo), opacity 0.3s; }
.menu-toggle.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: var(--bg-pure-white);
  overflow-y: auto;
  padding: 80px 8% 80px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-out-expo), visibility 0s linear 0.6s;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition: transform 0.6s var(--ease-out-expo), visibility 0s; }
.mobile-nav ul { list-style: none; }
.m-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-family: var(--font-editorial);
  font-size: 30px;
  font-weight: 500;
  color: var(--text-ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-delicate);
}
.m-link.is-active { color: var(--accent-crimson); }
.m-sub {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: max-height 0.6s var(--ease-out-expo), opacity 0.45s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), padding 0.6s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo);
}
.m-sub.open { max-height: 300px; opacity: 1; transform: translateY(0); padding: 6px 0 14px; border-bottom-color: var(--border-delicate); }
.m-sub a { display: block; padding: 10px 0 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-muted); border-left: 1px solid var(--border-delicate); }
.m-sub a:hover { color: var(--accent-crimson); border-left-color: var(--accent-crimson); }
.m-drop-head { display: flex; align-items: stretch; border-bottom: 1px solid var(--border-delicate); }
.m-drop-head .m-link { border-bottom: none; flex: 0 1 auto; }
.m-sub-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 90px;
  padding: 0 12px 0 40px;
  background: transparent;
  border: none;
  transition: background 0.4s var(--ease-out-expo);
}
.m-sub-toggle:active { background: var(--hover-ice); }
.m-sub-toggle .caret { width: 12px; height: 12px; margin-right: 0; }

/* ============ SPA PAGES ============ */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.6s var(--ease-out-expo) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
main { min-height: 70vh; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============ IMAGE FRAMES ============ */
.frame {
  border: 1px solid var(--border-delicate);
  overflow: hidden;
  background: var(--surface-diagonal);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.frame:hover img { transform: scale(1.04); }

/* ============ DIAGONAL BANDS ============ */
.band { position: relative; }
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--surface-diagonal);
  transform: skewY(-8deg);
  z-index: -1;
}
.band-crimson::before { background: var(--crimson-tint); }
.band-violet::before { background: var(--violet-tint); }

/* ============ HERO ============ */
.hero { position: relative; padding: 110px 0 150px; overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-title { font-size: clamp(52px, 7vw, 104px); }
.hero-title em { color: var(--accent-violet); }
.hero-copy { margin-top: 30px; }
.hero-actions { display: flex; gap: 18px; margin-top: 42px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--text-ink);
  color: var(--text-ink);
  background: transparent;
  transition: background 0.5s var(--ease-out-expo), color 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
}
.btn:hover { background: var(--text-ink); color: #FFFFFF; }
.btn-solid { background: var(--accent-crimson); border-color: var(--accent-crimson); color: #FFFFFF; }
.btn-solid:hover { background: var(--text-ink); border-color: var(--text-ink); }

.hero-visual { position: relative; padding: 40px 0 40px 30px; }
.hero-visual::before {
  content: '';
  position: absolute;
  top: 6%;
  right: -14vw;
  width: 130%;
  height: 88%;
  background: var(--crimson-tint);
  transform: skewY(-8deg);
  z-index: -1;
}
.hero-img-main { aspect-ratio: 4 / 5; }
.hero-img-detail {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  bottom: -30px;
  left: -30px;
  box-shadow: 0 24px 50px rgba(27, 27, 36, 0.10);
}
.hero-meta {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.section-title { font-size: clamp(36px, 4.4vw, 58px); margin-top: 16px; }

/* Featured catalogue on diagonal band */
.band-featured { padding: 150px 0 140px; margin: 40px 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.product-card .frame { aspect-ratio: 3 / 4; }
.product-info { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 18px; }
.product-name { font-family: var(--font-editorial); font-size: 24px; font-weight: 500; }
.product-cat { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.product-price { font-size: 14px; font-weight: 600; color: var(--accent-crimson); white-space: nowrap; }
.product-card a.card-link { color: inherit; display: block; }

/* Philosophy quote band */
.band-quote { padding: 150px 0; margin: 60px 0 40px; text-align: center; }
.quote-mark { font-family: var(--font-editorial); font-size: 90px; line-height: 0.4; color: var(--accent-violet); display: block; margin-bottom: 30px; }
.big-quote { font-size: clamp(28px, 3.6vw, 46px); max-width: 22ch; margin: 0 auto; }
.quote-attr { margin-top: 34px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-muted); }

/* Materials strip */
.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-delicate); }
.material-cell { padding: 44px 36px; border-right: 1px solid var(--border-delicate); transition: background 0.5s var(--ease-out-expo); }
.material-cell:last-child { border-right: none; }
.material-cell:hover { background: var(--hover-ice); }
.material-num { font-family: var(--font-editorial); font-style: italic; font-size: 20px; color: var(--accent-violet); }
.material-cell h3 { font-size: 16px; font-weight: 600; margin: 12px 0 8px; letter-spacing: 0.02em; }
.material-cell p { font-size: 14px; color: var(--text-muted); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .frame { aspect-ratio: 4 / 5; }
.split-content h2 { font-size: clamp(34px, 4vw, 52px); margin: 16px 0 24px; }
.text-link { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.text-link::after { content: '\2192'; transition: transform 0.4s var(--ease-out-expo); }
.text-link:hover::after { transform: translateX(6px); }

/* ============ CATALOGUE PAGE ============ */
.page-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--border-delicate); }
.page-hero-title { font-size: clamp(44px, 6vw, 84px); margin-top: 18px; }
.catalogue-section { padding: 90px 0 30px; }
.catalogue-section:last-of-type { padding-bottom: 110px; }
.cat-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 44px; }
.cat-head h2 { font-size: clamp(30px, 3.4vw, 44px); }
.cat-count { font-family: var(--font-editorial); font-style: italic; font-size: 19px; color: var(--accent-violet); }
.band-slice { padding: 130px 0 120px; margin: 30px 0; }

/* ============ ATELIER PAGE ============ */
.atelier-block { padding: 100px 0; border-bottom: 1px solid var(--border-delicate); }
.atelier-block:last-of-type { border-bottom: none; }
.provenance-list { list-style: none; margin-top: 30px; }
.provenance-list li { display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--border-delicate); font-size: 15px; }
.provenance-list li strong { min-width: 150px; font-weight: 600; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.provenance-list li span { color: var(--text-muted); }
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; margin-top: 50px; }
.award-cell { border: 1px solid var(--border-delicate); padding: 40px 36px; transition: background 0.5s var(--ease-out-expo); }
.award-cell:hover { background: var(--hover-ice); }
.award-year { font-family: var(--font-editorial); font-style: italic; font-size: 22px; color: var(--accent-violet); }
.award-cell h3 { font-size: 17px; font-weight: 600; margin: 10px 0 6px; }
.award-cell p { font-size: 14px; color: var(--text-muted); }

/* ============ INQUIRE PAGE ============ */
.inquire-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; padding: 100px 0 120px; }
.inquire-details { font-size: 15px; color: var(--text-muted); }
.inquire-details h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-ink); margin: 34px 0 8px; }
.inquire-details h3:first-of-type { margin-top: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-ink);
  background: var(--bg-pure-white);
  border: 1px solid var(--border-delicate);
  border-radius: 0;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo);
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-crimson); background: #FBFDFF; }
.form-note { display: none; margin-top: 24px; padding: 18px 22px; border: 1px solid var(--accent-crimson); color: var(--accent-crimson); font-size: 14px; font-weight: 500; }
.form-note.show { display: block; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border-delicate); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 34ch; margin-top: 16px; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-crimson); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--border-delicate); font-size: 13px; color: var(--text-muted); }

/* ============ MOTION SAFETY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .material-cell:nth-child(2n) { border-right: none; }
  .material-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border-delicate); }
}
@media (max-width: 920px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 70px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 80px; }
  .split, .inquire-grid { grid-template-columns: 1fr; gap: 50px; }
  .awards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .material-cell { border-right: none; border-bottom: 1px solid var(--border-delicate); }
  .material-cell:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-img-detail { left: 0; }
  .band-featured, .band-quote, .band-slice { padding: 100px 0 90px; }
}

/* ========================================================================== */
/* CSS PRINCIPAL DEL PROYECTO — prevalece sobre el complemento Lumen Eighty   */
/* ========================================================================== */

/* custom.css */

/* === COLORES PERSONALIZADOS === */

/* Oscuro */
.bg-oscuro         { background-color: #5D5C5A !important; }
.text-oscuro       { color: #5D5C5A !important; }
.hover-bg-oscuro:hover  { background-color: #5D5C5A !important; }
.hover-text-oscuro:hover{ color: #5D5C5A !important; }

/* Claro */
.bg-claro          { background-color: #F3FCF7 !important; }
.text-claro        { color: #F3FCF7 !important; }
.hover-bg-claro:hover   { background-color: #F3FCF7 !important; }
.hover-text-claro:hover { color: #F3FCF7 !important; }

/* Rosa 1 */
.bg-rosa1          { background-color: #FB809D !important; }
.text-rosa1        { color: #FB809D !important; }
.hover-bg-rosa1:hover   { background-color: #FB809D !important; }
.hover-text-rosa1:hover { color: #FB809D !important; }

/* Rosa 2 */
.bg-rosa2          { background-color: #FFD1DC !important; }
.text-rosa2        { color:#FFD1DC !important; }
.hover-bg-rosa2:hover   { background-color: #FFD1DC !important; }
.hover-text-rosa2:hover { color: #FFD1DC !important; }

/* Rosa 3 */
.bg-rosa3          { background-color: #FDEAF2 !important; }
.text-rosa3        { color: #FDEAF2 !important; }
.hover-bg-rosa3:hover   { background-color: #FDEAF2 !important; }
.hover-text-rosa3:hover { color: #FDEAF2 !important; }

/* === BORDES PERSONALIZADOS === */
.border-oscuro     { border-color: #5D5C5A !important; }
.border-rosa1      { border-color: #FB809D !important; }


/* === BOTONES PERSONALIZADOS === */

.btn.btn-rosa1 {
  background-color: #FB809D;
  color: #ffffff;
  border: none;
}
.btn.btn-rosa1:hover,
.btn.btn-rosa1:focus-visible,
.btn.btn-rosa1:active {
  background-color: #f86d8f;
  color: #ffffff;
  border: none;
}

.btn.btn-rosa1:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(251, 128, 157, 0.3);
  outline: none;
}

.btn-rosa2 {
  background-color: #FBBFC1;
  color: #5D5C5A;
  border: none;
}
.btn-rosa2:hover {
  background-color: #f9a7aa;
  color: #5D5C5A;
}

.btn-oscuro {
  background-color: #5D5C5A;
  color: #ffffff;
  border: none;
}
.btn-oscuro:hover {
  background-color: #4a4947;
  color: #ffffff;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Estilo de hover para los elementos del navbar */
.nav-link {
  transition: all 0.3s ease; /* Añadir transición para un efecto más suave */
}

/* === Hover personalizado para las clases === */
.nav-link.hover-rosa3:hover {
  color: #5D5C5A !important;  /* Cambiar el color del texto al pasar el mouse */
  background-color: #FFD9DD !important;  /* Cambiar el fondo al pasar el mouse */
}

/* Para otros efectos de hover, como el hover rosa1 */
.nav-link.hover-rosa1:hover {
  color: #FB809D !important;  /* Cambiar color de texto */
  background-color: #FB809D !important;  /* Cambiar el fondo */
}

/* .navbar-logo {
    height: 60px;
    width: auto;
} */

.text-justify {
  text-align: justify;
}


#servicios {
  min-height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
}
#productos {
  min-height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
}
#equipo {
  min-height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
}
#contacto {
  min-height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
}
#nosotros {
  min-height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
}

/* Personalización del borde y color de fondo para Misión y Visión */
.p-4.border {
  border-color: #FB809D; /* Color de borde personalizado */
}

.bg-light {
  background-color: #F3FCF7; /* Un tono más claro si deseas diferenciarlo del resto */
}

.text-oscuro {
  color: #5D5C5A; /* Tono oscuro para el texto */
}

h3 {
  font-family: 'Arial', sans-serif; /* Cambia la fuente si quieres algo diferente */
  font-size: 1.2rem; /* Tamaño del título */
}

/* Carousel */

/* Altura de pantalla completa para cada slide */
#bienvenida .carousel-item {
  height: 100vh;
  position: relative; /* para posicionar overlay */
}

/* La imagen llena el slide y se recorta centrada */
#bienvenida .carousel-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Capa oscura encima de la imagen */
.carousel-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35); /* puedes subir/bajar la opacidad */
  display: flex;
  align-items: center;
  padding-left: 3rem; /* ps-5 equivalente por si no usas utilidades */
}

/* Bloque de texto */
.carousel-item-text {
  color: #fff;
  max-width: 800px;
}

@media (max-width: 576px) {
  .carousel-item-text h1 { font-size: 1.75rem; }
  .carousel-item-text h2 { font-size: 1.125rem; }
  .carousel-item-overlay { padding-left: 1.25rem; }
}

/* Secciones de altura completa sin “saltos” en iOS Safari */
.hero-full {
  min-height: 100vh; /* Fallback universal */
}
@supports (height: 100dvh) {
  .hero-full { min-height: 100dvh; }
}
@supports (height: 100svh) {
  .hero-full { min-height: 100svh; }
}

/* Efecto blur con soporte para Safari */
.blur-bg {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Simular gap en flex usando márgenes (añádelo al contenedor) */
.flex-gap-fix > * { margin-right: 1rem; margin-bottom: 1rem; }
.flex-gap-fix > *:last-child { margin-right: 0; }

/* Variantes rápidas (opcional) */
.flex-gap-fix-sm > * { margin-right: .5rem; margin-bottom: .5rem; }
.flex-gap-fix-lg > * { margin-right: 1.5rem; margin-bottom: 1.5rem; }

:root { --nav-h: 56px; }
@media (min-width: 992px) { :root { --nav-h: 64px; } }

/* Para que el scroll “pare” antes y no tape el título */
html { scroll-padding-top: calc(var(--nav-h) + 12px); }

/* Offset cuando el ancla está en la sección */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* (Opcional) si también enlazas a h2/h3 */
/* h2[id], h3[id] { scroll-margin-top: calc(var(--nav-h) + 12px); } */

html { scroll-behavior: smooth; }

/* Contenedor que recorta la imagen (para que el zoom no “desborde”) */
.img-zoom-wrapper {
  overflow: hidden;
  border-radius: .75rem; /* similar a .rounded */
}

/* La imagen ocupa todo el contenedor y hace zoom en hover/focus */
.img-zoom {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  will-change: transform;
}

/* En dispositivos con mouse, aplica el zoom al pasar el puntero;
   también al enfocar con teclado (accesibilidad) */
@media (hover: hover) and (pointer: fine) {
  .img-zoom-link:hover .img-zoom,
  .img-zoom-link:focus-visible .img-zoom {
    transform: scale(1.08);
  }
}

/* Reduce animaciones para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  .img-zoom { transition: none; }
}

/* Si usas .ratio de Bootstrap, ayuda a que la imagen rellene */
.ratio .img-zoom {
  width: 100%;
  height: 100%;
}

.card-hover:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }

/* Avatar circular responsivo */
.avatar-xxl { width: 160px; height: 160px; }
@media (min-width: 992px) { .avatar-xxl { width: 200px; height: 200px; } }

/* Recorte sin deformar */
.object-cover { object-fit: cover; }

/* Tarjeta con leve elevación en hover */
.team-card { transition: transform .2s ease, box-shadow .2s ease; border-radius: 1rem; }
.team-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }

/* Chips de etiquetas */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 50rem;
  border: 1px solid currentColor;
  font-size: .75rem;
  line-height: 1;
}

/* Limitar texto a 4 líneas (bonito y limpio) */
.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase .showcase-text {
  padding: 3rem;
}

.showcase .showcase-img {
  min-height: 30rem;
  background-size: cover;       /* que cubra todo el div */
  background-position: center;  /* centra la imagen */
  background-repeat: no-repeat; /* evita que se repita */
}

@media (min-width: 768px) {
  .showcase .showcase-text {
    padding: 7rem;
  }
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card__image-button {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-card__image {
  display: block;
  flex: 0 0 auto;
  height: auto;
  max-height: none;
  max-width: none;
  object-position: center;
  transition: transform 180ms ease;
  width: 100%;
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.product-card__body p {
  flex: 1;
}

.product-card__details-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #fb809d;
  display: inline-flex;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  gap: 0.45rem;
  line-height: 1.2;
  margin: 0;
  padding: 0.35rem 0;
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.product-card__details-button:hover,
.product-card__details-button:focus-visible {
  background: transparent;
  border: 0;
  color: #f86d8f;
  gap: 0.7rem;
}

.product-card__details-button:focus-visible {
  outline: 2px solid rgba(251, 128, 157, 0.45);
  outline-offset: 4px;
}

.product-card__details-button i {
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.product-card__details-button:hover i,
.product-card__details-button:focus-visible i {
  transform: translateX(2px);
}

/* Los modales de Bootstrap usan z-index 1055. El navbar normalmente usa
   1100, por lo que debe bajar detrás del backdrop mientras un modal está abierto. */
.modal-open .site-navbar {
  z-index: 1040;
}

.product-modal__dialog {
  max-width: 920px;
}

.product-modal .modal-content {
  height: min(720px, calc(100vh - 2rem));
  height: min(720px, calc(100dvh - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}

.product-modal .btn-close {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.product-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1rem, 2.5vw, 2rem);
  scrollbar-gutter: stable;
}

.product-modal .modal-body::-webkit-scrollbar {
  width: 10px;
}

.product-modal .modal-body::-webkit-scrollbar-track {
  background: #fdeaf2;
}

.product-modal .modal-body::-webkit-scrollbar-thumb {
  background: #fb809d;
  border: 2px solid #fdeaf2;
  border-radius: 999px;
}

@media (max-width: 575.98px) {
  .product-modal .modal-dialog {
    margin: 0.5rem;
  }

  .product-modal .modal-content {
    height: calc(100vh - 1rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__details-button,
  .product-card__details-button i {
    transition: none;
  }

  .product-card__details-button:hover i,
  .product-card__details-button:focus-visible i {
    transform: none;
  }
}

/* ========================================================================== */
/* COMPATIBILIDAD CON VISTAS RAILS                                            */
/* La portada Rails se renderiza como una página normal, sin el router SPA.    */
/* ========================================================================== */
.rails-landing.page {
  display: block;
}

.rails-landing .reveal {
  display: revert;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.rails-landing,
.rails-landing .hero,
.rails-landing .band,
.rails-landing .section,
.rails-landing .container {
  visibility: visible;
  opacity: 1;
}

.rails-landing .frame img {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* ========================================================================== */
/* CONTACTO — AGENDA ONLINE                                                   */
/* ========================================================================== */
.contact-booking {
  align-items: flex-start;
  background: #fdeaf2;
  border: 1px solid rgba(251, 128, 157, 0.65);
  display: flex;
  gap: 18px;
  margin-top: 28px;
  max-width: 580px;
  padding: clamp(22px, 3vw, 30px);
  position: relative;
}

.contact-booking::after {
  background: #fb809d;
  bottom: -1px;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  width: 42%;
}

.contact-booking__icon {
  align-items: center;
  background: #fb809d;
  color: #fff;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 1.25rem;
  height: 48px;
  justify-content: center;
}

.contact-booking__content {
  min-width: 0;
}

.contact-booking__title {
  color: #5d5c5a;
  font-family: "Sarabun", system-ui, sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.contact-booking__description {
  color: #5d5c5a;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 10px 0 18px;
  opacity: 0.88;
}

.contact-booking__button {
  align-items: center;
  background: #fb809d;
  border: 1px solid #fb809d;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.contact-booking__button i {
  transition: transform 0.3s ease;
}

.contact-booking__button:hover,
.contact-booking__button:focus-visible {
  background: #5d5c5a;
  border-color: #5d5c5a;
  color: #fff;
  transform: translateY(-2px);
}

/* Misión y Visión: destacados dentro del texto editorial */
.mision-vision {
  background: #fff;
}

.mision-vision__row {
  min-height: calc(100svh - var(--nav-h));
}

.mision-vision__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.25vw, 4.75rem) !important;
}

.mision-vision__text h2 {
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.05;
}

.mision-vision__copy {
  font-size: clamp(1rem, 1.08vw, 1.15rem);
  line-height: 1.65;
  max-width: 44rem;
}

.showcase .mision-vision__image {
  overflow: hidden;
  padding: 0;
  position: relative;
  min-height: calc(100svh - var(--nav-h));
}

.mision-vision__photo {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 48%;
  position: absolute;
  width: 100%;
}

.mision-vision__copy strong {
  color: #fb809d;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .mision-vision__row {
    min-height: 0;
  }

  .mision-vision__text {
    padding: clamp(2.25rem, 8vw, 4rem) !important;
  }

  .showcase .mision-vision__image {
    min-height: clamp(22rem, 68vw, 34rem);
  }

  .mision-vision__photo {
    object-position: center 44%;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .mision-vision__text {
    padding: 2rem clamp(2.5rem, 4vw, 4rem) !important;
  }

  .mision-vision__text h2 {
    margin-bottom: 1rem !important;
  }

  .mision-vision__copy {
    font-size: 0.98rem;
    line-height: 1.52;
  }
}

/* Equipo: en móvil usa el mismo ancho editorial que Misión y Visión. */
@media (max-width: 991.98px) {
  .detail-team__container {
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .detail-team__row {
    --bs-gutter-x: 0;
  }

  .detail-team__heading,
  .detail-team__content,
  .detail-team__media {
    padding-left: clamp(2.25rem, 8vw, 4rem) !important;
    padding-right: clamp(2.25rem, 8vw, 4rem) !important;
  }

  .detail-team__content {
    padding-bottom: clamp(2.25rem, 8vw, 4rem) !important;
    padding-top: clamp(2.25rem, 8vw, 4rem) !important;
  }
}

.contact-booking__button:hover i,
.contact-booking__button:focus-visible i {
  transform: translate(2px, -2px);
}

.contact-booking__button:focus-visible {
  outline: 3px solid rgba(251, 128, 157, 0.4);
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .contact-booking {
    flex-direction: column;
  }

  .contact-booking__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-booking__button,
  .contact-booking__button i {
    transition: none;
  }

  .contact-booking__button:hover,
  .contact-booking__button:focus-visible,
  .contact-booking__button:hover i,
  .contact-booking__button:focus-visible i {
    transform: none;
  }
}
