/* Home de Flex Workspaces — tomada de la referencia "VERSIÓN FUNCIONAL".
   Paleta y radios en variables para poder ajustar el estilo sin tocar cada bloque. */
:root {
  --red: #D31F3F;
  --red-dark: #a8182f;
  --black: #161616;
  --cream: #EFE1CB;
  --grey: #8a8a8f;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 32px; }
button { font-family: inherit; cursor: pointer; }

/* HEADER — misma barra oscura que Depósitos */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 4, 3, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px 24px; max-width: 1180px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-home {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center; color: #8E948C; flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease;
}
.nav-home svg { width: 14px; height: 14px; }
.nav-home:hover { border-color: var(--red); color: var(--red); }
.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-link { color: #fff; font-size: .85rem; font-weight: 600; padding: 8px; transition: opacity .15s ease; }
.nav-link:hover { opacity: .7; }
.nav-btn {
  background: var(--red); color: #fff; border: 0; border-radius: 7px;
  padding: 8px 16px; font-family: inherit; font-size: .85rem; font-weight: 600; line-height: 1.4;
  transition: background-color .15s ease;
}
.nav-btn:hover { background: var(--red-dark); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 100px;
  font-weight: 700; font-size: 14.5px; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-white { background: #fff; color: var(--red); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { box-shadow: 0 8px 18px rgba(211, 31, 63, .35); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }

/* HERO — misma estructura y tipografías que el de Depósitos, en rojo Flex */
.hero {
  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  position: relative; overflow: hidden; background: #000; color: #fff;
  padding: 88px 0 64px; font-family: var(--font-body);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; opacity: .72; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .75) 100%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 900; letter-spacing: .005em;
  font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero h1 span { color: var(--red); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.hero .btn { font-family: var(--font-body); }
.hero-perks {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
}
.hero-perks li {
  display: flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
}
.hero-perks li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center/10px no-repeat;
}
.hero-lede {
  margin: 30px auto 0; max-width: 60ch; font-size: 1.05rem; line-height: 1.6;
  color: #E4E7E0; text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.hero-stats b { display: block; font-size: 1.6rem; font-weight: 600; }
.hero-stats span { font-size: .75rem; color: #C9CCC4; text-transform: uppercase; letter-spacing: .08em; }

/* ADAPTA */
.adapta-section { background: var(--cream); padding: 70px 0 80px; scroll-margin-top: 70px; }
.adapta-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.adapta-head h2 { color: var(--red); font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.adapta-head p { font-size: 15px; color: #4a4238; }
/* Carrusel de usos: fila a sangre que avanza sola (scrollLeft desde home.js),
   sin scroll-snap para que el movimiento sea continuo. */
.uses {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  padding: 10px 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.uses::-webkit-scrollbar { display: none; }
.uses-track { display: flex; gap: 22px; width: max-content; padding: 0 22px; }
.card {
  flex: 0 0 300px;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  display: flex; flex-direction: column; transition: transform .28s ease, box-shadow .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .14); }
.card .img-wrap { overflow: hidden; }
.card img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover img { transform: scale(1.06); }
.card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--red); font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 14px; color: #3d3d42; line-height: 1.55; }

/* ESPACIOS — tamaños de oficinas/salas y tipos de evento, filtrables (en la línea de las tarjetas de Depósitos) */
.esp-section { background: #fff; padding: 70px 0 80px; scroll-margin-top: 70px; }
.esp-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.esp-section .adapta-head h2, .esp-section .adapta-head p { text-wrap: balance; }
.esp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 38px; }
.esp-filter {
  background: #fff; color: #3d3d42; border: 1.5px solid #e4ddd0; border-radius: 999px;
  padding: 9px 20px; font-size: 14px; font-weight: 700; line-height: 1.3;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.esp-filter:hover { border-color: var(--red); color: var(--red); }
.esp-filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.esp-filter:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.esp-group { margin-bottom: 44px; }
.esp-group[hidden] { display: none; }
.esp-group-title {
  font-size: 17px; font-weight: 800; color: #1a1a1a;
  padding-bottom: 10px; margin-bottom: 22px; border-bottom: 2px solid var(--red);
}
.esp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.esp-card {
  background: #fff; border: 1px solid #ece6db; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.esp-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.esp-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.esp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.esp-card:hover .esp-photo img { transform: scale(1.05); }
.esp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.esp-size {
  font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800;
  font-size: 2rem; line-height: 1; color: var(--black);
}
.esp-body h4 { color: var(--red); font-size: 20px; font-weight: 800; line-height: 1.2; }
.esp-dim { font-size: 13px; font-weight: 700; color: #6e6a63; margin-top: -4px; }
.esp-use { font-size: 14px; color: #3d3d42; line-height: 1.55; text-wrap: pretty; }
.esp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; flex: 1; align-content: flex-start; }
.esp-tags li { font-size: 12px; font-weight: 600; color: #4a4238; background: #f4f1ea; border-radius: 999px; padding: 4px 11px; line-height: 1.4; }
.btn-ghost-red { align-self: flex-start; margin-top: 8px; padding: 10px 20px; font-size: 13.5px; background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-ghost-red:hover { background: var(--red); color: #fff; }
/* Barra de cotizar: ocupa el ancho de las tres columnas */
.esp-cta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--black); color: #fff; border-radius: var(--radius); padding: 30px 36px;
}
.esp-cta-bar h3 { color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.esp-cta-bar p { color: rgba(255, 255, 255, .72); font-size: 14.5px; line-height: 1.55; margin-top: 6px; max-width: 58ch; text-wrap: pretty; }
.esp-cta-bar .btn { flex-shrink: 0; }
.esp-hint { display: none; text-align: center; font-size: 13px; color: var(--grey); margin-top: 6px; }
@media (max-width: 820px) {
  .esp-section { padding: 52px 0 60px; }
  .esp-inner { padding: 0 16px; }
  .esp-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 28px; padding: 2px 16px; scrollbar-width: none; }
  .esp-filters::-webkit-scrollbar { display: none; }
  .esp-filter { flex: 0 0 auto; }
  .esp-group { margin-bottom: 32px; }
  .esp-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; }
  .esp-grid::-webkit-scrollbar { display: none; }
  .esp-card { flex: 0 0 min(320px, 80%); scroll-snap-align: center; }
  .esp-card:hover { transform: none; }
  .esp-hint { display: block; }
  .esp-cta-bar { flex-direction: column; align-items: flex-start; gap: 20px; padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .esp-card, .esp-photo img { transition: none; }
  .esp-card:hover, .esp-card:hover .esp-photo img { transform: none; }
}

/* LOGOS — carrusel infinito */
.logos-section { padding: 0 32px 80px; background: #fff; text-align: center; }
/* Bloque propio: panel redondeado, separado de la grilla de formatos */
.logos-panel { max-width: 1100px; margin: 0 auto; background: #f4f1ea; border-radius: var(--radius); padding: 44px 0 40px; overflow: hidden; }
.logos-section h2 { color: var(--red); font-size: 22px; font-weight: 800; margin: 0 24px 34px; text-wrap: balance; }
.logos-carousel {
  overflow: hidden; width: 100%;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logos-track {
  display: flex; align-items: center; width: max-content;
  animation: logos-scroll 60s linear infinite;
}
.logos-carousel:hover .logos-track { animation-play-state: paused; }
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-item { flex: 0 0 auto; display: flex; align-items: center; height: 64px; margin-right: 72px; }
.logo-item img { display: block; height: auto; max-height: 64px; }

/* FAQ — <details> nativo, mismo estilo que el de Depósitos (flecha que gira, líneas divisorias) */
.faq-section { background: var(--cream); padding: 70px 0 80px; scroll-margin-top: 70px; }
.faq-head { text-align: center; margin-bottom: 36px; }
.faq-head h2 { color: var(--red); font-size: 26px; font-weight: 800; text-wrap: balance; }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid rgba(0, 0, 0, .14); }
.faq-list details { border-bottom: 1px solid rgba(0, 0, 0, .14); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 44px 18px 0;
  font-size: 1.02rem; font-weight: 600; color: var(--black); transition: color .15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--red); }
.faq-list summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.faq-a { padding: 0 0 20px; color: #4a4238; font-size: .95rem; line-height: 1.6; }
.faq-a p { margin: 0; text-wrap: pretty; }
@media (max-width: 600px) { .faq-list summary { font-size: .97rem; padding: 16px 36px 16px 0; } }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* CONTACTO */
.contact-section { background: var(--black); color: #fff; padding: 70px 0 80px; scroll-margin-top: 70px; }
.contact-section h2 { color: var(--red); font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.contact-section > .wrap > p { color: rgba(255, 255, 255, .55); font-size: 15px; margin-bottom: 44px; }
.contact-form { display: grid; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-form label { font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-bottom: 6px; display: block; letter-spacing: .2px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 9px 0; border: none; border-bottom: 1.5px solid rgba(211, 31, 63, .6);
  background: transparent; color: #fff; font-size: 15px; font-family: inherit; border-radius: 0;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--red); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255, 255, 255, .35); }
.contact-form select option { color: #111; }
.contact-form textarea { resize: vertical; min-height: 60px; }
/* color-scheme:dark ya pide un ícono claro para el datepicker; sumarle
   filter:invert() lo vuelve a oscurecer, así que va solo esto. */
.contact-form input[type="date"] { color-scheme: dark; }
.contact-form input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
.submit-row { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form-msg { font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.form-msg:empty { display: none; }
.form-msg.err { color: #ff8a9c; }
.form-msg.ok { color: #fff; }
.form-msg p + p { margin-top: 4px; }
.form-wa { display: none; }
.form-wa.show { display: inline-flex; }

/* FOOTER — mismo esquema que el de Depósitos: barra de color, copyright y redes */
footer { background: var(--red); padding: 26px 0; }
footer .wrap {
  max-width: 1180px; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: #fff; font-weight: 600;
}
footer .social { display: flex; gap: 10px; }
footer .social a {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
footer .social a:hover { border-color: #fff; background: rgba(255, 255, 255, .15); }
footer .social svg { width: 16px; height: 16px; }

.whatsapp-fab {
  position: fixed; bottom: 26px; right: 26px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25); z-index: 60; color: #fff;
  transition: opacity .25s ease, transform .25s ease;
}
/* Se esconde mientras el footer está a la vista (el footer ya tiene su WhatsApp) */
.whatsapp-fab.is-footer-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 820px) {
  .nav { padding: 14px 18px; }
  .hero { padding: 52px 0 44px; }
  .hero-inner { padding: 0 16px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .hero-lede { margin-top: 24px; font-size: .95rem; }
  .hero-perks { gap: 8px 16px; }
  .hero-perks li { font-size: .86rem; }
  .hero-stats { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .card { flex-basis: 78vw; max-width: 300px; }
  .card img { height: 190px; }
  .uses-track { gap: 16px; padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .logos-section { padding: 0 16px 60px; }
  .logos-panel { padding: 34px 0 30px; }
}
@media (max-width: 600px) {
  footer .wrap { justify-content: center; flex-direction: column-reverse; gap: 14px; }
  .nav-brand { gap: 9px; }
  .nav-home { width: 26px; height: 26px; }
  .logo img { height: 27px; }
  .nav-link { display: none; }
}
