/* ==========================================================================
   CSS Variables - Corporativo Parroquín (Modern Premium)
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

:root {
  /* Modern Palette */
  --bg-dark: #05070a;
  --accent-gold: #d4af37;
  --accent-gold-glow: rgba(212, 175, 55, 0.3);
  --text-bright: #ffffff;
  --text-dim: #a0a0a0;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* 2026 Typography System */
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Spacing */
  --section-padding: 100px;
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-bright);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  animation: pageFadeIn 1s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal on Scroll System */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

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

/* ==========================================================================
   Global Utilities
   ========================================================================== */
.c {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.st {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.ss {
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 1.1rem;
  max-width: 800px;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.card:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: var(--text-bright);
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.card-link:hover {
  letter-spacing: 1px;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left.active, .reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.btn-call-mobile {
  display: none;
}

/* ==========================================================================
   Navigation (Glassmorphism)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(5, 7, 10, 0.8);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s ease;
}

.navbar-scrolled {
  padding: 12px 0;
  background: rgba(5, 7, 10, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
}

.navbar-brand span {
  color: var(--accent-gold);
}

.navbar-nav {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.mobile-only {
  display: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 35px;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(5px);
}

.btn-call:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.btn-call svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.5px;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Hero Section (Premium Adaptation)
   ========================================================================== */
.hero, .inner-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark); /* Fallback to prevent image leaking */
}

/* Premium Border Divider */
.hero::after, .inner-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--glass-border), transparent);
  z-index: 3;
}

.hero {
  min-height: 85vh;
  padding: 180px 0 140px 0;
}

.inner-hero {
  padding: 180px 0 100px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100.5%; /* Slight overlap to ensure coverage */
  background: radial-gradient(circle at center, rgba(5, 7, 10, 0.75) 0%, rgba(5, 7, 10, 0.98) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  margin: 0 auto;
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-badge, .hero-tagline, .tag {
  animation: fadeIn 1.2s ease-out forwards;
}

/* Premium Hero Badge / Tag */
.hero-badge, .hero-tagline, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(5, 7, 10, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 40px;
  margin-bottom: 30px;
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: fit-content;
}

.hero-badge:hover, .tag:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.hero h1, .inner-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 25px;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  color: var(--text-bright);
}

.hero p, .inner-hero p {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 45px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}


.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: #f1c40f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--accent-gold-glow);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  margin-left: 15px;
}

.btn-outline:hover {
  background: var(--glass-bg);
}

/* ==========================================================================
   Trust Pillars (Redefined)
   ========================================================================== */
.trust-bar {
  padding: 80px 0;
  background: radial-gradient(circle at center, #0a111a 0%, var(--bg-dark) 100%);
}

.trust-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.trust-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.trust-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.trust-item:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.trust-item:hover::before {
  transform: translateX(100%);
}

.trust-item strong {
  display: block;
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.trust-item span {
  display: block;
  color: var(--text-bright);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.trust-item p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   Services Cards (Modern Grid)
   ========================================================================== */
.services-section {
  padding: var(--section-padding) 0;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 12px;
  transition: 0.4s;
}

.service-card:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
}

/* ==========================================================================
   Split Grid & Features
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-text {
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-text:last-child {
  margin-bottom: 0;
}
.contact-section {
  padding: var(--section-padding) 0;
  background: #080a0f;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.contact-form {
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.form-group {
  margin-bottom: 20px;
}

input, select, textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-bright);
  border-radius: 8px;
  outline: none;
}

input:focus {
  border-color: var(--accent-gold);
}

/* ==========================================================================
   Mobile Menu & Responsive Refinement
   ========================================================================== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  color: var(--text-bright);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

  .navbar-brand {
    margin-left: 10px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-right {
    gap: 15px;
  }

  .btn-call {
    padding: 10px 18px;
    font-size: 0.8rem;
  }

  .btn-call span {
    display: none; /* Hide text on very small screens if needed, but for now we keep it */
  }

  /* Mobile Navbar Overlay */
  .navbar-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 7, 10, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    align-items: center;
    gap: 35px;
    transform: translateX(100%);
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1050;
    overflow-y: auto;
  }

  .navbar-nav.active {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
  }

  /* Hide header call button on mobile */
  .navbar .btn-call {
    display: none;
  }

  /* Show mobile-only elements */
  .mobile-only {
    display: flex !important;
    justify-content: center;
    width: 100%;
  }

  .menu-logo-item {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  .mobile-menu-logo {
    height: 60px;
    filter: brightness(0) invert(1); /* Make logo white */
  }

  .mobile-only.menu-divider {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 35px;
    margin-top: 10px !important;
  }

  .split-grid {
    grid-template-columns: 1fr;
    gap: 120px;
    text-align: center;
  }

  .split-grid .tag {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  /* ---- Services Grid: full-width cards ---- */
  .g3 {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: visible;
  }

  .g3 .card {
    padding: 28px 24px;
    grid-column: auto !important;
    display: flex;
    flex-direction: column;
  }

  .g3 .card .tag {
    font-size: 0.65rem;
    margin-bottom: 14px;
  }

  .g3 .card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .g3 .card p {
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
  }

  .g3 .card .card-link {
    font-size: 0.85rem;
    margin-top: 16px;
  }

  /* ---- Other cards ---- */
  .card {
    padding: 28px 24px;
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .card .tag {
    font-size: 0.65rem;
    margin-bottom: 14px;
  }

  .card-link {
    font-size: 0.85rem;
    margin-top: 16px;
  }

  .split-grid .g2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }


  /* Body lock when menu open */
  .btn-call-mobile {
    display: flex !important;
    margin-top: 40px;
    width: fit-content;
    padding: 10px 28px;
    font-size: 0.8rem;
  }

  /* Body lock when menu open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Remove the old 480px btn-call override as it's now hidden in header */
@media (max-width: 480px) {
  .nav-right {
    gap: 10px;
  }
}

/* ==========================================================================
   Premium Footer
   ========================================================================== */
footer {
  padding: 80px 0 40px;
  background: linear-gradient(to bottom, #0a111a, #05070a);
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-contact-item span {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.footer-bottom a {
  color: var(--accent-gold);
  text-decoration: none;
  margin-left: 15px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact-item {
    justify-content: center;
  }
}

/* ==========================================================================
   Form: Honeypot, Feedback & Loading States
   ========================================================================== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.form-feedback {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
  line-height: 1.4;
}

.form-feedback--success {
  display: block;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.form-feedback--error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.submit-btn.btn-loading {
  pointer-events: none;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none !important;
  box-shadow: none !important;
}

