/* ==========================================================================
   OTR GRP ARGENTINA S.A.
   Ingeniería de Cargas Especiales, Verificación de Gálibos & Peritaje
   Buenos Aires & Bahía Blanca, Argentina
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --charcoal-black: #0B0E14;
  --slate-dark: #121722;
  --slate-panel: #1A2232;
  --amber-safety: #D97706;
  --amber-bright: #F59E0B;
  --amber-light: #FDE68A;
  --orange-safety: #C2410C;
  --blue-tech: #1D4ED8;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-card: #E2E8F0;
  --border-dark: #1E293B;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-amber: 0 0 20px rgba(245, 158, 11, 0.25);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  color: var(--charcoal-black);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top bar */
.top-bar {
  background-color: var(--charcoal-black);
  color: #94A3B8;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0;
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.top-bar-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-bright);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-contact a {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 600;
}

.top-bar-contact a:hover {
  color: var(--amber-bright);
}

/* Header */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.logo-brand svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--charcoal-black);
  letter-spacing: -0.01em;
}

.logo-title .accent {
  color: var(--amber-safety);
}

.logo-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--amber-safety);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--amber-safety);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--slate-panel), var(--charcoal-black));
  color: #FFFFFF;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--charcoal-black);
  border-color: var(--amber-bright);
  box-shadow: var(--shadow-amber);
  color: var(--amber-bright);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-card);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--charcoal-black);
  cursor: pointer;
}

/* Page Hero */
.page-hero {
  background: radial-gradient(circle at top right, #1E2838 0%, #0B0E14 80%);
  color: #FFFFFF;
  padding: 4.5rem 0 3.75rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--amber-safety);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: 2.85rem;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.page-hero h1 .text-glow {
  background: linear-gradient(135deg, var(--amber-bright), #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-lead {
  font-size: 1.12rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 650px;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-card);
  background: #F1F5F9;
}

.breadcrumb-nav a {
  color: var(--amber-safety);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #94A3B8;
}

/* Section */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--amber-safety);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-xs);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.25rem;
  color: var(--charcoal-black);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.amber-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-bright), var(--orange-safety));
  margin: 1.25rem auto 1.5rem auto;
  border-radius: 2px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-safety);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-orange {
  background: rgba(194, 65, 12, 0.12);
  color: var(--orange-safety);
  border: 1px solid rgba(194, 65, 12, 0.3);
}

/* Feature Grid & Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 158, 11, 0.4);
}

.card-icon-svg {
  width: 52px;
  height: 52px;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--amber-safety);
}

.card-icon-svg svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal-black);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Spec List */
.spec-list {
  list-style: none;
  font-size: 0.88rem;
  border-top: 1px solid var(--border-card);
  padding-top: 1rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px dashed #F1F5F9;
}

.spec-list li span {
  color: var(--text-muted);
}

.spec-list li strong {
  color: var(--charcoal-black);
  font-weight: 600;
  text-align: right;
}

/* Split Rows */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Vector Diagram Frame */
.diagram-frame {
  background: linear-gradient(135deg, var(--charcoal-black), var(--slate-dark));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.diagram-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-safety), var(--orange-safety));
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b45309, #9a3412);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--amber-safety);
  border: 1.5px solid var(--amber-safety);
}

.btn-outline:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--amber-bright);
}

/* Forms */
.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  color: var(--charcoal-black);
}

.form-control, .form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--amber-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-check input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--amber-safety);
  width: 18px;
  height: 18px;
}

.form-check label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Legal Containers & Alerts */
.legal-box {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--amber-safety);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.legal-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--charcoal-black);
}

.legal-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.alert-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.alert-info {
  background-color: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
}

.alert-success {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
}

/* Result Card for Revocation */
.result-card {
  display: none;
  background: #FFFFFF;
  border: 2px solid var(--amber-bright);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  margin-top: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.result-card.visible {
  display: block;
}

.code-display {
  display: inline-block;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: #F8FAFC;
  color: var(--charcoal-black);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--amber-bright);
  margin: 1.25rem 0;
}

/* Accordion / FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-header {
  padding: 1.25rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  color: var(--charcoal-black);
  user-select: none;
}

.faq-header:hover {
  background-color: #F8FAFC;
  color: var(--amber-safety);
}

.faq-icon {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--amber-safety);
  transition: transform 0.2s ease;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: none;
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #F1F5F9;
}

.faq-card.open .faq-body {
  display: block;
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 14, 20, 0.7);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--charcoal-black);
  z-index: 1001;
  padding: 2rem 1.5rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-overlay.active {
  display: block;
}

.mobile-nav-panel.open {
  right: 0;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.mobile-nav-links {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-links a:hover {
  color: var(--amber-bright);
}

/* Footer */
.site-footer {
  background-color: var(--charcoal-black);
  color: #94A3B8;
  padding: 4.5rem 0 2.5rem 0;
  border-top: 2px solid var(--amber-safety);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--amber-bright);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--amber-bright);
  padding-left: 4px;
}

.afip-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #CBD5E1;
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .page-hero-grid, .split-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 2.15rem;
  }
  .top-bar-container {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
}
