/* ==========================================================================
   LACDBTECH Corporate Stylesheet
   Paleta: Azul Marino (#0F2C59), Cian Tech (#0EA5E9), Verde Operativo (#10B981)
   ========================================================================== */

:root {
  --navy: #0f2c59;
  --navy-dark: #091b38;
  --cyan: #0ea5e9;
  --green: #10b981;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bg-light: #ffffff;
  --bg-gray: #f8fafc;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(15, 44, 89, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-nav {
  background: var(--navy);
  color: #ffffff;
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-nav:hover {
  background: var(--navy-dark);
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 44, 89, 0.22);
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(15, 44, 89, 0.05);
}

.btn-accent {
  background: var(--cyan);
  color: #06182c;
  font-weight: 700;
}

.btn-accent:hover {
  background: #38bdf8;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 68px 0 80px;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.09), transparent 45%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 44, 89, 0.08);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--navy);
  background: linear-gradient(120deg, var(--navy) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-size: 1.08rem;
  color: var(--navy);
}

.metric-item span {
  font-size: 0.83rem;
  color: var(--muted);
}

.visual-frame {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.visual-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Sections */
.section {
  padding: 78px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-gray {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
}

.section-header {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.kicker-light {
  color: #38bdf8;
}

.section-header h2,
.solutions-info h2,
.about-grid h2,
.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

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

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--navy);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Solutions Section */
.solutions-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.solutions-visual {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.solutions-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.solutions-desc {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* Steps / Metodología */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.about-grid p {
  color: var(--muted);
}

.principles-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.about-logo-full {
  width: 190px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.principles-card h3 {
  margin: 0 0 18px;
  color: var(--navy);
}

.principles-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principles-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--muted);
}

.principles-card li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
}

.principles-card li strong {
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-item a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 18px;
  color: var(--navy);
}

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

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(14, 165, 233, 0.35);
  border-color: var(--cyan);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

.form-check input {
  margin-top: 4px;
}

.link-inline {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.form-status {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 20px;
}

/* Footer */
.footer {
  background: #091b38;
  color: #cbd5e1;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand strong {
  color: #ffffff;
  margin-right: 12px;
}

.footer-brand span {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-btn {
  background: none;
  border: none;
  padding: 0;
  color: #cbd5e1;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}

.footer-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-btn-lock {
  color: #38bdf8;
  font-weight: 600;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(9, 27, 56, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.modal-legal {
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.modal-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-box h3 {
  margin: 0 0 12px;
  color: var(--navy);
}

.modal-text {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0 0 18px;
}

.modal-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 22px;
  cursor: pointer;
}

.modal-check input {
  margin-top: 3px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.disabled-link {
  opacity: 0.45;
  pointer-events: none;
}

.legal-body {
  font-size: 0.91rem;
  color: var(--muted);
  line-height: 1.65;
}

.legal-body h4 {
  color: var(--navy);
  margin: 14px 0 6px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .solutions-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .cards-grid,
  .steps-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
