/* === Coworking Mamut — Custom CSS (Fase 5b, handoff design_handoff_coworking_mamut) === */

@font-face { font-family: 'Gotham'; src: url('../fonts/GothamBook.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../fonts/Gotham-Black.otf') format('opentype'); font-weight: 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }

:root {
  --pink: #E81870;
  --pink-h: #FF2D85;
  --pink-p: #C50E5C;
  --black: #000000;
  --white: #ffffff;
  --n50: #FAFAF9;
  --n100: #F4F4F2;
  --n200: #E6E6E3;
  --n300: #D1D1CD;
  --n500: #737370;
  --n700: #3A3A38;
}

html, body { width: 100%; overflow-x: hidden; }
body { font-family: 'Gotham', system-ui, sans-serif; color: var(--black); background: #fff; line-height: 1.55; }

/* Quark overrides */
#page-wrapper { width: 100%; }
#start { padding: 0 !important; }
#body-wrapper { padding: 0 !important; }
#body-wrapper .container { max-width: 100% !important; padding: 0 !important; width: 100% !important; }

.cm-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Los anchors internos (#form, #precios...) no deben cambiar de color al "visitarse" */
#cm-site a:visited { color: inherit; }

/* === NAV === */
.cm-nav { position: sticky; top: 0; z-index: 40; height: 72px; background: var(--black); color: #fff; display: flex; align-items: center; }
.cm-nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.cm-nav-logo { height: 26px; filter: invert(1) brightness(2); }
.cm-nav-right { display: flex; align-items: center; gap: 28px; }
.cm-nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.cm-nav-links a { color: #fff; text-decoration: none; transition: color .15s ease-out; }
.cm-nav-links a:hover { color: var(--pink); }

.cm-pill { display: inline-flex; align-items: center; border-radius: 6px; font-weight: 700; font-size: 13px; padding: 9px 16px; text-decoration: none; transition: background .15s ease-out; }
.cm-pill-pink { background: var(--pink); color: #fff; }
.cm-pill-pink:hover { background: var(--pink-h); }

/* === HERO (carrusel 3 fotos, crossfade / 15s ciclo) === */
.cm-hero { position: relative; height: 640px; max-height: 90vh; color: #fff; overflow: hidden; }
.cm-hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-hero-slide-a { animation: cm-hero-fade-a 15s infinite; }
.cm-hero-slide-b { animation: cm-hero-fade-b 15s infinite; }
.cm-hero-slide-c { animation: cm-hero-fade-c 15s infinite; }
@keyframes cm-hero-fade-a {
  0%, 29%   { opacity: 1; }
  33%, 96%  { opacity: 0; }
  100%      { opacity: 1; }
}
@keyframes cm-hero-fade-b {
  0%, 29%   { opacity: 0; }
  33%, 62%  { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes cm-hero-fade-c {
  0%, 62%   { opacity: 0; }
  66%, 95%  { opacity: 1; }
  100%      { opacity: 0; }
}
.cm-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.80) 45%, rgba(0,0,0,.40) 100%); }
.cm-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.cm-hero-title { font-family: 'Gotham'; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(40px, 7vw, 96px); margin: 0; color: #fff; }
.cm-hero-text { font-size: 18px; line-height: 1.55; margin: 28px 0 0; max-width: 46ch; opacity: .9; }
.cm-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.cm-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; border-radius: 6px; padding: 14px 22px; text-decoration: none; transition: box-shadow .15s ease-out, transform .15s ease-out, background .15s ease-out; }
.cm-btn-pink { background: var(--pink); color: #fff; }
.cm-btn-pink:hover { background: var(--pink-h); color: #fff; }
.cm-btn-outline { background: transparent; color: #fff; border: 2px solid #fff; padding: 12px 22px; }
.cm-btn-outline:hover { box-shadow: 2px 2px 0 var(--pink); transform: translate(-2px, -2px); color: #fff; }

/* === SECTION SHELL === */
.cm-section { padding: clamp(40px, 6vw, 64px) 0; background: #fff; }
.cm-section-alt { background: var(--n50); }
.cm-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pink); margin-bottom: 16px; }
.cm-eyebrow-pink { color: var(--pink); }
.cm-h2 { font-family: 'Gotham'; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(28px, 4vw, 48px); margin: 0 0 24px; max-width: 18ch; color: var(--black); }
.cm-h2-white { color: #fff; }
.cm-lead { font-size: 18px; line-height: 1.55; max-width: 62ch; color: var(--n700); margin: 0 0 16px; }
.cm-note { font-size: 14px; color: var(--n500); margin: 0 0 48px; max-width: 62ch; }

/* === ESPACIOS === */
.cm-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cm-card { background: #fff; border: 2px solid #000; border-radius: 6px; overflow: hidden; transition: box-shadow .15s ease-out, transform .15s ease-out; }
.cm-card:hover { box-shadow: 2px 2px 0 var(--pink); transform: translate(-2px, -2px); }
.cm-card-photo { width: 100%; height: 140px; background-color: var(--n100); overflow: hidden; }
.cm-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-card-photo-soon { display: flex; align-items: center; justify-content: center; background-color: var(--n200); }
.cm-card-photo-soon span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--n700); }
.cm-card-body { padding: 20px; }
.cm-card-icon { margin-bottom: 12px; }
.cm-card-body h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.cm-card-body p { font-size: 14px; color: var(--n700); margin: 0; }

.cm-plano { margin-top: 32px; display: flex; justify-content: center; }
.cm-plano img { max-width: 320px; width: 100%; height: auto; border-radius: 6px; border: 2px solid #000; }

/* === GALERÍA (bento) === */
.cm-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 180px); gap: 12px; }
.cm-gallery-item { border-radius: 6px; overflow: hidden; display: block; cursor: pointer; transition: opacity .15s ease-out; }
.cm-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-gallery-item:hover { opacity: .88; }
.cm-gallery-big { grid-column: span 2; grid-row: span 2; }
.cm-gallery-item-hidden { display: none; }

/* === LIGHTBOX GALERÍA === */
.cm-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 40px; }
.cm-lightbox.is-open { display: flex; }
.cm-lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.cm-lightbox-close, .cm-lightbox-prev, .cm-lightbox-next { position: absolute; background: transparent; border: none; color: #fff; cursor: pointer; font-family: 'Gotham', sans-serif; line-height: 1; transition: opacity .15s ease-out; opacity: .8; }
.cm-lightbox-close:hover, .cm-lightbox-prev:hover, .cm-lightbox-next:hover { opacity: 1; }
.cm-lightbox-close { top: 20px; right: 24px; font-size: 36px; }
.cm-lightbox-prev, .cm-lightbox-next { top: 50%; transform: translateY(-50%); font-size: 48px; padding: 12px; }
.cm-lightbox-prev { left: 12px; }
.cm-lightbox-next { right: 12px; }
@media (max-width: 560px) {
  .cm-lightbox-prev, .cm-lightbox-next { font-size: 32px; }
  .cm-lightbox-close { font-size: 28px; top: 10px; right: 14px; }
}

/* === PRECIOS === */
.cm-price-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--n500); margin-bottom: 16px; }
.cm-price-grid { display: grid; gap: 16px; }
.cm-price-grid-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; }
.cm-price-grid-4 { grid-template-columns: repeat(4, 1fr); }
.cm-price-card { background: #fff; border: 2px solid #000; border-radius: 6px; padding: 24px; }
.cm-price-card-featured { background: #fff; color: inherit; border-color: #000; }
.cm-price-card-featured .cm-price-meta { color: var(--n500); }
.cm-price-card-featured .cm-price-big span { color: var(--n500); opacity: 1; }
.cm-price-card-featured .cm-price-share { color: var(--n500); opacity: 1; }
.cm-price-card-featured .cm-price-divider { background: var(--n200); }
.cm-price-card-featured .cm-price-includes { color: var(--n700); opacity: 1; }
.cm-price-meta { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--n500); }
.cm-price-big { font-family: 'Gotham'; font-weight: 900; font-size: 36px; margin: 10px 0 4px; }
.cm-price-big span { font-size: 14px; font-weight: 400; color: var(--n500); }
.cm-price-share { font-size: 13px; color: var(--n500); margin-bottom: 16px; }
.cm-price-divider { height: 1px; background: var(--n200); margin: 16px 0; }
.cm-price-includes { font-size: 14px; color: var(--n700); }
.cm-price-card-sm { background: #fff; border: 2px solid #000; border-radius: 6px; padding: 20px; text-align: center; }
.cm-price-mid { font-family: 'Gotham'; font-weight: 900; font-size: 26px; margin: 8px 0; }
.cm-price-mid span { font-size: 12px; font-weight: 400; color: var(--n500); }
.cm-price-footnote { font-size: 13px; color: var(--n500); margin-top: 16px; }

/* === POR QUÉ ELEGIRNOS === */
.cm-elegirnos { position: relative; background: var(--black); color: #fff; padding: clamp(56px, 9vw, 96px) 0; }
.cm-elegirnos::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 6px 6px; }
.cm-elegirnos .cm-container { position: relative; z-index: 2; }
.cm-elegirnos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cm-elegirnos-item svg { margin-bottom: 16px; }
.cm-elegirnos-item h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.cm-elegirnos-item p { font-size: 14px; opacity: .8; margin: 0; }

/* === FORM === */
.cm-form-card { background: var(--black); color: #fff; border-radius: 6px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cm-form-title { font-family: 'Gotham'; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(24px, 3vw, 40px); margin: 0 0 16px; max-width: 16ch; color: #fff; }
.cm-form-copy { font-size: 15px; opacity: .8; max-width: 40ch; margin: 0; }

/* Restyle del formulario nativo de Grav (Form plugin) para encajar en la tarjeta negra */
.cm-form-right .form-label { display: none; }
.cm-form-right .form-field, .cm-form-right .form-group { margin-bottom: 14px; }
.cm-form-right input[type="text"],
.cm-form-right input[type="email"],
.cm-form-right input[type="tel"],
.cm-form-right textarea {
  width: 100%; font-family: 'Gotham'; font-size: 14px; padding: 13px 16px;
  border: 2px solid #fff; border-radius: 6px; background: transparent; color: #fff; outline: none;
}
.cm-form-right input::placeholder, .cm-form-right textarea::placeholder { color: rgba(255,255,255,.6); }
.cm-form-right textarea { resize: vertical; }
.cm-form-right .button-wrapper { margin-top: 4px; text-align: center; }
.cm-form-right .btn,
.cm-form-right button[type="submit"] {
  background: var(--pink); color: #fff; font-weight: 700; font-size: 14px;
  border: none; border-radius: 6px; padding: 13px 24px; cursor: pointer;
  transition: background .15s ease-out;
}
.cm-form-right .btn:hover { background: var(--pink-h); }
.form-messages .alert { padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.form-messages .alert-success, .toast-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-messages .alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* === FOOTER === */
.cm-footer { background: var(--black); color: #fff; padding: 32px 0; border-top: 1px solid #222; }
.cm-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.cm-footer-logo { height: 18px; filter: invert(1) brightness(2); opacity: .85; }
.cm-footer-text { font-size: 12px; color: var(--n500); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .cm-nav-links { display: none; }
  .cm-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cm-price-grid-3 { grid-template-columns: 1fr; }
  .cm-price-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cm-elegirnos-grid { grid-template-columns: 1fr; gap: 24px; }
  .cm-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 160px); }
  .cm-gallery-big { grid-column: span 2; grid-row: span 1; }
  .cm-form-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
@media (max-width: 560px) {
  .cm-cards-grid { grid-template-columns: 1fr; }
  .cm-hero { height: 560px; }
}
