/* styles.css - Academia de Manejo AutoDrive
   Hoja de estilos 100% pura y desacoplada
*/

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --success: #10b981;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.page-wrapper {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  padding-bottom: 84px;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--secondary);
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  font-size: 1rem;
}

.btn-header-cta {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-cta:hover {
  background: var(--primary);
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 24px 20px 20px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Booking Section */
.booking-section {
  padding: 24px 20px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
}

.section-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Feature Tabs */
.tabs-nav {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn .tab-icon {
  font-size: 1.1rem;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Tab Panels */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Card Container */
.card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-select,
.form-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fdfdfd;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #fff;
}

/* Chip Pickers */
.chips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chip-btn {
  padding: 10px 4px;
  text-align: center;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: #475569;
}

.chip-btn.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Checkbox Style */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-text {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
}

/* Payment Plans Card */
.plan-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.plan-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}

.plan-radio-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-radio-wrap input[type="radio"] {
  accent-color: var(--primary);
}

.plan-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
}

.plan-info p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plan-price {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

/* Payment Method Badges */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.pay-method-btn {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #475569;
}

.pay-method-btn.selected {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.pay-method-btn .pay-icon {
  font-size: 1.1rem;
}

/* Primary Button */
.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: white;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

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

/* Features Grid */
.features-section {
  padding: 10px 20px 24px;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-icon.blue { background: #dbeafe; color: #1d4ed8; }
.feature-icon.green { background: #d1fae5; color: #047857; }
.feature-icon.amber { background: #fef3c7; color: #b45309; }

.feature-text h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Testimonial / Trust */
.trust-banner {
  margin: 0 20px 24px;
  padding: 16px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.trust-stars {
  color: #fbbf24;
  font-size: 0.8rem;
  margin-top: 2px;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Modal Feedback */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--surface);
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-status-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #d1fae5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.modal-summary {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.78rem;
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-summary-row {
  display: flex;
  justify-content: space-between;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 500;
}

.summary-value {
  color: var(--secondary);
  font-weight: 700;
}

.btn-modal-close {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-close:hover {
  background: #1e293b;
}

/* Floating Bottom Sticky Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  z-index: 40;
}

.bottom-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.bottom-info strong {
  font-size: 0.9rem;
  color: var(--secondary);
}

.btn-bottom-cta {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* Responsive adjustments para pantallas mayores */
@media (min-width: 768px) {
  body {
    background-color: #f1f5f9;
    padding: 30px 0;
  }
  .page-wrapper {
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }
}