/*
Theme Name: El Gabli
Author: Karim
Description: Tema premium para El Gabli - Diseno Web y Estrategia Digital
Version: 1.9
*/

:root {
  --primary: #0F172A;
  --secondary: #3B82F6;
  --accent: #F59E0B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.15);
  --whatsapp: #22C55E;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--primary);
  color: var(--text-main);
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.navbar.scrolled {
  padding: 14px 48px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -1.5px;
}

.navbar__logo-dot {
  width: 8px; height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--secondary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__link:hover {
  color: var(--text-main);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.45);
}

.navbar__cta svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.navbar__mobile {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.navbar__mobile.open {
  right: 0;
}

.navbar__mobile a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar__mobile a:hover {
  color: var(--text-main);
}

.navbar__mobile .navbar__cta {
  font-size: 18px;
  padding: 14px 32px;
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .navbar.scrolled { padding: 12px 24px; }
  .navbar__links,
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

.hero__bg-radial-1 {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59, 130, 246, 0.12), transparent 60%);
  pointer-events: none;
}

.hero__bg-radial-2 {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 60% 50% at 80% 60%, rgba(245, 158, 11, 0.06), transparent 50%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* Particles */
.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.3;
  pointer-events: none;
}

/* Hero Inner */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  padding: 140px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Left Column */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 8px 18px 8px 14px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  width: fit-content;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.08;
  color: var(--text-main);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__title-gradient {
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.5);
}

.hero__btn-primary svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 14px;
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__btn-secondary:hover {
  border-color: var(--secondary);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
}

.hero__btn-secondary svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--text-muted);
}

.hero__btn-secondary:hover svg {
  stroke: var(--secondary);
}

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 28px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.hero__stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.hero__stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Right Column - Mockup */
.hero__mockup-wrapper {
  perspective: 1200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero__mockup-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.3; }
}

.hero__mockup-desktop {
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, #1E293B, #0F172A);
  border-radius: 16px;
  padding: 8px 8px 0;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
  transform: rotateY(-8deg) rotateX(5deg);
  animation: mockup-float 6s ease-in-out infinite;
  overflow: hidden;
}

