/* =========================================
   VARIABLES & TOKENS
   ========================================= */
:root {
  --color-bg: #040d1a;
  /* Deep dark background */
  --color-surface: #0b1f3a;
  /* Navy blue surface */
  --color-surface-hover: #132b4b;
  /* Lighter navy for hover */
  --color-primary: #00a3ff;
  /* Electric blue accent */
  --color-primary-hover: #008be5;
  --color-text: #f0f4f8;
  /* White/gray text */
  --color-text-muted: #94a3b8;
  /* Muted gray text */

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

  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 24px;

  --transition: all 0.3s ease;

  /* Container sizes */
  --max-width: 1200px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);

}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*---Logos--*/

.link-logo {
  display: contents;
}

.logos-grid .logo-item a img {
  max-width: 90%;
  display: inline;
}

ul {
  list-style: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

.mt-3 {
  margin-top: 1rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 163, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: rgba(0, 163, 255, 0.1);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(0, 163, 255, 0.1);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 163, 255, 0.2);
}

/* Glow Effects */
.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  filter: blur(150px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.2;
}

.glow-1 {
  top: 10%;
  right: -10%;
}

.glow-2 {
  top: 50%;
  left: -10%;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(4, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

/* Hero */
.hero {
  padding-top: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  /* Applying soft blue glow to the image as requested */
  filter: drop-shadow(0 0 30px rgba(0, 163, 255, 0.2));
  transform: scale(1.05);
}

/* Problema */
.problema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
}

.problema-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.problema-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 163, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-warning {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.problema-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.problema-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Solucion */
.solucion-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.pillar {
  background: linear-gradient(135deg, var(--color-surface), rgba(11, 31, 58, 0.5));
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 163, 255, 0.2);
  min-width: 250px;
}

.pillar h4 {
  font-size: 1.2rem;
  color: var(--color-primary);
}

/* Servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2.5rem;
}

.servicio-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.servicio-card:hover {
  transform: translateY(-5px);
  background: var(--color-surface-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.servicio-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.servicio-benefit {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.servicio-card hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.servicio-result {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Prueba Social */
.prueba-social {
  background-color: var(--color-surface);
}

.proof-content {
  max-width: 800px;
  margin: 0 auto;
}

.proof-text {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--color-text-muted);
}

.proof-text p {
  margin-bottom: 0.5rem;
}

.logos-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-item {
  width: 180px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Method */
.metodo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  padding: 2rem;
  border-left: 2px solid rgba(0, 163, 255, 0.3);
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 163, 255, 0.2);
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contacto & Formulario */
.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contacto-image {
  margin-top: 2rem;
  border-radius: var(--border-radius);
  filter: drop-shadow(0 0 20px rgba(0, 163, 255, 0.15));
  max-height: 420px;
  width: auto;
  object-fit: contain;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.contacto-form-wrapper {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contacto-form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: #fff;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(4, 13, 26, 0.8);
}

.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Footer */
.footer {
  background: #02070e;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo img {
  height: 30px;
  opacity: 0.8;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 991px) {

  .hero-container,
  .contacto-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image,
  .contacto-image {
    max-width: auto;
    margin: 0 auto;
  }

  .contacto-col.image-col h2 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* In a real app add a hamburger menu */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .contacto-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .nav-content {
    justify-content: center;
  }
}