/* --- VARIABLES Y RESET BASICO --- */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --dark: #0f172a;
  --gray-bg: #f8fafc;
  --text: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background-color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- NAVEGACION --- */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* --- BOTONES --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

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

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--dark);
}

.btn-secondary:hover {
  background-color: #cbd5e1;
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0;
  background-color: var(--gray-bg);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.card-preview {
  width: 320px;
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  padding: 20px;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.chip {
  width: 45px;
  height: 35px;
  background: #fbbf24;
  border-radius: 6px;
}

.card-holder {
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.nfc-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.2rem;
}

/* --- SECCIONES GENERALES --- */
section {
  padding: 70px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 25px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
}

/* --- REQUISITOS --- */
.requirements {
  background-color: #fff;
}

.req-card {
  border-left: 4px solid var(--primary);
}

.req-card .icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* --- COMO FUNCIONA --- */
.how-it-works {
  background-color: var(--gray-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.step-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 15px 20px;
  border: 1px solid var(--border);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--dark);
}

.faq-item p {
  margin-top: 10px;
  color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
  background: var(--dark);
  color: white;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* --- RESPONSIVE / ADAPTACIÓN A MÓVILES --- */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

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

  .nav-links {
    display: none; /* Simplificado para móviles */
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }
}