@keyframes mockup-float {
  0%, 100% { transform: rotateY(-8deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(5deg) translateY(-12px); }
}

.hero__mockup-desktop-header {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
}

.hero__mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.hero__mockup-dot--red { background: #EF4444; }
.hero__mockup-dot--yellow { background: #F59E0B; }
.hero__mockup-dot--green { background: #22C55E; }

.hero__mockup-desktop-screen {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 0 0 12px 12px;
}

.hero__mockup-desktop-screen .mockup-brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
}

.hero__mockup-desktop-screen .mockup-tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__mockup-desktop-screen .mockup-btn {
  margin-top: 10px;
  padding: 8px 20px;
  background: var(--secondary);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.hero__mockup-mobile {
  position: absolute;
  bottom: -10px;
  right: -20px;
  width: 140px;
  background: #0F172A;
  border-radius: 20px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  animation: mockup-float-mobile 5s ease-in-out 0.5s infinite;
}

@keyframes mockup-float-mobile {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__mockup-mobile-notch {
  width: 50px; height: 4px;
  background: #334155;
  border-radius: 99px;
  margin: 6px auto;
}

.hero__mockup-mobile-screen {
  height: 260px;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}

.hero__mockup-mobile-screen .mockup-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.hero__mockup-mobile-screen .mockup-tagline {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
}

.hero__mockup-mobile-screen .mockup-btn {
  padding: 6px 14px;
  background: var(--secondary);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 0.8s ease-out 1.5s both;
  z-index: 2;
}

.hero__scroll-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--secondary), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ BENEFITS (Por que elegirme) ============ */
.benefits {
  background: #F1F5F9;
  padding: 120px 48px;
}

.benefits__container {
  max-width: 1200px;
  margin: 0 auto;
}

.benefits__header {
  text-align: center;
  margin-bottom: 64px;
}

.benefits__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 16px;
}

.benefits__title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -1.5px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.15;
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.benefits__card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(40px);
}

.benefits__card.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.benefits__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.benefits__card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefits__card:hover .benefits__card-icon {
  transform: scale(1.1);
}

.benefits__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #0F172A;
  margin-top: 24px;
  line-height: 1.3;
}

.benefits__card-desc {
  font-size: 15px;
  font-weight: 400;
  color: #64748B;
  line-height: 1.7;
  margin-top: 12px;
}

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

@media (max-width: 768px) {
  .benefits {
    padding: 80px 24px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .benefits__card {
    padding: 32px;
  }

  .benefits__card-icon {
    width: 48px;
    height: 48px;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 120px;
  }

  .hero__content {
    align-items: center;
  }

  .hero__badge {
    margin: 0 auto;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__mockup-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__mockup-mobile {
    width: 110px;
    bottom: -5px;
    right: -10px;
  }

  .hero__mockup-desktop {
    transform: rotateY(-6deg) rotateX(3deg);
  }

  @keyframes mockup-float {
    0%, 100% { transform: rotateY(-6deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-10px); }
  }
}

@media (max-width: 768px) {
  .hero__inner {
    padding: 120px 24px 60px;
    gap: 50px;
  }

  .hero__title {
    letter-spacing: -1.5px;
  }

  .hero__ctas {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero__btn-primary,
  .hero__btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-number {
    font-size: 24px;
  }

  .hero__mockup-desktop {
    transform: rotateY(-4deg) rotateX(3deg);
  }

  @keyframes mockup-float {
    0%, 100% { transform: rotateY(-4deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(-4deg) rotateX(3deg) translateY(-6px); }
  }

  .hero__mockup-mobile {
    width: 100px;
  }

  .hero__scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ============ ABOUT (Quien soy) ============ */
.about {
  background: #0F172A;
  padding: 140px 48px;
  overflow: hidden;
}

.about__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__col--photo {
  position: relative;
}

.about__photo-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.about__photo-wrapper:hover {
  transform: rotate(-2deg) scale(1.02);
}

.about__photo-binary {
  width: 100%;
  height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: center;
  word-break: break-all;
  padding: 20px;
  position: relative;
}

.about__photo-binary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.4) 0%, transparent 30%, transparent 70%, rgba(15,23,42,0.4) 100%);
  pointer-events: none;
}

.about__binary-row {
  display: block;
  white-space: nowrap;
}

.about__binary-char {
  transition: color 0.3s ease;
}

.about__binary-char.dim {
  color: rgba(59, 130, 246, 0.15);
}

.about__binary-char.mid {
  color: rgba(59, 130, 246, 0.45);
}

.about__binary-char.bright {
  color: rgba(59, 130, 246, 0.8);
  text-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.about__photo-wrapper:hover .about__binary-char.dim {
  color: rgba(59, 130, 246, 0.25);
}

.about__photo-wrapper:hover .about__binary-char.mid {
  color: rgba(59, 130, 246, 0.6);
}

.about__photo-wrapper:hover .about__binary-char.bright {
  color: rgba(59, 130, 246, 1);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.about__photo-deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.about__photo-deco--sq {
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transform: rotate(45deg);
  animation: about-float-sq 4s ease-in-out infinite;
}

.about__photo-deco--circle {
  bottom: -15px;
  right: -15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  animation: about-float-circle 4s ease-in-out infinite;
}

@keyframes about-float-sq {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-5px); }
}

@keyframes about-float-circle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.about__badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__badge-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.about__badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.about__col--text {
  display: flex;
  flex-direction: column;
}

.about__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 0;
}

.about__text {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 24px;
}

.about__signature {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 28px;
}

.about__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid var(--secondary);
  margin-top: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.about__cta:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  border-color: #60A5FA;
}

.about__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* About animations */
.about__label,
.about__title,
.about__text,
.about__signature,
.about__cta {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.about__label.reveal.revealed,
.about__title.reveal.revealed,
.about__text.reveal.revealed,
.about__signature.reveal.revealed,
.about__cta.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.about__photo-wrapper,
.about__badge {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.about__photo-wrapper.reveal.revealed,
.about__badge.reveal.revealed {
  opacity: 1;
  transform: rotate(-2deg) translateX(0);
}

.about__photo-wrapper.reveal.revealed {
  transform: rotate(-2deg);
}

.about__badge.reveal.revealed {
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .about {
    padding: 100px 32px;
  }

  .about__container {
    gap: 48px;
  }

  .about__photo {
    height: 420px;
  }

  .about__title {
    font-size: clamp(28px, 3.5vw, 40px);
  }

  .about__badge {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 80px 24px;
  }

  .about__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__col--text {
    order: -1;
  }

  .about__photo-wrapper {
    transform: rotate(0deg);
    max-width: 400px;
    margin: 0 auto;
  }

  .about__photo-wrapper:hover {
    transform: scale(1.02);
  }

  .about__photo-binary {
    height: 400px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .about__title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .about__text {
    font-size: 16px;
  }

  .about__badge {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 60px 20px;
  }

  .about__badge {
    padding: 12px 18px;
  }

  .about__badge-num {
    font-size: 24px;
  }
}

/* ============ SECTORES ============ */
.sectors {
  padding: 100px 48px;
  background: var(--primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sectors__container {
  max-width: 1280px;
  margin: 0 auto;
}

.sectors__header {
  text-align: center;
  margin-bottom: 64px;
}

.sectors__label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  display: block;
  margin-bottom: 12px;
}

.sectors__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
}

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

.sectors__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.sectors__item:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
}

.sectors__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.1);
  border-radius: 14px;
  flex-shrink: 0;
  color: var(--secondary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sectors__item:hover .sectors__icon {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.sectors__item svg {
  width: 24px;
  height: 24px;
}

.sectors__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

@media (max-width: 900px) {
  .sectors__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sectors {
    padding: 80px 24px;
  }
  .sectors__header {
    margin-bottom: 48px;
  }
}

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

/* ============ SERVICIOS ============ */
.services {
  padding: 100px 48px;
  background: #F1F5F9;
}

.services__container {
  max-width: 1280px;
  margin: 0 auto;
}

.services__header {
  text-align: center;
  margin-bottom: 64px;
}

.services__label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  display: block;
  margin-bottom: 12px;
}

.services__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
}

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

.services__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
  border-color: var(--secondary);
}

.services__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.1);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--secondary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.services__card:hover .services__card-icon {
  background: var(--secondary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.services__card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.services__card-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 20px;
}

.services__card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.services__card-link:hover {
  color: var(--primary);
  gap: 6px;
}

@media (max-width: 768px) {
  .services {
    padding: 80px 24px;
  }
  .services__header {
    margin-bottom: 48px;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .services__card {
    padding: 24px;
  }
}

/* ============ PACK DIGITAL 360 ============ */
.pack {
  padding: 100px 48px;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  position: relative;
  overflow: hidden;
}

.pack::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.pack__container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pack__header {
  text-align: center;
  margin-bottom: 64px;
}

.pack__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.pack__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.pack__steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  position: relative;
}

.pack__steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: rgba(255,255,255,0.15);
}

