/* ══════════════════════════════════════════
   LM SEGURIDAD — Landing Page Styles
   ══════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #0b1a2e;
  --navy-mid: #132d4a;
  --navy-light: #1a3a5c;
  --teal: #1a8a9e;
  --teal-light: #23b5d3;
  --teal-glow: rgba(26, 138, 158, 0.35);
  --silver: #c8d6e5;
  --white: #f0f4f8;
  --gold: #d4a843;
  --bg: #060e1a;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}


/* ── ANIMATED BACKGROUND ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 138, 158, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 138, 158, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb.one {
  width: 500px;
  height: 500px;
  background: rgba(26, 138, 158, 0.12);
  top: -100px;
  right: -100px;
  animation: orbFloat 12s ease-in-out infinite;
}

.glow-orb.two {
  width: 400px;
  height: 400px;
  background: rgba(212, 168, 67, 0.06);
  bottom: 10%;
  left: -80px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-60px) scale(1.1); }
}


/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 138, 158, 0.15);
  transition: all 0.4s;
}

nav.scrolled {
  background: rgba(6, 14, 26, 0.95);
  padding: 0.7rem 2rem;
}

.nav-logo {
  height: 50px;
  transition: height 0.4s;
}

nav.scrolled .nav-logo {
  height: 40px;
}

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

.nav-links a {
  color: var(--silver);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s;
}

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

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

.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--navy);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--teal-glow);
}

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

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--silver);
  transition: all 0.3s;
}


/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 120px 2rem 80px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 138, 158, 0.12);
  border: 1px solid rgba(26, 138, 158, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--silver);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

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


/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--navy);
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px var(--teal-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(200, 214, 229, 0.3);
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-light);
  background: rgba(26, 138, 158, 0.08);
}


/* ── SECTION COMMON ── */
section {
  position: relative;
  z-index: 1;
  padding: 100px 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 1px;
}

.section-subtitle {
  color: var(--silver);
  font-weight: 300;
  margin-top: 0.8rem;
  max-width: 600px;
  margin-inline: auto;
}


/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: linear-gradient(145deg, rgba(19, 45, 74, 0.6), rgba(11, 26, 46, 0.8));
  border: 1px solid rgba(26, 138, 158, 0.12);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(26, 138, 158, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(26, 138, 158, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.service-card p {
  color: var(--silver);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}


/* ── APP SECTION ── */
.app-section {
  background: linear-gradient(180deg, transparent, rgba(26, 138, 158, 0.04), transparent);
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: 12px;
  transition: background 0.3s;
}

.app-feature:hover {
  background: rgba(26, 138, 158, 0.06);
}

.feature-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--teal);
  line-height: 1;
  min-width: 36px;
}

.feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--silver);
  font-weight: 300;
}


/* ── PHONE MOCKUP ── */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  border-radius: 40px;
  border: 3px solid rgba(26, 138, 158, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(26, 138, 158, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
}

.phone-screen {
  margin-top: 2rem;
  width: 100%;
  flex: 1;
  background: rgba(6, 14, 26, 0.6);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.qr-placeholder {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--teal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: qrPulse 3s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { border-color: var(--teal); opacity: 1; }
  50%      { border-color: var(--teal-light); opacity: 0.7; }
}

.phone-text {
  font-size: 0.75rem;
  color: var(--silver);
  text-align: center;
  font-weight: 300;
}

.phone-btn {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--navy);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.phone-nav {
  margin-top: auto;
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.phone-nav-item {
  font-size: 0.6rem;
  color: var(--silver);
  text-align: center;
}

.phone-nav-item.active {
  color: var(--teal-light);
}


/* ── CONTACT ── */
.contact-section {
  background: linear-gradient(180deg, transparent, rgba(19, 45, 74, 0.3), transparent);
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 138, 158, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail span {
  font-weight: 400;
  color: var(--silver);
}

.contact-detail a {
  color: var(--teal-light);
  text-decoration: none;
  font-weight: 500;
}


/* ── FORM ── */
.contact-form {
  background: linear-gradient(145deg, rgba(19, 45, 74, 0.5), rgba(11, 26, 46, 0.7));
  border: 1px solid rgba(26, 138, 158, 0.12);
  border-radius: 20px;
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--silver);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(6, 14, 26, 0.6);
  border: 1px solid rgba(200, 214, 229, 0.12);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(26, 138, 158, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--teal-glow);
}

.form-msg {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-msg.success {
  display: block;
  color: var(--teal-light);
}

.form-msg.error {
  display: block;
  color: #e74c3c;
}


/* ── PRIVACY ── */
.privacy-section {
  background: rgba(11, 26, 46, 0.5);
  border-top: 1px solid rgba(26, 138, 158, 0.08);
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-toggle {
  background: linear-gradient(145deg, rgba(19, 45, 74, 0.4), rgba(11, 26, 46, 0.6));
  border: 1px solid rgba(26, 138, 158, 0.1);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.privacy-toggle:hover {
  border-color: rgba(26, 138, 158, 0.25);
}

.privacy-toggle h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.privacy-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--teal);
}

.privacy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.privacy-content.open {
  max-height: 3000px;
}

.privacy-text {
  padding: 2rem;
  background: rgba(6, 14, 26, 0.4);
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(26, 138, 158, 0.08);
  border-top: none;
  font-size: 0.85rem;
  color: var(--silver);
  line-height: 1.8;
}

.privacy-text a {
  color: var(--teal-light);
}


/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(26, 138, 158, 0.1);
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(1.1);
}

footer p {
  font-size: 0.8rem;
  color: rgba(200, 214, 229, 0.5);
  margin-top: 0.5rem;
}


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 14, 26, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

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

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 2rem;
  }

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

  .app-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .phone-mockup {
    order: -1;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
