/* FLIP Consulting — estilos del sitio estático.
   Replica el look del tema WordPress original (Bridge) sin sus 40+ hojas de estilo. */

:root {
  --accent: #00B050;
  --green: #00B050;
  --red: #EA2B1A;
  --blue: #0070C0;
  --yellow: #DED013;
  --link: #1F6CEB;
  --ink: #000;
  --muted: #3a3a3a;
  --heading: #303030;
  --content: 728px;
  --header-h: 96px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "News Cycle", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.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 { position: absolute; left: -999px; top: 0; z-index: 100; background: #000; color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.topbar { height: 16px; background: var(--accent); transition: height .25s; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; padding: 0 clamp(16px, 5vw, 64px);
  transition: height .25s;
}
.logo img { width: auto; height: 62px; transition: height .25s; }
.is-scrolled .topbar { height: 0; }
.is-scrolled .header-inner { height: 60px; }
.is-scrolled .logo img { height: 44px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: #000; font-size: 16px; letter-spacing: 1px;
  transition: color .15s;
}
.site-nav a:hover { text-decoration: none; }
.site-nav li:nth-child(4n + 1) a:hover { color: var(--green); }
.site-nav li:nth-child(4n + 2) a:hover { color: var(--red); }
.site-nav li:nth-child(4n + 3) a:hover { color: var(--blue); }
.site-nav li:nth-child(4n + 4) a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.site-nav .lang { margin-left: -10px; }
.site-nav .lang + .lang { margin-left: -18px; }
.site-nav .lang a { display: block; padding: 6px; opacity: .55; }
.site-nav .lang a[aria-current="true"], .site-nav .lang a:hover { opacity: 1; }

.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: #000; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1000px) {
  :root { --header-h: 76px; }
  .topbar { height: 10px; }
  .header-inner { height: 66px; }
  .logo img { height: 50px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; gap: 0; padding: 8px 16px 16px; text-align: center; }
  .site-nav li { border-bottom: 1px solid #000; margin: 0 calc((100% - min(100%, 420px)) / 2); width: min(100%, 420px); }
  .site-nav a { display: block; padding: 14px 4px; font-size: 18px; }
  .site-nav .lang, .site-nav .lang + .lang { width: auto; margin: 12px 10px 0; border: 0; }
  .site-nav .lang a { padding: 8px; }
  .site-nav .lang img { width: 24px; height: auto; }
}

/* ---------------------------------------------------------------- layout */
.container { width: min(100% - 32px, var(--content)); margin-inline: auto; }
main > .container { padding-block: 40px; }
main > .container + .container { padding-top: 0; }

.title {
  font: 400 32px/1.2 var(--font-head);
  text-transform: uppercase;
  color: var(--heading);
  margin: 1.4em 0 .8em;
}
.title:first-child { margin-top: .4em; }
.center { text-align: center; }
.prose p { margin: 0 0 1.4em; font-weight: 400; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid; place-items: center;
  height: clamp(260px, 45vw, 650px);
  background: #555 center / cover no-repeat;
  text-align: center;
  color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .18); }
.hero-text { position: relative; padding: 0 16px; }
.hero h1 {
  margin: 0;
  font: 400 clamp(30px, 4vw, 44px)/1.15 var(--font-head);
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, .55);
}
.hero-sub {
  margin: 18px 0 0;
  font: 400 18px var(--font-head);
  letter-spacing: 1pt; text-transform: uppercase;
  text-shadow: 2px 2px 6px #000;
}

/* ---------------------------------------------------------------- home slider */
.slider { position: relative; aspect-ratio: 1920 / 500; min-height: 360px; overflow: hidden; background: #ddd; }
.slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { display: grid; place-items: center; padding: 0 16px; }
.slide-text p {
  max-width: 760px; margin: 0; text-align: center;
  color: #fff; font: 300 clamp(26px, 3.2vw, 44px)/1.25 var(--font);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.slider-dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 2px solid #fff; background: transparent; cursor: pointer;
}
.slider-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 700px) { .slider { aspect-ratio: 3 / 4; max-height: 70vh; } }