@media (max-width: 900px) {
  .pack__steps::before {
    display: none;
  }
}

.pack__step {
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pack__step-num {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  margin-bottom: 24px;
  position: relative;
  background: rgba(255,255,255,0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pack__step:hover .pack__step-num {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
  transform: scale(1.08);
}

.pack__step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.pack__step-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.pack__cta {
  text-align: center;
  margin-top: 64px;
}

.pack__btn {
  display: inline-flex;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  background: #fff;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  letter-spacing: -0.3px;
}

.pack__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  .pack__steps {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  .pack__step {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .pack {
    padding: 80px 24px;
  }
  .pack__header {
    margin-bottom: 48px;
  }
  .pack__cta {
    margin-top: 48px;
  }
}

/* ============ CTA INTERMEDIO ============ */
.cta-section {
  padding: 80px 48px;
  background: var(--primary);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section__container {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section__sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: cta-pulse 2s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 16px rgba(34,197,94,0); }
}

.cta-section__btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(34,197,94,0.35);
  animation: none;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 64px 24px;
  }
}

/* ============ BLOG PREVIEW ============ */
.blog-preview {
  padding: 100px 48px;
  background: #F1F5F9;
}

.blog-preview__container {
  max-width: 1280px;
  margin: 0 auto;
}

.blog-preview__header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-preview__label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--secondary);
  display: block;
  margin-bottom: 12px;
}

