/* Páginas de las empresas de financiamiento (GreenSky, Wisetack, Turns).
   Llevan la marca de cada empresa, no la de Rey Electric; solo hay un enlace discreto para volver. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Montserrat', Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
html[lang="es"] .en, html[lang="en"] .es { display: none !important; }

/* Barra superior mínima: volver + idioma */
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 14px 20px; font-size: 14px; font-weight: 600; }
.fbar a { text-decoration: none; opacity: .85; }
.fbar a:hover { opacity: 1; text-decoration: underline; }
.fbar button { font: inherit; font-size: 12px; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; cursor: pointer; background: transparent; border: 1.5px solid currentColor; color: inherit; }
.fwrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.fbtn-img { display: block; transition: transform .2s, filter .2s; }
.fbtn-img:hover { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.fbtn-img:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 12px; }
.fnote { font-size: 13px; opacity: .9; }
.fpie { padding: 26px 20px 34px; text-align: center; font-size: 13px; }
.fpie a { font-weight: 700; }

/* Entrada suave */
.fin-anim { opacity: 0; transform: translateY(24px); animation: fin-in .8s cubic-bezier(.2,.8,.2,1) forwards; }
.fin-anim:nth-child(2) { animation-delay: .1s; } .fin-anim:nth-child(3) { animation-delay: .2s; } .fin-anim:nth-child(4) { animation-delay: .3s; }
@keyframes fin-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fin-anim { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- GreenSky ---------- */
.gs { background: #23843f; color: #fff; }
.gs-hero { padding: 20px 0 50px; text-align: center; }
.gs-header { width: min(736px, 100%); margin: 0 auto 26px; border-radius: 14px; }
.gs-logo { width: min(320px, 70%); margin: 0 auto 14px; }
.gs-from { margin: 0 0 30px; font-weight: 700; letter-spacing: .5em; font-size: 15px; text-transform: uppercase; }
.gs-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 34px; }
.gs-plan p { margin: 14px 0 0; font-weight: 700; font-size: 14px; line-height: 1.5; text-align: left; }
.gs-mid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; padding: 50px 0 40px; border-top: 1px solid rgba(255,255,255,.25); }
.gs-shield { width: 100%; max-width: 300px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); animation: gs-float 5s ease-in-out infinite; }
@keyframes gs-float { 50% { transform: translateY(-10px); } }
.gs-legal { font-size: 14px; line-height: 1.65; }
.gs-legal a { color: #fff; }
.gs-ehl { width: 90px; margin-top: 22px; }
.gs .fpie { background: #1d6f35; }
@media (max-width: 760px) {
  .gs-plans { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .gs-mid { grid-template-columns: 1fr; text-align: center; }
  .gs-shield { margin: 0 auto; max-width: 230px; }
  .gs-legal { text-align: left; }
  .gs-ehl { margin-left: auto; margin-right: auto; }
  .gs-from { letter-spacing: .3em; }
}

/* ---------- Wisetack ---------- */
.wt { background: #efefef; color: #31364c; }
.wt-hero { display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: center; padding: 30px 0 60px; }
.wt-titulo { width: min(460px, 100%); margin: 0 0 22px; }
.wt-logo { height: 40px; width: auto; margin: 0 0 22px; }
.wt-hero p { margin: 0 0 16px; font-size: 17px; }
.wt-facts { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.wt-facts li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.wt-facts li::before { content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #07c0ca url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.wt-btn { display: inline-block; width: min(300px, 100%); }
.wt-phone { width: 100%; max-width: 330px; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(49,54,76,.25)); animation: gs-float 6s ease-in-out infinite; }
.wt-calc { background: #fff; padding: 56px 0; }
.wt-calc h2 { margin: 0 0 8px; }
.wt-calc h2 img { width: min(420px, 90%); }
.wt-calc p { margin: 0 0 22px; }
.wt-frame { border-radius: 14px; overflow: hidden; border: 1px solid #dfe3ea; box-shadow: 0 14px 34px rgba(49,54,76,.1); background: #fff; }
.wt-frame iframe { display: block; width: 100%; height: 620px; border: 0; }
.wt-terms { padding: 46px 0 20px; font-size: 13px; line-height: 1.65; }
.wt-terms b { display: block; margin-bottom: 6px; font-size: 14px; }
.wt-terms ul { margin: 12px 0 0; padding-left: 18px; }
.wt .fpie { background: #e4e5e9; }
@media (max-width: 860px) {
  .wt-hero { grid-template-columns: 1fr; text-align: left; }
  .wt-phone { max-width: 240px; }
  .wt-frame iframe { height: 700px; }
}

/* ---------- Turns ---------- */
.tu { background: #efefef; color: #3b3b3b; }
.tu-hero { text-align: center; padding: 20px 0 40px; }
.tu-logo { width: min(420px, 85%); margin: 0 auto 30px; }
.tu-big { margin: 0; font: 800 clamp(30px, 5vw, 50px)/1.05 'Montserrat', Arial, sans-serif; color: #3b3b3b; text-transform: uppercase; }
.tu-big span.verde { color: #8b9b25; display: block; }
.tu-qual { max-width: 820px; margin: 0 auto; padding: 36px 34px; background: #fff; border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.tu-qual h2 { margin: 0 0 24px; font-size: 20px; text-align: center; }
.tu-q { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid #eee; font-weight: 600; }
.tu-q:first-of-type { border-top: 0; }
.tu-q img { width: 44px; }
.tu-apply { width: min(360px, 90%); margin: 34px auto 0; }
.tu .fpie { background: #e2e2e2; margin-top: 50px; }

/* Ajustes: Wisetack calculadora + términos lado a lado (como en el sitio actual) */
.wt-calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.wt-calc .wt-terms { padding: 10px 0 0; }
.wt-frame iframe { height: 560px; }
@media (max-width: 860px) { .wt-calc__grid { grid-template-columns: 1fr; } }

/* Turns: columna izquierda con el contenido y panel gris a la derecha (como en el sitio actual) */
.tu-grid { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 50px; align-items: start; padding: 20px 0 40px; }
.tu .tu-logo { width: 280px; margin: 10px 0 30px; }
.tu-h { margin: 0 0 22px; font: 800 clamp(30px, 3.6vw, 44px)/1.1 'Montserrat', Arial, sans-serif; color: #2b2b2b; }
.tu-h:last-child { margin: 30px 0 0; color: #8b9b25; }
.tu-lead { margin: 0 0 18px; font-size: 22px; font-weight: 700; color: #000; }
.tu .tu-q { grid-template-columns: 30px 1fr; gap: 16px; padding: 12px 0; border: 0; font-weight: 500; color: #3b3b3b; }
.tu .tu-q img { width: 28px; }
.tu .tu-q p { margin: 0; }
.tu .tu-apply { width: 280px; margin: 24px 0 0; }
.tu-side { position: sticky; top: 30px; min-height: 520px; border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.tu-side img { width: 80%; opacity: .9; }
@media (max-width: 860px) { .tu-grid { grid-template-columns: 1fr; } .tu-side { display: none; } }

/* GreenSky: el módulo oficial mide 650 px; en celular se adapta al ancho sin cambiar su contenido */
.gs-modulo { display: flex; justify-content: center; margin: 10px 0 26px; }
.gs-modulo .financing-module { max-width: 100%; background: #fff; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.gs-modulo .financing-module img { width: 100%; max-width: 640px; height: auto; display: block; }
.gs-modulo .financing-module a { display: block; transition: filter .2s; }
.gs-modulo .financing-module a:hover { filter: brightness(1.08); }
.gs-plans-txt { max-width: 650px; margin: 0 auto; text-align: left; font-weight: 700; font-size: 14px; }
.gs-plans-txt p { margin: 0 0 10px; }

/* Wisetack: estilos de la plantilla oficial (Montserrat, #31364C, botón #0C4E9E, enlaces #156ED7) */
.wt-h1 { margin: 0 0 24px; font: 800 50px/1.4 'Montserrat', sans-serif; color: #31364c; text-transform: uppercase; }
.wt-lg { margin: 0 0 24px; font-size: 18px; line-height: 1.5; color: #31364c; }
.wt-link { color: #156ed7; font-weight: 600; text-decoration: none; }
.wt-link:hover { text-decoration: underline; }
.wt .wt-facts { margin: 0 0 32px; font-size: 18px; }
.wt-btn-oficial { display: inline-flex; justify-content: center; align-items: center; padding: 12px 32px; margin: 0 0 32px; border-radius: 2px;
  background: #0c4e9e; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; text-transform: uppercase;
  transition: all 250ms cubic-bezier(.25,.46,.45,.94); }
.wt-btn-oficial:hover { transform: translate(0, -5px); }
.wt-small { margin: 0 0 20px; font-size: 12px; line-height: 1.6; color: #31364c; }
.wt .wt-frame iframe { height: 700px; }
@media (max-width: 991px) { .wt-h1 { font-size: 32px; } }
@media (max-width: 767px) { .wt-h1 { font-size: 26px; } .wt-lg { font-size: 16px; } .wt-small { font-size: 16px; } .wt-btn-oficial { font-size: 12px; } }
@media (max-width: 479px) { .wt-h1 { font-size: 24px; } .wt-btn-oficial { width: 100%; } }
