/*
Theme Name: Mi Pagina Web
Theme URI: http://localhost/mipaginaweb/
Author: Gestilabor
Description: Tema con estilo del flyer publicitario GESTI-LABOR (navy + naranja).
Version: 1.2.0
Text Domain: mipaginaweb
*/

:root {
  --navy: #002A64;
  --navy-deep: #001C50;
  --navy-mid: #073475;
  --orange: #F3A704;
  --orange-hot: #F9A504;
  --sky: #4BA3E8;
  --sky-soft: #D7E9FF;
  --ink: #002A64;
  --muted: #546380;
  --paper: #F7FAFF;
  --white: #ffffff;
  --line: #D5E2F2;
  --shadow: 0 14px 34px rgba(0, 42, 100, 0.12);
  --radius: 12px;
  --max: 1120px;
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Montserrat", "Segoe UI", sans-serif;
  --font-script: "Pacifico", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-top {
  background: var(--navy-deep);
  color: #d7e4f7;
  font-size: 0.85rem;
}
.site-top .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.site-top a { color: var(--orange); font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 3px solid var(--orange);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
}
.brand > span {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  border-left: 2px solid var(--line);
  padding-left: 0.75rem;
  line-height: 1.15;
}
.brand strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-transform: uppercase;
}
.brand > span > span {
  color: var(--sky);
  font-family: var(--font-script);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy) !important;
  box-shadow: 0 10px 22px rgba(243, 167, 4, 0.35);
}
.btn-primary:hover {
  background: var(--orange-hot);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white) !important;
  border: 2px solid var(--orange);
}
.btn-ghost:hover {
  background: var(--orange);
  color: var(--navy) !important;
}

/* HERO estilo flyer */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: min(72vh, 620px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--navy);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem) max(1rem, calc((100vw - var(--max)) / 2));
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0 -18% 0 auto;
  width: 42%;
  background: var(--navy);
  clip-path: polygon(0 0, 68% 0, 100% 100%, 0 100%);
  z-index: -1;
}
.hero-kicker {
  margin: 0 0 0.6rem;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  text-transform: uppercase;
  max-width: 11ch;
}
.hero h1 .accent { color: var(--orange); }
.hero-script {
  margin: 0.9rem 0 1.3rem;
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--sky);
  line-height: 1.25;
}
.hero p {
  margin: 0;
  max-width: 30rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.hero-media {
  position: relative;
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(0, 42, 100, 0.35), transparent 28%),
    url("assets/flyer-gesti.jpg") 72% 18% / cover no-repeat;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 28, 80, 0.35));
}

.section { padding: 4rem 0; }
.section-head {
  text-align: center;
  margin-bottom: 2.2rem;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-title.light { color: var(--white); }
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.85rem auto 0.4rem;
}
.section-divider::before,
.section-divider::after {
  content: "";
  width: min(28vw, 140px);
  height: 3px;
  background: var(--orange);
  border-radius: 999px;
}
.section-divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(243, 167, 4, 0.2);
}
.section-lead {
  margin: 0.6rem auto 0;
  color: var(--muted);
  max-width: 40rem;
  text-align: center;
}
.section-kicker {
  margin: 0 0 0.35rem;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-align: center;
}

.grid-3, .grid-2, .grid-services {
  display: grid;
  gap: 1.25rem;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0.8rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.card a { color: var(--sky); font-weight: 700; }
.card a:hover { color: var(--orange); }

.service-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 0.85rem 0.4rem;
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 42, 100, 0.18);
}
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.service-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}
.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.whatsapp-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 2.2rem auto 0;
  padding: 0.95rem 1.25rem;
  max-width: 720px;
  border-radius: 999px;
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid #bcd7f7;
}
.whatsapp-bar span.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.2);
}
.whatsapp-bar a { color: var(--navy); }
.whatsapp-bar a:hover { color: var(--orange); }

.band {
  background:
    radial-gradient(circle at top right, rgba(243, 167, 4, 0.18), transparent 30%),
    linear-gradient(145deg, var(--navy), var(--navy-deep));
  color: var(--white);
}
.band .section-lead { color: rgba(255, 255, 255, 0.78); }
.band .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.band .card h3 { color: var(--orange); }
.band .card p,
.band .card ul { color: rgba(255, 255, 255, 0.88); }
.band .card a { color: var(--orange); }

.page-hero {
  padding: 3rem 0 1.2rem;
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy) 70%, transparent 70%);
  color: var(--white);
}
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--white);
}
.content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.content-block h2,
.content-block h3 {
  font-family: var(--font-display);
  color: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}
.contact-item strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.site-footer {
  margin-top: 0;
  background: var(--navy-deep);
  color: #c9d7ec;
  padding: 2.6rem 0 1.4rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--orange);
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--orange);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-cta {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--white);
  margin: 0 0 1.4rem;
  text-align: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.footer-copy {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #8ea2c0;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding: 2.6rem 1.25rem 2rem;
  }
  .hero-copy::after { display: none; }
  .hero-media { min-height: 260px; order: -1; }
  .grid-3, .grid-2, .grid-services, .footer-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