.blog-preview__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
}

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

.blog-preview__card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-preview__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

.blog-preview__card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-preview__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-preview__card:hover .blog-preview__card-img {
  transform: scale(1.08);
}

.blog-preview__card-body {
  padding: 24px;
}

.blog-preview__card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.blog-preview__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: all 0.3s ease;
}

.blog-preview__card:hover .blog-preview__card-title {
  color: var(--secondary);
}

.blog-preview__card-date {
  font-size: 13px;
  color: #94A3B8;
}

@media (max-width: 900px) {
  .blog-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-preview {
    padding: 80px 24px;
  }
  .blog-preview__header {
    margin-bottom: 48px;
  }
  .blog-preview__grid {
    grid-template-columns: 1fr;
  }
}

/* ============ CONTACTO ============ */
.contact {
  padding: 100px 48px;
  background: var(--primary);
  border-top: 1px solid var(--border);
}

.contact__container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.contact__sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact__input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__input:focus {
  border-color: var(--secondary);
  background: rgba(59,130,246,0.06);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.contact__input::placeholder {
  color: rgba(148,163,184,0.5);
}

.contact__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox */
.contact__field--checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0;
}

.contact__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  user-select: none;
}

.contact__checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.contact__checkbox-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 1px;
}

.contact__checkbox:focus-visible + .contact__checkbox-mark {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.contact__checkbox:checked + .contact__checkbox-mark {
  background: var(--secondary);
  border-color: var(--secondary);
}

.contact__checkbox-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__checkbox:checked + .contact__checkbox-mark::after {
  transform: rotate(45deg) scale(1);
}

.contact__checkbox-text a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__checkbox-text a:hover {
  color: #60A5FA;
}

.contact__btn {
  align-self: flex-start;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--secondary);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.35);
}

.contact__info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact__info-card svg {
  color: var(--whatsapp);
  flex-shrink: 0;
}

.contact__info-card:hover {
  background: rgba(34,197,94,0.08);
  border-color: var(--whatsapp);
  transform: translateX(4px);
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  color: var(--text-muted);
  font-size: 15px;
}

.contact__info-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__info-col {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact {
    padding: 80px 24px;
  }
}

/* ============ FOOTER ============ */
.footer {
  padding: 60px 48px 32px;
  background: #020617;
  border-top: 1px solid var(--border);
}

.footer__container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.footer__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-decoration: none;
}

.footer__logo span {
  color: var(--secondary);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  color: var(--text-muted);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__social-link:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-3px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--text-main);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  font-size: 13px;
}

.footer__legal-links {
  display: flex;
  gap: 20px;
}

.footer__legal-links a,
.footer__legal-email a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__legal-links a:hover,
.footer__legal-email a:hover {
  color: var(--text-main);
}

