/* ============================================================
   LiamCare+ | main.css
   Estilos globales reutilizables
   ============================================================ */

:root {
  --bg: #06131d;
  --bg-soft: #0c1d2b;
  --card: rgba(12, 28, 40, 0.88);
  --card-border: rgba(120, 183, 255, 0.14);
  --primary: #38d1ff;
  --secondary: #78ffd8;
  --text: #eef8ff;
  --muted: #9fb8c9;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --max-width: 1200px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 209, 255, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 255, 216, 0.07), transparent 25%),
    linear-gradient(180deg, #041018 0%, #071520 55%, #041018 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   LAYOUT
   ========================= */
.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

main {
  overflow: hidden;
}

section {
  padding: 54px 0;
}

/* =========================
   HEADER / NAVBAR
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 15, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 209, 255, 0.2), rgba(120, 255, 216, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(56, 209, 255, 0.12);
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #032130;
  box-shadow: 0 12px 30px rgba(56, 209, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(56, 209, 255, 0.28);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* =========================
   HERO
   ========================= */
.hero {
  padding: 90px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(120, 255, 216, 0.08);
  border: 1px solid rgba(120, 255, 216, 0.16);
  color: #caffeb;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -1.7px;
  margin-bottom: 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-points {
  display: grid;
  gap: 10px;
  color: #d9f1ff;
}

.hero-points div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 14px;
  width: fit-content;
}

/* =========================
   PHONE MOCKUP
   ========================= */
.hero-card {
  background: linear-gradient(180deg, rgba(14, 30, 44, 0.92), rgba(8, 18, 28, 0.96));
  border: 1px solid var(--card-border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.phone-shell {
  max-width: 360px;
  margin: 0 auto;
  background: #07131d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  padding: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 18px 45px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  background: linear-gradient(180deg, #0b1f2f 0%, #103149 100%);
  border-radius: 24px;
  min-height: 620px;
  padding: 18px;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #dff6ff;
}

.app-card,
.app-row,
.mini-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
}

.app-card {
  padding: 16px;
  margin-bottom: 14px;
}

.app-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.app-card p,
.mini-card span,
.app-row small {
  color: #bad3e3;
  font-size: 0.88rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.mini-card {
  padding: 14px;
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.app-row {
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(56, 209, 255, 0.16);
  color: #baf1ff;
  white-space: nowrap;
}

/* =========================
   SECTION HEADERS
   ========================= */
.section-head {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 209, 255, 0.08);
  border: 1px solid rgba(56, 209, 255, 0.16);
  color: #b8edff;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* =========================
   CARDS
   ========================= */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.route-card,
.cta-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.feature-card,
.route-card {
  padding: 24px;
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(56, 209, 255, 0.18), rgba(120, 255, 216, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.5rem;
}

.feature-card h3,
.route-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-card p,
.route-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.route-link {
  color: #bdf3ff;
  font-weight: 700;
  transition: 0.25s ease;
}

.route-link:hover {
  color: #ffffff;
}

.cta-box {
  padding: 34px;
  text-align: center;
  background: linear-gradient(180deg, rgba(9, 23, 35, 0.96), rgba(12, 28, 40, 0.98));
}

.cta-box p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 20px;
}

/* =========================
   FAQ
   ========================= */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 100%;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  padding: 34px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand p,
.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  transition: 0.25s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

/* =========================
   UTILIDADES
   ========================= */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* =========================
   FORMULARIO CONTACTO
   ========================= */
.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(56, 209, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(56, 209, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  min-width: 180px;
}

/* =========================
   ANIMACIONES
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .navbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 52px;
  }

  .hero-actions,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .phone-screen {
    min-height: auto;
  }

  .hero-points div {
    width: 100%;
  }

  .contact-form .btn {
    min-width: 100%;
  }
}