/* ---------------------------------------------------------------- links con flecha */
.flip-links { list-style: none; margin: 0; padding: 0; }
.flip-links li + li { margin-top: 26px; }
.flip-links a, .cta, .submit {
  display: inline-flex; align-items: baseline; gap: 10px;
}
.flip-links a { display: flex; color: var(--link); }
.flip-links a:hover { text-decoration: none; }
.flip-links span {
  flex: 1;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--link);
  transition: border-color .15s, color .15s;
}
.flip-links a:hover span { color: #0d47a8; border-bottom-color: #0d47a8; border-bottom-width: 2px; padding-bottom: 5px; }
.arrow { flex: none; width: 13px; height: 13px; position: relative; top: 1px; }

/* ---------------------------------------------------------------- home */
.help-grid { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; }
.help .flip-links { max-width: 300px; }
.bloques { width: 260px; justify-self: center; }
@media (max-width: 640px) {
  .help-grid { grid-template-columns: 1fr; }
  .help .flip-links { max-width: none; }
  .bloques { width: 170px; }
}
.que-hacemos-svg { width: 100%; height: auto; margin: 0 auto; }
.que-hacemos-svg a rect, .que-hacemos-svg a g { transition: filter .15s; }
.que-hacemos-svg a:hover g { filter: brightness(1.12); }

/* ---------------------------------------------------------------- hacemos */
.lego-bullets { list-style: none; padding: 0; margin: 0 0 1em; }
.lego-bullets li { margin-bottom: 26px; padding-left: 2.1rem; position: relative; }
.lego-bullets li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.5rem; height: 1.1rem;
  background: center / contain no-repeat;
}
.lego-bullets li:nth-child(1)::before { background-image: url(/assets/img/piezaLego_azul.svg); }
.lego-bullets li:nth-child(2)::before { background-image: url(/assets/img/piezaLego_verde.svg); }
.lego-bullets li:nth-child(3)::before { background-image: url(/assets/img/piezaLego_rojo.svg); }