.footer__legal-email a {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 24px 24px;
  }
  .footer__top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer__legal {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer__legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============ WHATSAPP FLOTANTE ============ */
.whatsapp-float {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(34,197,94,0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    display: flex;
  }
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-0 { transition-delay: 0ms !important; }
.reveal-delay-1 { transition-delay: 100ms !important; }
.reveal-delay-2 { transition-delay: 200ms !important; }
.reveal-delay-3 { transition-delay: 300ms !important; }
.reveal-delay-4 { transition-delay: 400ms !important; }
.reveal-delay-5 { transition-delay: 500ms !important; }
.reveal-delay-6 { transition-delay: 600ms !important; }
.reveal-delay-7 { transition-delay: 700ms !important; }
.reveal-delay-8 { transition-delay: 800ms !important; }

/* ============ BLOG ARCHIVE ============ */
.blog-archive {
  padding-top: 100px;
  background: #F1F5F9;
  min-height: 100vh;
}

.blog-archive__header {
  background: var(--primary);
  padding: 120px 48px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-archive__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.blog-archive__subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

.blog-archive__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 100px;
}

.blog-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-archive__card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-archive__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

.blog-archive__card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-archive__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-archive__card:hover .blog-archive__card-img {
  transform: scale(1.08);
}

.blog-archive__card-body {
  padding: 24px;
}

.blog-archive__card-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.blog-archive__card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-archive__card:hover .blog-archive__card-title {
  color: var(--secondary);
}

.blog-archive__card-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-archive__card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-archive__card-date {
  font-size: 13px;
  color: #94A3B8;
}

.blog-archive__card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  transition: gap 0.3s ease;
}

.blog-archive__card:hover .blog-archive__card-read {
  gap: 6px;
}

.blog-archive__pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.blog-archive__pagination a,
.blog-archive__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-archive__pagination a {
  color: var(--primary);
  background: #fff;
  border: 1px solid #e2e8f0;
}

.blog-archive__pagination a:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.blog-archive__pagination .current {
  background: var(--secondary);
  color: #fff;
  border: 1px solid var(--secondary);
}

.blog-archive__empty {
  text-align: center;
  font-size: 18px;
  color: #94A3B8;
  padding: 80px 0;
}

@media (max-width: 1024px) {
  .blog-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-archive__header {
    padding: 100px 24px 60px;
  }
  .blog-archive__container {
    padding: 48px 24px 80px;
  }
  .blog-archive__grid {
    grid-template-columns: 1fr;
  }
}

/* ============ SINGLE POST & PAGE ============ */
.single-post {
  padding-top: 40px;
}

.single-post__hero {
  position: relative;
  width: 100%;
  height: clamp(400px, 65vh, 700px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.single-post__hero--simple {
  height: clamp(250px, 35vh, 400px);
  background: var(--primary);
  background-image: none !important;
}

.single-post__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.85) 100%);
}

.single-post__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 48px;
  width: 100%;
  margin: 0 auto;
}

.single-post__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}

.single-post__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.single-post__meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.single-post__main {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  padding: 0 24px;
}

.single-post__body {
  flex: 1;
  min-width: 0;
}

.single-post__content {
  padding: 48px 0 40px;
  background: var(--primary);
  color: var(--text-main);
  line-height: 1.8;
}

.single-post__content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.single-post__content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin: 48px 0 16px;
  letter-spacing: -0.5px;
}

.single-post__content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 12px;
}

.single-post__content ul,
.single-post__content ol {
  margin: 0 0 24px 24px;
  line-height: 1.8;
  font-size: 17px;
}

.single-post__content li {
  margin-bottom: 10px;
}

.single-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 40px 0;
}

.single-post__content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 20px 28px;
  margin: 40px 0;
  background: rgba(59,130,246,0.08);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--text-muted);
}

.single-post__content a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.single-post__content a:hover {
  color: #60A5FA;
}

.single-post__content .wp-block-code,
.single-post__content code,
.single-post__content pre {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 15px;
  color: var(--text-main);
}

.single-post__content pre {
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.single-post__footer {
  padding: 32px 0 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.single-post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-post__back:hover {
  color: var(--secondary);
}

.single-post__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post__share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.3);
}

/* Sidebar */
.single-post__sidebar {
  width: 300px;
  flex-shrink: 0;
  padding-top: 48px;
  position: sticky;
  top: 100px;
  bottom: 15px;
  align-self: flex-start;
  max-height: calc(100vh - 115px);
  overflow-y: auto;
}

.single-post__sidebar::-webkit-scrollbar {
  width: 4px;
}

.single-post__sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.single-post__sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.single-post__related {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post__related:last-child {
  border-bottom: none;
}

.single-post__related:hover {
  padding-left: 8px;
}

.single-post__related-img-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.single-post__related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post__related-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.single-post__related-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
}

.single-post__related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.single-post__related:hover .single-post__related-title {
  color: var(--secondary);
}

/* Share section in sidebar */
.single-post__share-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.single-post__share-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.single-post__share-links {
  display: flex;
  gap: 8px;
}

.single-post__share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-post__share-link--wa {
  color: #fff;
  background: #22C55E;
}

