:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #0b1120;
  --bg-alt: #020617;
  --card-bg: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.2);
  --radius-lg: 12px;
  --radius-full: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --transition-fast: 0.2s ease;
  --max-width: 1120px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

body {
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* Layout base */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header y navegación */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo span {
  color: var(--primary);
}

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

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, var(--primary));
  transition: width var(--transition-fast);
}

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

.nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  
  padding: 6rem 0 5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}




.hero-content {
  position: relative;
  margin: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* texto a la izquierda */
  justify-content: center;
  gap: 1.2rem;
  max-width: 40rem;
  min-height: 260px;
}

.hero-banner {
  background-image:
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.5)),
    url("https://images.pexels.com/photos/1181675/pexels-photo-1181675.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position:initial;
  inset: 0;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.35), transparent 55%);
  z-index: 1;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.1;
}

.hero-text p {
  color: var(--text-muted);
  max-width: 34rem;
}

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

.hero-badge {
  font-size: 0.9rem;
  color: #a5b4fc;
}

/* Secciones genéricas */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #0f172a 0, #020617 55%);
}

.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Grillas y cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(145deg, #020617, #020617, #020617);
  border-radius: 1.1rem;
  border: 1px solid var(--border-soft);
  padding: 1.4rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
  border-color: rgba(59, 130, 246, 0.6);
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.card-tag {
  font-size: 0.85rem;
  color: #a5b4fc;
  margin-bottom: 0.6rem;
}

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

/* Contacto */

.contacto {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1.2rem;
  padding: 1.75rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* Formularios */

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.35rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  background: #020617;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.6rem 0.8rem;
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
  background: #020617;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.1rem;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(135deg, #38bdf8, var(--primary));
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.5);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.75);
  background: linear-gradient(135deg, #0ea5e9, var(--primary-dark));
}

.btn-small {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-main);
  box-shadow: none;
}

.btn-small:hover {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(15, 23, 42, 0.9);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-main);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: rgba(59, 130, 246, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

.btn-full {
  width: 100%;
}

/* Listas */

.list {
  list-style: none;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.list li + li {
  margin-top: 0.35rem;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  padding: 1.75rem 0 2rem;
  background: radial-gradient(circle at top, #020617 0, #000 75%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsivo */

@media (max-width: 960px) {
  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

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

  .container {
    padding: 0 1.25rem;
  }
}
