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

:root {
  --bg-primary: #0d0b1e;
  --bg-surface: #1a1730;
  --bg-card: #221f35;
  --primary: #e3156b;
  --primary-dark: #c0104f;
  --accent: #f472b6;
  --gold: #f7b731;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(227, 21, 107, 0.5);
  --glow: rgba(227, 21, 107, 0.15);
  --glow-strong: rgba(227, 21, 107, 0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ─────────────────────────────────────────── */
header {
  background: rgba(13, 11, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.nav-links.open li { padding: 0.625rem 0; border-bottom: 1px solid var(--border); }
.nav-links.open li:last-child { border-bottom: none; }
.nav-links.open a { font-size: 1rem; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 11, 30, 0.6) 0%,
    rgba(13, 11, 30, 0.75) 50%,
    var(--bg-primary) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  height: 52px;
  width: auto;
  background: #ffffff;
  padding: 8px 20px;
  border-radius: 10px;
}

.hero-badge {
  display: inline-block;
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: var(--accent);
  padding: 0.4rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.hero-title {
  color: var(--text-primary);
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* word spans for GSAP split animation */
.hero-title .word {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.hero-title .word-inner {
  display: inline-block;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-strong);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── SECTIONS ────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

/* ── EVENTO ──────────────────────────────────────── */
.evento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.evento-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.evento-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.evento-images {}

.evento-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.evento-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.evento-img--large {
  grid-column: 1 / -1;
  height: 240px;
}

/* ── SERVICES ────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--glow);
  border-color: var(--border-hover);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ── AGENDA ──────────────────────────────────────── */
.agenda-list {
  max-width: 700px;
  margin: 0 auto;
}

.agenda-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.agenda-item::before {
  content: '';
  position: absolute;
  left: 3.25rem;
  top: 3rem;
  bottom: -2rem;
  width: 2px;
  background: var(--border);
}

.agenda-item:last-child::before { display: none; }

.agenda-time {
  flex-shrink: 0;
  width: 6rem;
  text-align: right;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  padding-top: 0.25rem;
}

.agenda-dot {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(227, 21, 107, 0.2);
}

.agenda-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.agenda-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── CONTACT ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-detail .icon { font-size: 1.25rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

#form-message {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  display: none;
}

#form-message.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  display: block;
}

#form-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  display: block;
}

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo { height: 32px; width: auto; margin-bottom: 0.75rem; }

.footer p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── GSAP INITIAL STATES ─────────────────────────── */
/* Elements start invisible; GSAP animates them in. */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .evento-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .evento-img { height: 220px; }
  .evento-img--large { height: 280px; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1440px) {
  .container { max-width: 1200px; }
  .hero-title { font-size: 3.5rem; }
}

/* ── ACCESSIBILITY: prefers-reduced-motion ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-title .word-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-badge,
  .hero-subtitle,
  .hero-logo,
  .hero-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
