/* ═══════════════════════════════════════════════════════════════
   FRIVIC CARGAS Y SERVICIOS SRL — Stylesheet
   Paleta: azul navy / azul medio / blanco / gris claro
   ═══════════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --navy:      #0d2057;
  --blue:      #1a4fd6;
  --blue-mid:  #2563eb;
  --blue-lt:   #3b82f6;
  --blue-sky:  #eff6ff;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-600:  #475569;
  --gray-800:  #1e293b;
  --accent:    #60a5fa;
  --wa-green:  #25d366;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

/* ─── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-mid);
  color: var(--white);
  border-color: var(--blue-mid);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

.btn-nav {
  background: var(--blue-mid);
  color: var(--white);
  padding: 9px 20px;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--navy); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Section shared ────────────────────────────────────────── */
.section       { padding: 96px 0; }
.section-gray  { background: var(--gray-50); }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}
.section-label.light { color: var(--accent); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }

.section-body {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.navbar.scrolled .nav-logo img { filter: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.navbar.scrolled .nav-links a { color: var(--gray-800); }
.nav-links a:hover { color: var(--accent); }
.navbar.scrolled .nav-links a:hover { color: var(--blue-mid); }
.nav-links .btn-nav { color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--navy); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 32, 87, 0.82) 0%,
    rgba(13, 32, 87, 0.65) 50%,
    rgba(26, 79, 214, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 760px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--navy);
  padding: 28px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SPLIT LAYOUT (nosotros / cobertura)
   ═══════════════════════════════════════════════════════════════ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }

.split-text .section-title { margin-bottom: 20px; }

.quote {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-mid);
  border-left: 4px solid var(--blue-mid);
  padding-left: 18px;
  margin: 28px 0 32px;
  font-style: italic;
}

.split-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.image-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(13, 32, 87, .85);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS (diferenciadores)
   ═══════════════════════════════════════════════════════════════ */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-sky);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue-mid);
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img { transform: scale(1.05); }

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,32,87,.3) 100%);
}

.service-body {
  padding: 24px;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-sky);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  margin-bottom: 14px;
}
.service-icon svg { width: 20px; height: 20px; }

.service-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-mid);
  transition: color var(--transition), gap var(--transition);
}
.service-link:hover { color: var(--navy); gap: 8px; }

/* ═══════════════════════════════════════════════════════════════
   GALLERY STRIP
   ═══════════════════════════════════════════════════════════════ */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 260px;
  overflow: hidden;
}

.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.9);
}
.gallery-strip img:hover {
  transform: scale(1.04);
  filter: brightness(1.05);
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   COBERTURA
   ═══════════════════════════════════════════════════════════════ */
.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-800);
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--blue-mid);
  border-radius: 50%;
  flex-shrink: 0;
}

.coverage-extra {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-sky);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 28px;
  color: var(--blue-mid);
}
.coverage-extra p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.coverage-extra svg { flex-shrink: 0; margin-top: 2px; }

.map-wrap iframe { box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════════════════════════
   NÚMEROS / SOCIAL PROOF
   ═══════════════════════════════════════════════════════════════ */
.section-numbers {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a8f 100%);
  padding: 96px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.number-card {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  transition: background var(--transition);
}
.number-card:hover { background: rgba(255,255,255,.1); }

.number-value {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
}

.number-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 12px;
  transition: all var(--transition);
  background: var(--white);
  cursor: pointer;
}

.contact-card:not(.static):hover {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  transform: translateX(4px);
}

.contact-card.whatsapp .contact-card-icon { background: #dcfce7; color: var(--wa-green); }
.contact-card.phone   .contact-card-icon  { background: var(--blue-sky); color: var(--blue-mid); }
.contact-card.email   .contact-card-icon  { background: #fef3c7; color: #d97706; }
.contact-card.location .contact-card-icon { background: var(--gray-100); color: var(--gray-600); }

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon svg { width: 20px; height: 20px; }

.contact-card-text { display: flex; flex-direction: column; gap: 2px; }
.contact-card-text strong { font-size: 0.875rem; font-weight: 700; color: var(--navy); }
.contact-card-text span  { font-size: 0.85rem; color: var(--gray-600); }

/* ─── Form ──────────────────────────────────────────────────── */
.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand img {
  height: 70px;
  object-fit: contain;
  margin-bottom: 16px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links li a:hover { color: var(--white); }

.footer-contact li {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP
   ═══════════════════════════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse-wa 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 36px rgba(37,211,102,.6);
  animation: none;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 6px 28px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 6px 40px rgba(37,211,102,.7); }
}

/* ─── Reveal on scroll ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid  { grid-template-columns: repeat(2, 1fr); }
  .split-layout  { grid-template-columns: 1fr; gap: 48px; }
  .split-layout.reverse { direction: ltr; }
  .split-image img { height: 360px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .footer-brand  { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow-md);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--gray-800) !important; padding: 12px 24px; width: 100%; }
  .nav-links .btn-nav { margin: 8px 24px; width: calc(100% - 48px); justify-content: center; }
  .nav-toggle { display: flex; }

  .hero-content { padding-top: 120px; padding-bottom: 60px; }
  .hero-title   { font-size: 2.8rem; }

  .stats-grid   { flex-direction: column; gap: 8px; }
  .stat-divider { width: 80px; height: 1px; }

  .cards-grid-4  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); height: 320px; }

  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form   { padding: 24px; }
  .form-row       { grid-template-columns: 1fr; }

  .numbers-grid  { grid-template-columns: 1fr 1fr; }
  .footer-inner  { grid-template-columns: 1fr; gap: 32px; }

  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 16px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .hero-title    { font-size: 2.2rem; }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gallery-strip { grid-template-columns: 1fr; height: auto; }
  .gallery-strip img { height: 200px; }
  .numbers-grid  { grid-template-columns: 1fr; }
}
