:root{
  --primary:#16a34a;
  --dark:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --light:#f9fafb;
  --radius:8px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
body{ font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; color:var(--dark); line-height:1.5; }
a{ color:inherit; }

.container{ max-width:1100px; margin:0 auto; padding:0 16px; }

/* ===== HEADER ===== */
.main-header{ position:sticky; top:0; background:#fff; border-bottom:1px solid var(--border); z-index:50; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 0; }

.logo{ display:flex; align-items:center; text-decoration:none; }
.logo-svg{ height:46px; width:auto; display:block; }

.main-nav{ display:flex; gap:14px; align-items:center; }
.main-nav a{ text-decoration:none; font-weight:600; font-size:.95rem; }
.main-nav a:hover{ color:var(--primary); }
.main-nav a.active{ color:var(--primary); font-weight:600; }

.btn-cta,.btn-primary,.btn-secondary{
  display:inline-block; padding:10px 16px; border-radius:var(--radius);
  text-decoration:none; font-weight:700;
}
.btn-cta,.btn-primary{ background:var(--primary); color:#fff; }
.btn-cta:hover,.btn-primary:hover{ background:#15803d; }
.btn-secondary{ border:1px solid var(--border); background:#fff; }
.btn-secondary:hover{ border-color:var(--primary); color:var(--primary); }

.mobile-menu-toggle{ display:none; background:none; border:none; cursor:pointer; }
.mobile-menu-toggle span{ display:block; width:26px; height:3px; background:var(--dark); margin:5px 0; }

/* ===== HERO PRINCIPAL (INDEX) ===== */
/* ===== HERO PRINCIPAL (INDEX) ===== */
.hero {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)),
    url('../img/flota.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 8rem 0;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 0 16px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 
    -2px -2px 0 #16a34a,
    2px -2px 0 #16a34a,
    -2px 2px 0 #16a34a,
    2px 2px 0 #16a34a,
    0 0 10px #10b981,
    3px 3px 8px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  color: white;
  text-shadow: 
    -1px -1px 0 #16a34a,
    1px -1px 0 #16a34a,
    -1px 1px 0 #16a34a,
    1px 1px 0 #16a34a,
    0 0 6px #16a34a,
    2px 2px 6px rgba(0,0,0,0.5);
}

.hero ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
}

.hero ul li {
  font-size: 1.1rem;
  color: white;
  margin: 0.5rem 0;
  text-shadow: 
    -1px -1px 0 #16a34a,
    1px -1px 0 #16a34a,
    -1px 1px 0 #16a34a,
    1px 1px 0 #16a34a,
    0 0 6px #16a34a,
    2px 2px 4px rgba(0,0,0,0.4);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-buttons a {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.hero-buttons .btn-primary {
  background: #16a34a;
  color: white;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.5);
}

.hero-buttons .btn-primary:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.6);
}

.hero-buttons .btn-secondary {
  background: white;
  color: #16a34a;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}


/* ===== PAGE HEADER (PÁGINAS INTERNAS) ===== */
.page-header {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Foto por defecto para páginas sin clase específica */
.page-header {
  background-image: 
    linear-gradient(rgba(22, 163, 74, 0.80), rgba(16, 185, 129, 0.80)),
    url('../img/flota.jpg');
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  font-weight: 800;
  color: white;
}

.page-header p {
  font-size: 1.4rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  color: white;
  opacity: 0.98;
}

/* Fotos específicas por página */
.contact-page .page-header {
  background-image: 
    linear-gradient(rgba(22, 163, 74, 0.80), rgba(16, 185, 129, 0.80)),
    url('../img/call-center.jpg') !important;
}

.mudanzas-page .page-header {
  background-image: 
    linear-gradient(rgba(22, 163, 74, 0.80), rgba(16, 185, 129, 0.80)),
    url('../img/mudanza.jpg') !important;
}

.carga-page .page-header {
  background-image: 
    linear-gradient(rgba(22, 163, 74, 0.80), rgba(16, 185, 129, 0.80)),
    url('../img/flota.jpg') !important;
}

.personas-page .page-header {
  background-image: 
    linear-gradient(rgba(22, 163, 74, 0.80), rgba(16, 185, 129, 0.80)),
    url('../img/flota.jpg') !important;
}

.consolidado-page .page-header {
  background-image: 
    linear-gradient(rgba(22, 163, 74, 0.80), rgba(16, 185, 129, 0.80)),
    url('../img/flota.jpg') !important;
}

/* ===== SECCIONES ===== */
.section-light{ background:var(--light); padding:40px 0; }
.section-white{ background:#fff; padding:40px 0; }

.cards-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-top:16px; }
.card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.card p{ color:var(--muted); margin:8px 0 10px; }
.card-link{ color:var(--primary); font-weight:700; text-decoration:none; }

/* ===== PÁGINAS DE SERVICIOS ===== */
.intro-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.intro-text h2 {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.8;
}

.subtitle {
  text-align: center;
  color: #6b7280;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #111827;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
}

.features-list {
  max-width: 900px;
  margin: 2rem auto;
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.check-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-item h3 {
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-item p {
  color: #6b7280;
  line-height: 1.6;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step-item {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.step-item h3 {
  color: #111827;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.price-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: relative;
  border: 2px solid transparent;
  transition: transform 0.3s, border-color 0.3s;
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: #16a34a;
}

.price-card.featured {
  border-color: #16a34a;
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #16a34a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.price-card h3 {
  color: #111827;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.price-type {
  color: #6b7280;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: #16a34a;
  margin: 1.5rem 0;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.price-features li {
  padding: 0.5rem 0;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.price-features li:last-child {
  border-bottom: none;
}

.btn-price {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #16a34a;
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background 0.3s;
}

.btn-price:hover {
  background: #15803d;
}

.price-note {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.cta-section {
  background: linear-gradient(135deg, #16a34a 0%, #10b981 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-large, .btn-secondary-large {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-large {
  background: white;
  color: #16a34a;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary-large {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary-large:hover {
  background: white;
  color: #16a34a;
}

/* ===== PÁGINA DE CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.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: #16a34a;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #15803d;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
}

.contact-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  color: #16a34a;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-card p {
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.contact-link {
  display: inline-block;
  color: #111827;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-link:hover {
  color: #16a34a;
}

.whatsapp-link {
  color: #25D366;
}

.green-card {
  background: linear-gradient(135deg, #16a34a 0%, #10b981 100%);
  color: white;
}

.green-card h3,
.green-card p {
  color: white;
}

.btn-whatsapp-big {
  display: block;
  width: 100%;
  padding: 1rem;
  background: white;
  color: #16a34a;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  transition: transform 0.3s;
}

.btn-whatsapp-big:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== FOOTER ===== */
.main-footer{ border-top:1px solid var(--border); padding:18px 0; background:#fff; }
.footer-inner{ text-align:center; color:var(--muted); font-size:.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle{ display:block; }
  .main-nav{ display:none; position:absolute; top:72px; left:0; right:0; background:#fff; padding:16px; border-top:1px solid var(--border); flex-direction:column; align-items:flex-start; }
  .main-nav.active{ display:flex; }
  
  .hero {
    padding: 5rem 0;
    min-height: 400px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .page-header {
    min-height: 280px;
    padding: 3rem 0;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .price-card.featured {
    transform: none;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.blog-card-content {
  padding: 2rem;
}

.blog-date {
  display: inline-block;
  font-size: 0.875rem;
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-card h2 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h2 a:hover {
  color: #16a34a;
}

.blog-card p {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-link:hover {
  color: #15803d;
}

/* Artículo individual */
.blog-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.2;
}

.blog-meta {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
}

.blog-content h2 {
  font-size: 1.875rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #111827;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #111827;
}

.blog-content p {
  margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
}

.blog-content strong {
  color: #111827;
  font-weight: 600;
}

.blog-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: #16a34a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.blog-back:hover {
  color: #15803d;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-article h1 {
    font-size: 2rem;
  }
}
