:root {
  --bg-dark: #040e1f;
  --bg-navy: #091c38;
  --bg-card: #0d2547;
  --bg-light: #f1f5f9;
  --accent: #0284c7;
  --accent-light: #38bdf8;
  --silver: #94a3b8;
  --silver-light: #cbd5e1;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --whatsapp: #22c55e;
  --shadow: 0 20px 35px -10px rgba(2, 6, 23, 0.3);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 2.5px;
}

.brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 2px;
}

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

.nav-links a {
  color: var(--silver-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
}

.btn-nav {
  background: linear-gradient(135deg, var(--accent), #0369a1);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Modern Catchy Hero Section (Sin tarjeta blanca repetitiva de logo) */
.hero {
  background: linear-gradient(135deg, #030a17 0%, var(--bg-dark) 50%, #082246 100%);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--silver-light);
  font-size: 1.12rem;
  margin-bottom: 2rem;
  max-width: 650px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #022c14;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

/* Tarjeta visual tecnológica moderna para el Hero */
.hero-visual-card {
  background: linear-gradient(145deg, rgba(13, 37, 71, 0.85), rgba(5, 19, 41, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.hero-visual-card h3 {
  color: var(--accent-light);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-stats-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--silver-light);
  font-size: 0.95rem;
}

.hero-stats-list li span {
  color: var(--accent-light);
  font-weight: bold;
}

/* Sections & Containers */
.section {
  padding: 5rem 1.5rem;
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px -12px rgba(2, 6, 23, 0.15);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--accent);
  background: var(--bg-dark);
}

.card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  color: var(--bg-dark);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  padding-left: 1.35rem;
  position: relative;
}

.service-list li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Contact & Forms */
.contact-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: var(--bg-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.96rem;
  font-family: inherit;
  background-color: #f8fafc;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--white);
}

.legal-doc {
  background: var(--white);
  padding: 2.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.legal-doc h2 {
  color: var(--bg-dark);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.6rem;
}

.legal-doc h3 {
  margin: 1.75rem 0 0.6rem;
  color: var(--bg-navy);
}

.legal-doc p, .legal-doc ul {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.legal-doc ul {
  padding-left: 1.5rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: var(--whatsapp);
  color: #022c14;
  padding: 0.9rem 1.35rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.45);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 999;
  font-size: 0.95rem;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: var(--white);
  padding: 1.35rem 1.75rem;
  border-top: 3px solid var(--accent);
  z-index: 2000;
  display: none;
  box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.4);
}

.cookie-content {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--silver-light);
  flex: 1 1 500px;
}

.cookie-content a {
  color: var(--accent-light);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: opacity 0.2s;
}

.btn-sm:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--silver-light);
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.footer-grid {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.75rem;
  margin-bottom: 3rem;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  max-width: 1250px;
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.88rem;
  color: var(--silver);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .btn-group {
    justify-content: center;
  }
  .badge-tags {
    justify-content: center;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1.75rem;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
  }
  .nav-links.show {
    display: flex;
  }
}
