:root {
  --purple-900: #3b0764;
  --purple-800: #4c1d95;
  --purple-700: #5b21b6;
  --purple-600: #7c3aed;
  --purple-500: #9333ea;
  --purple-100: #f1e9fb;
  --purple-50: #f8f5fc;
  --lilac: #c4b5fd;
  --ink: #241a33;
  --ink-soft: #5c5468;
  --cream: #fffdfb;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(76, 29, 149, 0.12);
  --shadow-lg: 0 20px 50px rgba(59, 7, 100, 0.25);
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--purple-900);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { line-height: 1.65; color: var(--ink-soft); margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--purple-700);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--purple-600); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-ghost {
  background: transparent;
  color: var(--purple-800);
  border-color: var(--purple-300, var(--lilac));
}
.btn-ghost:hover { background: var(--purple-100); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-900);
  margin-right: auto;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-900));
  color: #fff;
}
.brand-name {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--purple-700); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--purple-900);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(59,7,100,0.55) 0%, rgba(59,7,100,0.75) 55%, rgba(36,26,51,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 90px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lilac);
  margin-bottom: 14px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  max-width: 820px;
  margin-bottom: 20px;
}
.hero-lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0;
  max-width: 780px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 28px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: 'Poppins', sans-serif; font-size: 1.02rem; }
.hero-stats span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--purple-50); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-600);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 720px;
}
.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(124,58,237,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-100), var(--lilac));
  color: var(--purple-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.94rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--purple-100);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(59,7,100,0.85));
  text-align: left;
}

.cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius);
}
.cta-inline p { margin: 0; color: #fff; font-weight: 500; font-size: 1.05rem; }

/* Split sections */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.split-grid:last-child { margin-bottom: 0; }
.split-grid.reverse .split-photo { order: 2; }
.split-grid.reverse .split-text { order: 1; }
.split-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.split-text h3 { font-size: 1.5rem; }
.split-text p { font-size: 1rem; }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}
.location-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.location-info h3 { font-size: 1.3rem; margin-bottom: 4px; }
.location-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--ink);
}
.location-address svg { flex-shrink: 0; margin-top: 3px; color: var(--purple-600); }
.location-info .btn { align-self: flex-start; }
.text-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-700);
}
.text-link:hover { text-decoration: underline; }
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

/* Empresas */
.empresas {
  background: linear-gradient(135deg, var(--purple-100), var(--cream));
}
.empresas-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  background: #fff;
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(124,58,237,0.1);
}
.empresas-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empresas-text h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 12px;
}
.empresas-text p:last-of-type {
  margin-bottom: 24px;
}

/* CTA final */
.cta-final {
  background: radial-gradient(circle at top left, var(--purple-600), var(--purple-900) 70%);
  color: #fff;
  text-align: center;
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-final h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 640px; }
.cta-final p { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 20px; }

/* Footer */
.site-footer {
  background: var(--purple-900);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-phone a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 0.82rem; margin-top: 12px; color: rgba(255,255,255,0.5); }
.footer-inner p { margin: 0; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(36,26,51,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 24px; }
  .split-grid.reverse .split-photo,
  .split-grid.reverse .split-text { order: initial; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map { min-height: 280px; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .empresas-inner { flex-direction: column; padding: 28px; }
}
