/* ===== Variables ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-bg-dark: #0d0d0d;
  --color-bg-dark-alt: #161616;
  --color-text: #1a1a1a;
  --color-text-light: #ffffff;
  --color-text-muted: #6b6b6b;
  --color-text-muted-light: #b3b3b3;
  --color-border: #e6e6e6;
  --color-border-dark: #2a2a2a;

  --accent-start: #1e6fd9;
  --accent-end: #2ec4b6;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));

  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  --radius: 10px;
  --max-width: 1180px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(30, 111, 217, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 111, 217, 0.35); }
.btn-outline {
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--color-bg-dark); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; }
.logo-fallback {
  display: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.logo-fallback em {
  font-style: normal;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 0.3em;
}
.main-nav { display: flex; gap: var(--space-lg); }
.main-nav a { font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--accent-start); }

.header-actions { display: flex; align-items: center; gap: var(--space-sm); }
.lang-btn {
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { border-color: var(--accent-start); color: var(--accent-start); }
.header-whatsapp { color: #25D366; display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.main-nav.open ~ .header-actions .nav-toggle span:nth-child(1),
.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); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.hero-inner { max-width: 900px; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-start);
  margin-bottom: var(--space-sm);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow-light { -webkit-text-fill-color: unset; background: none; color: #7fd6cc; }
.hero-hook {
  max-width: var(--max-width);
  margin: var(--space-lg) auto var(--space-sm);
  padding: 0 var(--space-md);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: var(--space-md); }
.hero-subtitle { font-size: 1.1rem; color: var(--color-text-muted-light); max-width: 100%; white-space: nowrap; margin-bottom: var(--space-lg); }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.photo-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  min-height: 160px;
}
.photo-box img,
.photo-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-box-hero {
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  height: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.photo-box-card { height: 140px; margin-bottom: var(--space-sm); }
.photo-box-gallery {
  height: 200px;
  margin: 0;
}
.photo-box-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

/* ===== Sections ===== */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: var(--color-text-light); }
.section-dark p:not(.section-subtitle) { color: var(--color-text-muted-light); }
.heading-light { color: var(--color-text-light); }

.section-heading { max-width: 640px; margin-bottom: var(--space-lg); }
.section-heading h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: var(--space-sm); }
.section-subtitle { color: var(--color-text-muted); }
.section-dark .section-subtitle { color: var(--color-text-muted-light); }

/* Split layout (Qué es) */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.split-text .eyebrow { margin-bottom: var(--space-sm); }
.split-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: var(--space-sm); }
.split-text p { color: var(--color-text-muted); margin-bottom: var(--space-md); }
.check-list-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-sm) !important;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
}
.split-visual { min-height: 320px; }

/* Card grids */
.card-grid { display: grid; gap: var(--space-md); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.benefit-card, .trust-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section-alt .benefit-card, .section-alt .trust-card { background: var(--color-bg); }
.benefit-card:hover, .trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
  border-color: transparent;
}
.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  background: var(--accent-gradient);
  color: #fff;
}
.icon-badge svg { width: 28px; height: 28px; }
.benefit-card h3, .trust-card h3, .application-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.benefit-card p, .trust-card p, .application-card p { color: var(--color-text-muted); font-size: 0.95rem; }

.application-card { text-align: left; }

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.timeline-step {
  border-top: 2px solid var(--color-border-dark);
  padding-top: var(--space-sm);
}
.timeline-icon {
  background: none;
  color: var(--accent-start);
  width: 40px;
  margin: 0 auto var(--space-sm);
}
.timeline-icon svg { width: 40px; height: 40px; }
.timeline-number {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.4rem;
}
.timeline-step h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.contact-form-wrap .eyebrow { margin-bottom: var(--space-sm); }
.contact-form-wrap h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: var(--space-sm); }
.contact-form-wrap .section-subtitle { margin-bottom: var(--space-lg); }

.form-row { margin-bottom: var(--space-md); }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-row input, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent-start);
}
.form-status { margin-top: var(--space-sm); font-weight: 500; font-size: 0.9rem; min-height: 1.2em; }
.form-status-success { color: #1b8a5a; }
.form-status-error { color: #c0392b; }

.contact-direct {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: var(--space-lg);
}
.contact-direct h3 { margin-bottom: var(--space-md); font-size: 1.2rem; }
.contact-direct .btn { width: 100%; margin-bottom: var(--space-md); }
.direct-list li { margin-bottom: 0.6rem; color: var(--color-text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-muted-light);
  padding: var(--space-lg) 0 var(--space-md);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-dark);
  margin-bottom: var(--space-md);
}
.logo-fallback-footer { display: inline-flex; color: #fff; margin-bottom: 0.6rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-legal { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.85rem; }
.footer-legal a:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .split-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .split-visual { min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .photo-box-hero { margin-top: var(--space-md); height: 260px; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
  .hero-subtitle { white-space: normal; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

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