/* ═══════════════════════════════════════════════
   PÁSALO MX — Global Styles
   ═══════════════════════════════════════════════ */

:root {
  --blue: #5FB1FF;
  --blue-dark: #1a6fbf;
  --blue-deeper: #0d4a8a;
  --navy: #0a1628;
  --navy-light: #111d33;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --accent: #ff6b35;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: 'Inter', sans-serif; }

.section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10,22,40,.7);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(16px);
  padding: .6rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img {
  height: 70px;
  width: auto;
  filter: brightness(1.2);
}
.navbar.scrolled .navbar-logo img { height: 56px; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: .55rem 1.4rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: .85rem !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ─── HERO VIDEO SCROLL ─── */
.hero {
  position: relative;
  height: 300vh;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-wrap .hero-fallback {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,.7) 0%,
    rgba(10,22,40,.4) 50%,
    rgba(10,22,40,.6) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}
.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--blue), #93d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: float 2s ease-in-out infinite;
}
.hero-scroll-hint .arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,.5);
  border-bottom: 2px solid rgba(255,255,255,.5);
  transform: rotate(45deg);
}

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95,177,255,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--navy);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: .25rem;
}
.stat-item p {
  color: var(--gray-400);
  font-size: .9rem;
}

/* ─── SECTIONS ─── */
section { padding: 5rem 0; }
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}
.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-top: .75rem;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(95,177,255,.12), rgba(95,177,255,.05));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.service-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.service-card p { color: var(--gray-500); font-size: .92rem; }

/* ─── ABOUT / MISSION CARDS ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.about-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition);
}
.about-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}
.about-card h3 { margin-bottom: 1rem; }
.about-card p { color: var(--gray-500); }

/* ─── CTA BANNER ─── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,177,255,.08) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); margin-bottom: .75rem; }
.cta-section p { color: var(--gray-400); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-info-card h3 { margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(95,177,255,.15), rgba(95,177,255,.05));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-detail h4 { margin-bottom: .2rem; color: var(--navy); }
.contact-detail p { color: var(--gray-500); font-size: .92rem; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  transition: var(--transition);
  background: var(--gray-50);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(95,177,255,.15);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { margin-top: .75rem; font-size: .9rem; line-height: 1.7; }
.footer-brand img {
  height: 80px;
  filter: brightness(1.2);
}
.footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.footer ul li { margin-bottom: .5rem; }
.footer ul a {
  color: var(--gray-400);
  font-size: .9rem;
}
.footer ul a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
}
.footer-social a:hover {
  background: var(--blue);
  color: var(--white);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; left: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,177,255,.1) 0%, transparent 70%);
}
.page-header h1 { color: var(--white); margin-bottom: .5rem; }
.page-header p { color: var(--gray-400); font-size: 1.1rem; }
.page-header .breadcrumb {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--gray-500);
}
.page-header .breadcrumb a { color: var(--blue); }

/* ─── TIMELINE (nosotros) ─── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  padding-left: 60px;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item h4 { color: var(--blue); margin-bottom: .25rem; }
.timeline-item p { color: var(--gray-500); font-size: .95rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; }

  section { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { height: 250vh; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