.single-post__share-link--wa:hover {
  background: #16A34A;
  transform: translateY(-3px);
}

.single-post__share-link--fb {
  color: #fff;
  background: #1877F2;
}

.single-post__share-link--fb:hover {
  background: #165DE0;
  transform: translateY(-3px);
}

.single-post__share-link--tw {
  color: #fff;
  background: #0F1419;
}

.single-post__share-link--tw:hover {
  background: #1D9BF0;
  transform: translateY(-3px);
}

.single-post__sidebar-spacer {
  height: 24px;
}

@media (max-width: 900px) {
  .single-post__main {
    flex-direction: column;
    gap: 0;
  }
  .single-post__sidebar {
    width: 100%;
    padding-top: 0;
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .single-post__hero-content {
    padding: 24px;
  }
  .single-post__content {
    padding: 32px 0 40px;
  }
  .single-post__content p {
    font-size: 16px;
  }
  .single-post__footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ============ MANTENIMIENTO SUMMARY ============ */
.mant-summary {
  padding: 100px 48px;
  background: var(--primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mant-summary__container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mant-summary__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  display: block;
  margin-bottom: 12px;
}

.mant-summary__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.mant-summary__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mant-summary__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.mant-summary__features li {
  font-size: 15px;
  color: var(--text-main);
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.mant-summary__features li:last-child {
  border-bottom: none;
}

.mant-summary__features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  transform: rotate(45deg);
}

.mant-summary__cta {
  display: inline-flex;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--secondary);
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mant-summary__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.35);
}

.mant-summary__visual {
  display: flex;
  justify-content: center;
}

.mant-summary__card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.mant-summary__card-header {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}

.mant-summary__card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mant-summary__card-dot--red { background: #EF4444; }
.mant-summary__card-dot--yellow { background: #F59E0B; }
.mant-summary__card-dot--green { background: #22C55E; }

.mant-summary__card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mant-summary__card-line {
  height: 12px;
  border-radius: 6px;
}

.mant-summary__card-line--w { background: rgba(59,130,246,0.12); width: 90%; }
.mant-summary__card-line--s { background: rgba(59,130,246,0.08); width: 75%; }

@media (max-width: 900px) {
  .mant-summary__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mant-summary__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .mant-summary {
    padding: 80px 24px;
  }
}

/* ============ SERVICIO TEMPLATE ============ */
.servicio {
  padding-top: 80px;
}

.servicio__hero {
  position: relative;
  padding: 100px 48px 80px;
  text-align: center;
  overflow: hidden;
}

.servicio__hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
  pointer-events: none;
}

.servicio__hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233B82F6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.servicio__hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.servicio__hero-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  display: block;
  margin-bottom: 16px;
}

.servicio__hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.servicio__hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.servicio__hero-cta {
  display: inline-flex;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--secondary);
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

.servicio__hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.4);
}

.servicio__content {
  max-width: 850px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  background: var(--primary);
  color: var(--text-main);
  line-height: 1.8;
}

.servicio__content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  margin: 48px 0 16px;
  letter-spacing: -0.5px;
}

.servicio__content h2:first-child {
  margin-top: 0;
}

.servicio__content p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.servicio__content ul {
  margin: 0 0 24px 24px;
  line-height: 1.8;
  font-size: 17px;
  list-style: none;
  padding: 0;
}

.servicio__content ul li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.servicio__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 2px;
  transform: rotate(45deg);
}

.servicio__content strong {
  color: var(--secondary);
}

.servicio__cta {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 64px 24px 80px;
  text-align: center;
}

.servicio__cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.servicio__cta-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.servicio__cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.servicio__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(34,197,94,0.3);
}

.servicio__cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(34,197,94,0.4);
}

@media (max-width: 768px) {
  .servicio {
    padding-top: 60px;
  }
  .servicio__hero {
    padding: 80px 24px 60px;
  }
  .servicio__content {
    padding: 48px 20px 60px;
  }
  .servicio__content p {
    font-size: 16px;
  }
  .servicio__cta {
    padding: 48px 20px 60px;
  }
}
