/*
Theme Name: Friotrans Renovado
Theme URI: https://friotranshermanosherencia.com/
Author: Friotrans Hermanos Herencia
Description: Tema corporativo para transporte frigorífico nacional e internacional.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: friotrans-renovado
*/

:root {
  --blue: #17459a;
  --blue-2: #0f3478;
  --navy: #071a38;
  --navy-2: #0a2349;
  --ice: #eaf3ff;
  --cyan: #5ac8fa;
  --white: #ffffff;
  --ink: #101c2d;
  --muted: #5f6f82;
  --line: #dce5ef;
  --sand: #f3f6fa;
  --shadow: 0 24px 60px rgba(5, 25, 58, .14);
  --radius: 22px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding: 112px 0; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(12, 39, 80, .08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 144px; height: 62px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  text-decoration: none;
  color: #233852;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: .01em;
}
.main-nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white) !important;
  box-shadow: 0 10px 24px rgba(23, 69, 154, .23);
}
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--navy); }

.hero {
  position: relative;
  min-height: 790px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media {
  background: url("assets/camion-friotrans-principal.png") 14% center / cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 19, 44, .97) 0%, rgba(7, 28, 61, .83) 44%, rgba(5, 22, 48, .28) 78%, rgba(5, 22, 48, .08) 100%),
    linear-gradient(180deg, rgba(3, 15, 34, .28), rgba(3, 15, 34, .38));
}
.hero-content { position: relative; z-index: 2; padding-top: 120px; }
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 850;
  color: #b9dcff;
}
.eyebrow.blue { color: var(--blue); }
.eyebrow.light { color: #90cfff; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 6.3vw, 6.25rem);
  line-height: .96;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-copy { max-width: 620px; margin: 28px 0 0; color: #dcecff; font-size: 1.18rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--white); box-shadow: 0 14px 28px rgba(23, 69, 154, .3); }
.button-primary:hover { background: #1d55bb; }
.button-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); background: rgba(255, 255, 255, .08); }
.button-light { background: var(--white); color: var(--navy); }
.button.full { width: 100%; }
.hero-trust {
  display: flex;
  gap: 42px;
  margin: 62px 0 0;
  padding: 24px 0 0;
  max-width: 820px;
  border-top: 1px solid rgba(255, 255, 255, .24);
  list-style: none;
}
.hero-trust li { display: grid; color: #c4d5e8; font-size: .82rem; line-height: 1.35; }
.hero-trust span { color: var(--white); font-size: 1.05rem; font-weight: 900; }
.hero-scroll {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 44px;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  writing-mode: vertical-rl;
  letter-spacing: .16em;
  font-size: .7rem;
  text-transform: uppercase;
}

.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.intro h2, .section-heading h2, .fleet-content h2, .coverage h2, .contact h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.3vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.intro-copy { padding-top: 42px; }
.intro-copy p { margin: 0 0 20px; color: var(--muted); font-size: 1.04rem; }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 8px; color: var(--blue); font-weight: 850; text-decoration: none; }

.services { color: var(--white); background: var(--navy); }
.section-heading { display: grid; grid-template-columns: 1.4fr .7fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.section-heading > p { margin: 0 0 6px; color: #b8c7db; }
.section-heading.dark-text > p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: #0c2448;
}
.service-card.featured { background: var(--blue); }
.service-number { align-self: flex-end; color: rgba(255, 255, 255, .52); font-size: .75rem; font-weight: 800; }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 58px 0 26px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 1.5rem; }
.service-card h3 { margin: 0 0 14px; font-size: 1.55rem; }
.service-card p { margin: 0; color: #c9d8eb; }
.service-card ul { margin: auto 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); list-style: none; color: #d5e3f4; font-size: .88rem; }
.service-card li + li { margin-top: 8px; }
.service-card li::before { content: "—"; margin-right: 9px; color: #8bcaff; }

.fleet { background: var(--sand); }
.fleet-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 100px); align-items: center; }
.fleet-photo { position: relative; }
.fleet-photo img { width: 100%; min-height: 560px; border-radius: var(--radius); object-fit: cover; object-position: 20% center; box-shadow: var(--shadow); }
.fleet-stamp {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border: 8px solid var(--sand);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  transform: rotate(-8deg);
}
.fleet-stamp strong { font-size: 1.35rem; line-height: 1; }
.fleet-stamp span { margin-top: 4px; font-size: .55rem; letter-spacing: .12em; }
.fleet-content > p:not(.eyebrow) { margin: 24px 0 34px; color: var(--muted); }
.feature-list { margin: 0; }
.feature-list div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid #cfd9e5; }
.feature-list div:last-child { border-bottom: 1px solid #cfd9e5; }
.feature-list dt { color: var(--blue); font-weight: 900; }
.feature-list dd { margin: 0; color: var(--muted); }

.coverage { overflow: hidden; color: var(--white); background: var(--blue-2); }
.coverage-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: center; }
.coverage-copy > p:not(.eyebrow) { color: #c8daf1; }
.route-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 34px; }
.route-tags span { padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: #dceaff; font-size: .82rem; }
.route-visual {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 45% 54%, rgba(91, 200, 250, .16), transparent 33%),
    #0b2e66;
  overflow: hidden;
}
.route-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 36px 36px; }
.route-visual svg { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); }
.route-visual path { fill: none; stroke: #69ccff; stroke-width: 2.2; stroke-dasharray: 8 9; filter: drop-shadow(0 0 8px rgba(90, 200, 250, .5)); }
.route-point { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 8px; color: #ddecff; font-size: .78rem; }
.route-point i { width: 13px; height: 13px; border: 3px solid #ccefff; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 9px rgba(90, 200, 250, .13); }
.point-origin { left: 42%; bottom: 26%; }
.point-north { left: 29%; top: 16%; }
.point-west { left: 8%; top: 48%; }
.point-east { right: 14%; top: 36%; }
.point-south { left: 54%; bottom: 7%; }
.point-europe { right: 18%; top: 8%; }

.process { background: var(--white); }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { padding: 28px 25px 0 0; }
.process-list li + li { padding-left: 25px; border-left: 1px solid var(--line); }
.process-list span { display: block; margin-bottom: 38px; color: var(--blue); font-size: .72rem; font-weight: 900; }
.process-list strong { display: block; font-size: 1.2rem; }
.process-list p { color: var(--muted); font-size: .9rem; }

.contact { color: var(--white); background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(55px, 8vw, 110px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-copy > p:not(.eyebrow) { color: #b9cce3; }
address { margin-top: 48px; font-style: normal; }
address div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
address div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
address span { display: block; margin-bottom: 4px; color: #86b9ee; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
address a { text-decoration: none; font-weight: 750; overflow-wrap: anywhere; }
address p { margin: 0; }
.quote-form { min-width: 0; padding: 38px; border-radius: var(--radius); background: var(--white); color: var(--ink); overflow-wrap: anywhere; box-shadow: 0 26px 70px rgba(0, 0, 0, .24); }
.preview-note { margin: -6px 0 22px; padding: 10px 12px; border-radius: 8px; background: var(--ice); color: var(--blue-2); font-size: .78rem; font-weight: 750; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form label { display: grid; gap: 7px; margin-bottom: 16px; color: #31445d; font-size: .78rem; font-weight: 800; }
.quote-form input, .quote-form textarea { width: 100%; border: 1px solid #ced9e6; border-radius: 9px; padding: 12px 13px; background: #fbfcfe; color: var(--ink); }
.quote-form textarea { resize: vertical; }
.check-field { grid-template-columns: auto 1fr !important; align-items: start; gap: 10px !important; font-weight: 600 !important; }
.check-field input { width: 18px; height: 18px; margin-top: 2px; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--blue); font-size: .85rem; font-weight: 700; }
.quote-form .wpcf7-form p { margin: 0 0 16px; }
.quote-form .wpcf7-form label { margin: 0; }
.quote-form .wpcf7-form-control-wrap { display: block; margin-top: 7px; }
.quote-form .wpcf7-list-item { margin: 0; }
.quote-form input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 8px 0 0; vertical-align: top; }
.quote-form input[type="submit"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  padding: 12px 18px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-weight: 850;
}
.quote-form input[type="submit"]:hover { background: #1d55bb; }
.quote-form .wpcf7-not-valid-tip { margin-top: 5px; color: #b42318; font-size: .78rem; }
.quote-form .wpcf7-response-output { margin: 16px 0 0 !important; border-radius: 8px; padding: 10px 12px !important; font-size: .84rem; }

.content-page { min-height: 66vh; padding-top: 170px; background: var(--sand); }
.content-page-inner { max-width: 940px; }
.content-page article, .content-page-inner > h1, .content-page-inner > p { border-radius: var(--radius); }
.content-page article { padding: clamp(30px, 6vw, 70px); background: var(--white); box-shadow: var(--shadow); }
.content-page h1 { margin: 0 0 30px; color: var(--navy); font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; letter-spacing: -.045em; }
.content-page h1 a { text-decoration: none; }
.entry-content { color: #3d4f65; }
.entry-content h2, .entry-content h3 { color: var(--navy); }
.entry-content a { color: var(--blue); }
.entry-content img { height: auto; }

body.admin-bar .site-header { top: 32px; }

.site-footer { padding: 74px 0 24px; background: #041228; color: #b7c8dc; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 60px; }
.footer-brand img { width: 160px; height: 85px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 360px; }
.footer-grid strong { display: block; margin-bottom: 16px; color: var(--white); }
.footer-grid > div:not(.footer-brand) a { display: block; margin: 8px 0; text-decoration: none; font-size: .88rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

@media (max-width: 920px) {
  .section { padding: 88px 0; }
  .nav-toggle { display: block; cursor: pointer; }
  .main-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; }
  .nav-cta { margin-top: 6px; text-align: center; }
  .hero { min-height: 760px; }
  .hero-trust { gap: 26px; }
  .intro-grid, .fleet-grid, .coverage-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; }
  .service-icon { margin-top: 34px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .fleet-photo { max-width: 720px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li:nth-child(3) { border-left: 0; }
  .process-list li:nth-child(n+3) { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .header-inner { min-height: 76px; }
  .brand img { width: 122px; height: 56px; }
  .hero { min-height: 790px; }
  .hero-media { background-position: 16% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(3, 17, 40, .84), rgba(3, 17, 40, .92)); }
  .hero-content { padding-top: 108px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.7rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
  .hero-scroll { display: none; }
  .intro h2, .section-heading h2, .fleet-content h2, .coverage h2, .contact h2 { font-size: 2.45rem; }
  .service-card { padding: 26px; }
  .fleet-photo img { min-height: 370px; }
  .fleet-stamp { right: 8px; bottom: -34px; }
  .feature-list div { grid-template-columns: 1fr; gap: 4px; }
  .route-visual { min-height: 390px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { padding: 26px 0 !important; border: 0 !important; border-top: 1px solid var(--line) !important; }
  .process-list span { margin-bottom: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .content-page { padding-top: 130px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Ajuste de desbordamiento móvil */
.contact-grid > * { min-width: 0; }
address a, .quote-form { overflow-wrap: anywhere; }
.quote-form { min-width: 0; }