.flip-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 275px));
  justify-content: space-between; gap: 22px;
  padding-bottom: 60px !important;
}
.flip-card { height: 185px; perspective: 1000px; cursor: pointer; outline-offset: 6px; }
.flip-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .8s; transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: grid; place-items: center; background: #fff;
}
.flip-card-front { border: 5px solid #000; }
.flip-card-front span {
  font: 600 26px var(--font, sans-serif); font-family: "Raleway", var(--font);
  text-transform: uppercase; color: #3B3B3B;
  padding: 0 4px 2px;
  border-bottom: 5px solid var(--u);
}
.flip-card-back { transform: rotateY(180deg); padding: 6px; overflow: auto; }
.flip-card-back p { margin: 0; font: 400 15px/1.6 "Raleway", var(--font); text-align: center; }
@media (max-width: 640px) {
  .flip-cards { grid-template-columns: 1fr; justify-content: stretch; }
  .flip-card { height: 220px; }
}

/* ---------------------------------------------------------------- contagiamos */
.flip-letters { list-style: none; margin: 30px auto 36px; padding: 0; width: max-content; }
.flip-letters li { display: flex; align-items: flex-end; margin: 10px 0; }
.flip-letters img { width: auto; height: 26px; margin-right: 1px; }
.flip-letters span { line-height: 1; }
.materials {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px;
  justify-items: center; padding-bottom: 60px !important;
}
.materials a { display: block; width: min(100%, 230px); transition: transform .2s; }
.materials a:hover { transform: translateY(-3px); }

/* ---------------------------------------------------------------- somos */
.somos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; margin-top: 50px; }
.somos-grid p { margin: 0; padding: 0 12px; }
@media (max-width: 640px) {
  .somos-grid { grid-template-columns: 1fr; }
  .somos-img-2 { order: 4; }
}
.mondrian {
  display: flex; height: 15rem; margin: 30px 0 50px;
  border: 4px solid #000;
}
.mondrian button { font: inherit; border: 0; padding: 0; cursor: pointer; }
.m-col { display: flex; flex-direction: column; height: 100%; }
.m-left { width: 40%; border-right: 4px solid #000; }
.m-right { width: 60%; }
.m-row { display: flex; width: 100%; }
.m-left > .m-row:first-child, .m-red { border-bottom: 4px solid #000; }
.m-cell { position: relative; display: grid; place-items: center; color: #fff; box-shadow: 3px 3px 6px rgba(0, 0, 0, .67); z-index: 1; }
.m-red { background: rgb(247, 0, 13); }
.m-red img { width: 46px; transition: opacity .2s; }
.m-top { border-bottom: 4px solid #000; }
.m-photo {
  width: 95px; flex: none; border-right: 4px solid #000 !important;
  background: url(/assets/img/valeria.png) left top / cover no-repeat;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, .67); z-index: 1;
}
.m-mid { border-bottom: 4px solid #000; }
.m-mid > div { width: 40%; border-right: 4px solid #000; }
.m-blue { width: 60%; background: rgb(2, 112, 192); }
.m-name { font: 700 22px var(--font-head); text-transform: uppercase; color: #fff; transition: opacity .2s; }
.m-bottom > div:nth-child(1) { width: 15%; border-right: 4px solid #000; }
.m-green { width: 55%; border-right: 4px solid #000; background: rgb(37, 178, 81); box-shadow: 3px 3px 6px rgba(0, 0, 0, .67); }
.m-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #fff; font: 700 20px var(--font-head); text-transform: uppercase;
  opacity: 0; transition: opacity .25s;
}
.m-red .m-more { color: rgb(247, 0, 13); }
.m-blue .m-more { color: rgb(2, 112, 192); }
.m-cell:hover .m-more, .m-cell:focus-visible .m-more { opacity: 1; }
@media (max-width: 520px) { .mondrian { height: 12rem; } .m-name { font-size: 16px; } .m-photo { width: 64px; } }

.video-dialog {
  width: min(92vw, 900px); padding: 0; border: 0; background: #000;
  box-shadow: 0 0 40px rgba(0, 0, 0, .8); overflow: visible;
}
.video-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.video-dialog video { width: 100%; }
.dialog-close {
  position: absolute; top: -44px; right: 0;
  width: 40px; height: 40px; border: 0; background: none;
  color: #fff; font-size: 36px; line-height: 1; cursor: pointer;
}

/* ---------------------------------------------------------------- artículos */
.quotes {
  position: relative;
  max-width: 593px; min-height: 150px; margin: 10px auto 20px;
  padding: 34px 52px 44px;
  background: #f8f8f8 url(/assets/img/frases-bg.png) center bottom / contain no-repeat;
}
.q-track { display: grid; }
.q-slide {
  grid-area: 1 / 1; margin: 0; align-self: center;
  font: 700 18px/1.35 var(--font-head); text-transform: uppercase; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s;
}
.q-slide.is-active { opacity: 1; visibility: visible; }
.q-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: none; color: #b3b3b3; cursor: pointer;
}
.q-nav:hover { color: #000; }
.q-prev { left: 2px; }
.q-next { right: 2px; }
.cta { font: 700 25px var(--font-head); color: var(--blue); }
.cta .arrow { width: 16px; height: 16px; }
.cta:hover { text-decoration: none; }
.cta:hover span { text-decoration: underline; }

/* ---------------------------------------------------------------- material */
.material { min-height: 50vh; }
.material-img { width: 150px; margin: 10px 0 34px; }

/* ---------------------------------------------------------------- contacto */
.contact-form { margin-top: 30px; }
.field { display: block; margin-bottom: 36px; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"] {
  width: 100%; padding: 12px 14px;
  border: 2px solid #000; border-radius: 0; background: #fff;
  font: 400 15px var(--font); color: #000;
}
.contact-form input::placeholder { color: #9a9a9a; }
.contact-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.contact-form input[aria-invalid="true"] { border-color: var(--red); }
.slots { border: 0; padding: 0; margin: 0 0 30px; }
.slots legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 24px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.submit {
  padding: 10px 0; border: 0; background: none; cursor: pointer;
  font: 700 25px var(--font-head); color: var(--blue);
}
.submit:hover span { text-decoration: underline; }
.submit[disabled] { opacity: .5; cursor: wait; }
.form-status { min-height: 1.5em; font-weight: 700; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 0 0 30px; }
.footer-line { width: 59%; height: 3px; margin: 10px auto 15px; border: 0; border-radius: 4px; background: #5D94E9; }
.footer-inner {
  width: min(100% - 32px, 80%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { width: 100px; }
.certs { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6em; flex-wrap: wrap; justify-content: center; }
.certs img { height: 50px; width: auto; }
@media (max-width: 700px) {
  .footer-inner { justify-content: center; }
  .footer-logo { width: 80px; }
  .certs img { height: 32px; }
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, filter .15s;
}
.to-top:hover { filter: brightness(.85); }
.is-scrolled .to-top { opacity: 1; visibility: visible; transform: none; }

.notfound { min-height: 50vh; text-align: center; padding-top: 80px !important; }
.notfound .title { font-size: 80px; }

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