/* ==========================================================================
   ViCake & Tablas — Design tokens (BrandBook Corporativo)
   ========================================================================== */
:root {
  --burgundy: #660038;
  --burgundy-dark: #45002a;
  --crema: #F4EADE;
  --crema-soft: #FBF6F0;
  --negro: #252525;
  --cobre: #B27945;
  --oliva: #868671;

  --ink: var(--negro);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-soft: 0 20px 60px -20px rgba(37,37,37,.35);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--crema-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--burgundy);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(251, 246, 240, .82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(37,37,37,.06);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 14.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--negro);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--cobre);
  transition: width var(--transition);
}
.main-nav a:hover::after { width: 100%; }

.nav-socials { display: flex; gap: 14px; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--burgundy);
  border: 1px solid rgba(102,0,56,.18);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.icon-link svg { width: 16px; height: 16px; }
.icon-link:hover { background: var(--burgundy); color: #fff; transform: translateY(-2px); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--negro);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(37,211,102,.6);
}
.btn-whatsapp:hover { box-shadow: 0 14px 30px -8px rgba(37,211,102,.75); }

.btn-gold {
  background: var(--cobre);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(178,121,69,.65);
}
.btn-gold:hover { background: #9c6636; }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #7a0044 0%, var(--burgundy) 45%, var(--burgundy-dark) 100%);
  color: var(--crema);
  padding: 120px 24px 100px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(178,121,69,.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(178,121,69,.18), transparent 45%);
  pointer-events: none;
}

.hero-isotype {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 90vw);
  transform: translate(-50%, -50%);
  opacity: .08;
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12.5px;
  color: var(--cobre);
  font-weight: 500;
  margin: 0 0 28px;
}

.hero-wordmark {
  width: min(560px, 88vw);
  margin: 0 auto 30px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.25));
}

.hero-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.55;
  color: var(--crema);
  opacity: .92;
  max-width: 560px;
  margin: 0 auto 42px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-outline { border-color: rgba(244,234,222,.5); color: var(--crema); }
.hero .btn-outline:hover { border-color: var(--crema); }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(244,234,222,.5);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 4px;
  background: var(--cobre);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
  background: var(--negro);
  color: var(--crema);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  letter-spacing: .01em;
}
.ticker .dot { color: var(--cobre); font-size: 10px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding: 110px 0; }
.section-dark { background: var(--negro); color: var(--crema-soft); }

.kicker {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cobre);
  margin: 0 0 14px;
}
.kicker-light { color: var(--cobre); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--burgundy);
  max-width: 720px;
}
.section-title.light { color: var(--crema); }

.section-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  max-width: 620px;
  margin: 0 0 56px;
}
.section-dark .section-lead { color: rgba(244,234,222,.75); }

/* ==========================================================================
   Pillars / Servicios
   ========================================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.pillar-card {
  background: #fff;
  border: 1px solid rgba(37,37,37,.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}
.pillar-card:hover { transform: translateY(-6px); }

.pillar-icon {
  color: var(--cobre);
  font-size: 20px;
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 12px;
}

.pillar-card p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* ==========================================================================
   Formatos de Servicio
   ========================================================================== */
.section-alt { background: var(--crema); }

.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.format-card {
  background: #fff;
  border: 1px solid rgba(102,0,56,.1);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.format-card-wide { grid-column: span 1; }

.format-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(178,121,69,.1);
  color: var(--cobre);
  margin-bottom: 18px;
}
.format-icon svg { width: 22px; height: 22px; }

.format-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 10px;
  line-height: 1.25;
}
.format-card h3 span { font-size: 15px; font-weight: 400; color: #6b6b6b; display: block; }

.format-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}

.about-text p {
  font-size: 16.5px;
  line-height: 1.8;
  color: rgba(244,234,222,.85);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
}
.tag-list li {
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(178,121,69,.5);
  color: var(--cobre);
  border-radius: 999px;
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.5);
}
.about-media img:first-child { margin-top: 40px; }

.checklist-panel {
  margin-top: 70px;
  padding-top: 56px;
  border-top: 1px solid rgba(244,234,222,.15);
}
.checklist-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--crema);
  max-width: 640px;
  margin: 0 0 32px;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,234,222,.85);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--cobre);
  -webkit-mask: 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'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: 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'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(102,0,56,.35), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ==========================================================================
   Proceso
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
}
.process-timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(102,0,56,.25) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.process-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.process-icon svg { width: 20px; height: 20px; }
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--cobre);
  margin-bottom: 6px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 8px;
}
.process-step p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
}

/* ==========================================================================
   Empresas que confían
   ========================================================================== */
.clients-section { padding: 70px 0; }
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}
.client-logo {
  background: var(--oliva);
  border: 1px solid rgba(37,37,37,.08);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 150px;
  max-width: 220px;
  aspect-ratio: 1.4 / 1;
  transition: background var(--transition), transform var(--transition);
}
.client-logo:hover { background: #fff; transform: translateY(-3px); }
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: luminosity;
  transition: mix-blend-mode var(--transition);
}
.client-logo:hover img { mix-blend-mode: normal; }

/* ==========================================================================
   CTA / Contacto
   ========================================================================== */
.cta-section {
  position: relative;
  background: linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--crema);
  text-align: center;
  overflow: hidden;
}
.cta-isotype {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 480px;
  opacity: .12;
  transform: rotate(8deg);
}
.cta-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.cta-lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(244,234,222,.8);
  margin: 0 0 40px;
}

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(244,234,222,.3);
  border-radius: 999px;
  font-size: 14px;
  transition: background var(--transition), border-color var(--transition);
}
.contact-chip svg { width: 16px; height: 16px; }
.contact-chip:hover { background: rgba(244,234,222,.1); border-color: var(--crema); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--crema); border-top: 1px solid rgba(37,37,37,.08); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 48px 24px;
}
.footer-logo { height: 46px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--negro);
}
.footer-nav a:hover { color: var(--burgundy); }
.footer-socials { display: flex; gap: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(37,37,37,.08);
  padding: 20px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: #6b6b6b;
  text-align: center;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  z-index: 150;
  animation: floatpulse 2.6s ease-in-out infinite;
}
.float-whatsapp svg { width: 28px; height: 28px; }
@keyframes floatpulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); }
  50% { box-shadow: 0 12px 34px -4px rgba(37,211,102,.95); }
}

.float-call {
  position: fixed;
  bottom: 26px;
  right: 96px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--cobre);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(178,121,69,.65);
  z-index: 150;
  transition: transform var(--transition), background var(--transition);
}
.float-call:hover { background: #9c6636; transform: translateY(-3px); }
.float-call svg { width: 25px; height: 25px; }

/* ==========================================================================
   Mobile CTA bar (replaces floating circles on small screens so buttons
   never sit on top of page content — they reserve their own space)
   ========================================================================== */
.mobile-cta-bar { display: none; }

@media (max-width: 640px) {
  .float-call, .float-whatsapp { display: none; }

  body { padding-bottom: 62px; }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    box-shadow: 0 -8px 24px -4px rgba(37,37,37,.25);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .mobile-cta-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
  }
  .mobile-cta-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
  .mobile-cta-call { background: var(--cobre); }
  .mobile-cta-wa { background: #25D366; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,10,15,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 400;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--crema);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .pillars { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-media img:first-child { margin-top: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .process-timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .process-timeline::before { display: none; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--crema-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 24px 40px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.2);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; gap: 18px; }
  .main-nav a { font-size: 16px; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { justify-content: space-between; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .formats-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 140px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; justify-content: center; }
  .checklist { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; gap: 28px; }
}
