/* ========================================
   AKJ.CL — Main Stylesheet
   Fuentes: Syne (display) + DM Sans (body)
   Paleta: Azul marino profundo + Cian eléctrico
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- VARIABLES ---- */
:root {
  --navy: #0A1628;
  --navy-mid: #0D1F3C;
  --navy-light: #132347;
  --cyan: #00C8FF;
  --cyan-dim: #00a0cc;
  --cyan-glow: rgba(0,200,255,0.18);
  --white: #F4F8FF;
  --gray-light: #E8EEF7;
  --gray-mid: #94a3b8;
  --gray-dark: #4a5568;
  --accent: #FF6B35;
  --accent2: #7C3AED;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.28);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1200px;
}

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

/* ---- TIPOGRAFÍA ---- */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--gray-dark); }

/* ---- CONTENEDOR ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BOTONES ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}
.btn-primary:hover {
  background: #33d4ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,200,255,0.4);
}
.btn-outline {
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
}
.btn-outline:hover {
  background: var(--cyan);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

/* ---- HEADER / NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}
.navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.navbar.transparent {
  background: transparent;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.navbar-logo img {
  height: 52px;
  width: auto;
  filter: brightness(1) drop-shadow(0 0 8px rgba(0,200,255,0.3));
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white);
  transition: var(--transition);
  position: relative;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.3s;
}
.navbar-nav a:hover::after,
.navbar-nav a.active::after {
  width: calc(100% - 24px);
}
.navbar-nav a:hover { color: var(--cyan); }
.navbar-cta {
  background: var(--cyan);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
}
.navbar-cta:hover {
  background: #33d4ff;
  transform: translateY(-1px);
}
.navbar-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--cyan); }

/* ---- HERO GENÉRICO ---- */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.5) 100%);
  z-index: 1;
}
.page-hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 16px; }
.page-hero-content p { color: rgba(244,248,255,0.8); font-size: 1.1rem; max-width: 560px; }

/* ---- SECCIÓN GENÉRICA ---- */
.section {
  padding: 96px 0;
}
.section-dark {
  background: var(--navy);
}
.section-dark h2, .section-dark h3, .section-dark h1 { color: var(--white); }
.section-dark p { color: var(--gray-mid); }

.section-alt {
  background: var(--navy-mid);
}
.section-alt h2, .section-alt h3 { color: var(--white); }
.section-alt p { color: var(--gray-mid); }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ---- GRID 3 COLS ---- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: center;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- CARD ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-dark {
  background: var(--navy-light);
  border: 1px solid rgba(0,200,255,0.12);
}
.card-dark:hover {
  border-color: rgba(0,200,255,0.35);
  box-shadow: 0 12px 40px rgba(0,200,255,0.12);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(0,200,255,0.1);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo img { height: 56px; margin-bottom: 16px; }
.footer-desc { color: var(--gray-mid); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy-light);
  border: 1px solid rgba(0,200,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  transition: var(--transition);
  font-size: 1.1rem;
}
.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,200,255,0.08);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: var(--gray-mid);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); padding-left: 4px; }
.footer-col p { color: var(--gray-mid); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col .icon { display: inline-block; margin-right: 8px; color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  color: var(--gray-mid);
  font-size: 0.85rem;
}

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,0.65);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.8); }
}

/* ---- ANIMACIONES ---- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
}
