/* 
   Preppy POS — landingPage/styles.css
   Estilos inspirados en el tema base 'Preppy' de Preppy Vue
   Paleta de colores oficial: Navy profundo (#0b1120), Superficies (#121b2e) y Acentos en Verde Preppy (#22c55e)
*/

:root {
  --bg: #0b1120;
  --surface: #121b2e;
  --surface-alt: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.35);
  --accent-content: #ffffff;
  --radius: 12px;
  --radius-sm: 6px;
  --max-width: 1200px;
  
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Plus Jakarta Sans', var(--font-body);
}

/* CSS RESET & GENERAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* BACKGROUND DECORATIONS (GLOWS) */
.glow-bg {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.glow-1 {
  top: -100px;
  right: -50px;
  background: var(--accent);
}

.glow-2 {
  top: 60%;
  left: -100px;
  background: #0ea5e9; /* Subtle secondary ocean color for depth */
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 48px;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-content);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background-color: #1eb253;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--surface-alt);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: var(--border);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* HEADER / NAVIGATION */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.logo-icon.small {
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.accent-text {
  color: var(--accent);
}

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

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

.nav-link:hover {
  color: var(--accent);
}

/* HERO SECTION */
.hero {
  padding: 80px 0 100px 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-block;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(34, 197, 94, 0.15);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* HERO VISUAL (MOCKUP WINDOW) */
.hero-visual {
  position: relative;
  width: 100%;
  perspective: 1000px;
}

.mockup-window {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 2px var(--border);
  width: 100%;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 11;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mockup-window:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-header {
  height: 38px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.mockup-address {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px 24px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-body {
  flex: 1;
  display: flex;
}

/* Mockup Sidebar */
.mockup-sidebar {
  width: 50px;
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  gap: 16px;
}

.sidebar-logo {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.sidebar-item {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background-color: var(--surface-alt);
}

.sidebar-item.active {
  background-color: var(--accent);
}

/* Mockup Main Panel */
.mockup-main {
  flex: 1;
  background-color: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.mockup-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.mockup-user {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.mockup-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--surface);
  transition: border-color 0.2s;
}

.table-number {
  font-size: 0.75rem;
  font-weight: 700;
}

.table-status {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.table-total {
  font-size: 0.7rem;
  font-weight: 600;
  align-self: flex-end;
}

.table-card.occupied {
  border-left: 3px solid #ef4444;
}

.table-card.occupied .table-status {
  color: #f87171;
}

.table-card.free {
  border-left: 3px solid var(--border);
}

.table-card.billing {
  border-left: 3px solid #f59e0b;
}

.table-card.billing .table-status {
  color: #fbbf24;
}

/* SECTION COMMON */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* CARD COMMON */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(34, 197, 94, 0.1);
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

/* STEPS GRID (HOW IT WORKS) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--surface-alt);
  border: 2px solid var(--border);
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.step-card:hover .step-number {
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.1);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 280px;
}

/* FAQ SECTION */
.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--border); /* Subtle focus */
}

.faq-question {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
}

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

/* CTA BANNER */
.cta-banner {
  padding: 80px 0;
  background: radial-gradient(circle at top left, var(--surface) 20%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.cta-container {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* FOOTER */
.footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* RESPONSIVE LAYOUT (MEDIA QUERIES) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 640px;
    margin: 0 auto;
  }

  .mockup-window {
    transform: none !important;
  }

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

/* CONTACT FORM */
.contact-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.label-optional {
  font-weight: 400;
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

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

.contact-submit {
  width: 100%;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Checkbox grid */
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.875rem;
  color: var(--text-muted);
  user-select: none;
}

.check-item:hover {
  border-color: var(--accent);
  color: var(--text);
}

.check-item input[type="checkbox"] {
  display: none;
}

.check-box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.check-item input:checked ~ .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check-item input:checked ~ .check-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.check-item input:checked ~ span:last-child {
  color: var(--text);
}

.otro-field {
  margin-top: 10px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 14px;
  width: 100%;
  outline: none;
}

.otro-field::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }

  .nav {
    display: none; /* Hide nav links on mobile for simplicity */
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

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

  .contact-form {
    padding: 24px;
  }
}
