/* ============================================
   VehiDocs - Estilos compartidos
   Reset, variables, header, footer, legal, landing
   ============================================ */

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

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #10B981;
  --dark: #1F2937;
  --gray: #6B7280;
  --light-gray: #F3F4F6;
  --white: #FFFFFF;
  --success: #10B981;
  --error: #EF4444;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== HEADER ========== */
header {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header.legal-header {
  position: relative;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  height: 84px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: var(--primary);
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.cta-button {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.back-button {
  color: var(--primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.back-button:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* ========== LANDING - HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 8rem 2rem 6rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ========== LANDING - FEATURES ========== */
#features {
  padding: 6rem 2rem;
  background: var(--white);
}

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

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* ========== LANDING - PRICING ========== */
#pricing {
  padding: 6rem 2rem;
  background: var(--light-gray);
}

.pricing-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
  border: 3px solid var(--primary);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--dark);
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0.75rem 0 0.35rem;
}

.plan-price-sub {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.plan-features {
  text-align: center;
  margin: 1.25rem 0;
}

.plan-features li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--dark);
}

.plan-features li::before {
  content: "✓ ";
  color: var(--secondary);
  font-weight: 700;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 1rem;
}

/* ========== FOOTER ========== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section ul {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ========== LEGAL CONTAINER ========== */
.legal-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem 4rem;
}

.legal-container h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.last-updated {
  color: var(--gray);
  font-style: italic;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--light-gray);
}

.legal-container section {
  margin-bottom: 2.5rem;
}

.legal-container h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.legal-container h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--dark);
}

.legal-container p,
.legal-container li {
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-container ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ========== FORMULARIOS ========== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.submit-button {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.submit-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.form-message.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid var(--success);
}

.form-message.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid var(--error);
}

/* ========== CONTACT PAGE ========== */
.contact-hero {
  padding: 4rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.contact-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: var(--light-gray);
  padding: 2.5rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.contact-form-wrapper h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.hours-info {
  background: var(--light-gray);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hours-info h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ========== FAQ ========== */
.faq {
  margin-bottom: 3rem;
}

.faq h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.faq details {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.faq details:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--primary);
  margin-bottom: 1rem;
}

.faq details[open] summary::after {
  content: " −";
}

.faq details:not([open]) summary::after {
  content: " +";
  color: var(--primary);
}

.faq details p {
  margin: 0;
  padding-left: 0;
  color: var(--gray);
  line-height: 1.7;
}

/* ========== REDES SOCIALES ========== */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.social-links a {
  color: var(--primary);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
  }

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

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

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

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

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

  .legal-container h1 {
    font-size: 2rem;
  }

  nav {
    padding: 0 1rem;
  }

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

/* ========== PRINT ========== */
@media print {
  header,
  footer,
  .back-button,
  .hero-buttons,
  .cta-button {
    display: none !important;
  }

  .legal-container {
    max-width: 100%;
    padding: 0;
  }

  .legal-container section {
    page-break-inside: avoid;
  }

  body {
    background: white;
  }
}
