/* ==========================================================================
   TRANSPORTES MULTIDESTINOS S.R.L. - LANDING PAGE A4 ONE-PAGER
   Formato de Hoja A4 Ejecutiva / Mínimo Scroll / Alto Impacto
   ========================================================================== */

:root {
  --red: #ea3338;
  --red-bright: #ec3237;
  --red-deep: #a8121f;
  --red-dark: #7c0d16;
  --red-glow: rgba(234, 51, 56, 0.25);
  --ink: #101010;
  --ink-alt: #16171a;
  --ink-surface: #1e2025;
  --ink-soft: #383b42;
  --ink-muted: #6b7280;
  --paper: #ffffff;
  --paper-soft: #f8f9fa;
  --paper-card: #f3f4f6;
  --line: #e5e7eb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --skew-deg: -12deg;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-sheet: 0 25px 70px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.2);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font);
  background-color: #0d0e11;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem 3rem;
  background: 
    radial-gradient(circle at 10% 20%, rgba(234, 51, 56, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 18, 31, 0.15) 0%, transparent 45%),
    #0d0e11;
  background-attachment: fixed;
}

/* ==========================================================================
   TOP TOOLBAR (Acciones rápidas sobre la hoja A4)
   ========================================================================== */
.a4-toolbar {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(22, 23, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.82rem;
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toolbar-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: skewX(var(--skew-deg));
  transition: all 0.25s var(--ease);
}

.tool-btn > * {
  transform: skewX(calc(-1 * var(--skew-deg)));
}

.tool-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  transform: skewX(var(--skew-deg)) translateY(-2px);
}

.tool-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ==========================================================================
   A4 SHEET CONTAINER (Estructura de Hoja Única)
   ========================================================================== */
.a4-sheet {
  width: 100%;
  max-width: 980px;
  background-color: var(--paper);
  box-shadow: var(--shadow-sheet);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--red);
}

/* Detalle diagonal en esquinas */
.a4-sheet::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 45px 45px 0;
  border-color: transparent var(--red) transparent transparent;
  z-index: 10;
}

/* ==========================================================================
   1. A4 HEADER
   ========================================================================== */
.a4-header {
  padding: 1.25rem 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  background: #ffffff;
  gap: 1.5rem;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 260px;
  fill: var(--ink);
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.25rem;
  font-style: italic;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-pill svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
  flex-shrink: 0;
}

.contact-pill a:hover {
  color: var(--red);
}

/* ==========================================================================
   2. HERO BANNER (Resumen de Impacto Ejecutivo)
   ========================================================================== */
.a4-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-alt) 60%, var(--red-dark) 100%);
  color: #ffffff;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.a4-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero-main-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-main-title span.accent {
  color: var(--red);
}

.hero-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  position: relative;
  z-index: 1;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--red);
  padding: 0.45rem 0.6rem;
  transform: skewX(var(--skew-deg));
}

.hero-stat-card > * {
  transform: skewX(calc(-1 * var(--skew-deg)));
}

.hero-stat-num {
  font-size: 1.15rem;
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  transform: scale(1.05);
  transition: transform 0.4s var(--ease);
}

.hero-image-wrap:hover img {
  transform: scale(1.1) translateX(4px);
}

/* ==========================================================================
   3. A4 BODY CONTENT (Grilla Estratégica de 3 Secciones)
   ========================================================================== */
.a4-body {
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1.5rem;
  background-color: var(--paper);
}

.a4-col {
  display: flex;
  flex-direction: column;
}

.col-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  color: var(--ink);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--red);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.col-heading svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
}

/* --- Columna 1: Servicios Clave --- */
.services-compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.compact-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  background: var(--paper-card);
  border-left: 3px solid var(--red);
  transition: all 0.2s ease;
}

.compact-service-item:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(3px);
}

.compact-service-thumb {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  object-fit: cover;
  flex-shrink: 0;
}

.compact-service-info h4 {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.compact-service-info p {
  font-size: 0.65rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* --- Columna 2: Flota Homologada --- */
.fleet-box {
  background: var(--ink);
  color: #ffffff;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  position: relative;
  overflow: hidden;
}

.fleet-box-thumb {
  width: 100%;
  height: 95px;
  object-fit: contain;
  margin: 0.35rem 0;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.6));
}

.fleet-box-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  font-style: italic;
  display: flex;
  justify-content: space-between;
}

.fleet-box-title span.badge {
  color: var(--red);
}

.fleet-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.spec-chip {
  background: var(--paper-card);
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.spec-chip svg {
  width: 12px;
  height: 12px;
  fill: var(--red);
  flex-shrink: 0;
}

/* --- Columna 3: Cobertura, Puertos y Clientes --- */
.ports-badge-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.port-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper-card);
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
  border-left: 2px solid var(--ink);
}

.port-badge svg {
  width: 13px;
  height: 13px;
  fill: var(--red);
  flex-shrink: 0;
}

.clients-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  background: var(--ink);
  padding: 0.6rem;
  border-radius: 3px;
}

.mini-client-logo {
  height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-client-logo img {
  max-height: 20px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: all 0.2s ease;
}

.mini-client-logo:hover img {
  filter: brightness(1) invert(0) opacity(1);
}

/* ==========================================================================
   4. A4 FOOTER / CALL TO ACTION (Cotización Directa & Contacto)
   ========================================================================== */
.a4-footer {
  padding: 1rem 2rem;
  background: var(--paper-card);
  border-top: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-quote-text {
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 440px;
}

.footer-quote-text strong {
  color: var(--ink);
  font-size: 0.85rem;
  display: block;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  font-style: italic;
  letter-spacing: 0.04em;
  cursor: pointer;
  transform: skewX(var(--skew-deg));
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-cta > * {
  transform: skewX(calc(-1 * var(--skew-deg)));
}

.btn-cta-red {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--red-glow);
}

.btn-cta-red:hover {
  background: var(--red-dark);
  color: #ffffff;
  transform: skewX(var(--skew-deg)) translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 51, 56, 0.4);
}

.btn-cta-green {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.btn-cta-green:hover {
  background: #15803d;
  color: #ffffff;
  transform: skewX(var(--skew-deg)) translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
}

.btn-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Modal de Cotización Rápida */
.quote-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 1rem;
}

.quote-modal.open {
  display: grid;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-top: 5px solid var(--red);
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.modal-close:hover {
  color: var(--red);
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.modal-form .full {
  grid-column: 1 / -1;
}

.m-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.m-input, .m-select, .m-textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  outline: none;
  font-family: inherit;
}

.m-input:focus, .m-select:focus, .m-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}

.m-textarea {
  resize: vertical;
  min-height: 60px;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN (A4 Exacto al Imprimir / Guardar como PDF)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body {
    background: transparent !important;
    padding: 0 !important;
  }

  .a4-toolbar, .quote-modal {
    display: none !important;
  }

  .a4-sheet {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 4px solid var(--red) !important;
  }
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL
   ========================================================================== */
@media (max-width: 820px) {
  body {
    padding: 0.75rem 0.5rem 2rem;
  }

  .a4-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.85rem;
  }

  .a4-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
  }

  .hero-image-wrap {
    display: none;
  }

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

  .a4-body {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }

  .a4-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1rem;
  }

  .footer-actions {
    flex-direction: column;
  }

  .btn-cta {
    justify-content: center;
    width: 100%;
  }

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