/* ===== CSS VARIABLES ===== */
:root {
  --accent: #3452ff;
  --accent-dark: #1f35cc;
  --gold: #febb86;
  --dark: #333333;
  --darker: #0d0d0d;
  --white: #ffffff;
  --off-white: #f5f5f3;
  --gray-light: #e8e8e8;
  --gray-mid: #999999;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
  --radius: 4px;
  --shadow: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

.hidden { display: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 1rem;
  padding: 14px 40px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}
.btn-full { width: 100%; text-align: center; }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.05em;
  color: var(--darker);
  line-height: 1;
}
.section-header.light .section-label { color: var(--gold); }
.section-header.light .section-title { color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--accent);
  height: var(--nav-h);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(52, 82, 255, 0.3); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-img--footer {
  opacity: 0.75;
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--white);
}
.logo-text strong { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-social { display: flex; align-items: center; gap: 16px; }
.social-icon {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.social-icon:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.82) 0%, rgba(52,82,255,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 48px;
  max-width: 760px;
  animation: fadeUp 1s ease both;
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--darker);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
  animation: fadeUp 1s 0.1s ease both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  animation: fadeUp 1s 0.2s ease both;
}
.hero-accent { color: var(--gold); }
.hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  animation: fadeUp 1s 0.3s ease both;
}
.hero-content .btn { animation: fadeUp 1s 0.4s ease both; }
.hero-content .btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--darker);
}
.hero-content .btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  animation: fadeUp 1s 0.8s ease both;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--white);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--white);
  animation: scrollPulse 2s ease infinite;
}

/* ===== SERVICIOS / CARDS ===== */
.servicios {
  padding: 100px 0 80px;
  background: var(--off-white);
  overflow: hidden;
}

.cards-wrapper {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.cards-wrapper:active { cursor: grabbing; }
.cards-wrapper::-webkit-scrollbar { display: none; }

.cards-track {
  display: flex;
  gap: 24px;
  padding: 0 48px 24px;
  width: max-content;
}

.service-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.5) 0%, transparent 60%);
}

.card-body { padding: 28px; }
.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gray-light);
  line-height: 1;
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--darker);
  margin-bottom: 20px;
  line-height: 1.2;
}
.card-list { display: flex; flex-direction: column; gap: 10px; }
.card-list li {
  font-size: 0.85rem;
  color: var(--dark);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.cards-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  padding: 0 48px;
}
.card-arrow {
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.card-arrow:hover { background: var(--accent); color: var(--white); }
.cards-dots { display: flex; gap: 8px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-light);
  transition: var(--transition);
  cursor: pointer;
}
.dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ===== FAQs ===== */
.faqs {
  padding: 100px 0;
  background: var(--white);
}
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }

.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--darker);
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-question[aria-expanded="true"] { color: var(--accent); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer.open { max-height: 200px; }
.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-mid);
  padding-bottom: 24px;
}

/* ===== COUNTERS ===== */
.counters {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.counters-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.counters-bg img { width: 100%; height: 100%; object-fit: cover; }
.counters-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(52,82,255,0.92) 0%, rgba(13,13,13,0.9) 100%);
}
.counters .container { position: relative; z-index: 2; }
.counters-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.counter-item { text-align: center; padding: 40px 32px; }
.counter-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.counter-suffix { font-size: 0.7em; }
.counter-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.counter-divider {
  width: 1px;
  height: 80px;
  background: rgba(255,255,255,0.2);
}

/* ===== HEADLINE HERO ===== */
.headline-hero {
  padding: 100px 0;
  background: var(--darker);
  text-align: center;
}
.headline-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.03em;
}
.headline-accent { color: var(--gold); }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: var(--off-white);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.cta-content {
  background: var(--accent);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 8px;
}
.cta-sub {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.cta-content .btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--darker);
  align-self: flex-start;
}
.cta-content .btn-primary:hover {
  background: transparent;
  color: var(--gold);
}

/* ===== CONTACTO FORM ===== */
.contacto {
  padding: 100px 0;
  background: var(--white);
}
.form-wrap { max-width: 680px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--darker);
  background: var(--off-white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-mid); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,82,255,0.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { margin-top: 8px; font-size: 1rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--darker);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-mid);
}
.footer-social { display: flex; align-items: center; gap: 16px; }
.footer .social-icon { color: var(--gray-mid); }
.footer .social-icon:hover { color: var(--gold); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--darker);
  color: var(--white);
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--darker);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .counters-grid {
    grid-template-columns: 1fr;
  }
  .counter-divider { width: 80px; height: 1px; margin: 0 auto; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-img { height: 240px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--accent);
    padding: 24px;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-social { flex-direction: row; }

  .hero-content { padding: 0 24px; }
  .hero-scroll { right: 24px; }

  .cards-track { padding: 0 24px 24px; }
  .service-card { width: 290px; }

  .cta-content { padding: 40px 32px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 3rem; }
  .headline-text { font-size: 2.5rem; }
}
