/*
 * Base del sitio: reemplaza lo que aportaba el tema Flatsome.
 * Reproduce la grilla (row/col), secciones, textos, imágenes, botones, acordeón, cajas,
 * banner y formularios con las mismas clases y especificidad, para que los CSS de cada
 * landing (assets/css/<página>.css) se apliquen igual que en WordPress.
 * Se carga DESPUÉS del CSS de la página, igual que Flatsome.
 */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fuentes/poppins-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fuentes/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fuentes/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fuentes/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fuentes/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fuentes/poppins-800-latin.woff2") format("woff2"); }

/* ---------- Documento ---------- */
html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: #777;
  background-color: #fff;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (no hidden): recorta igual pero no rompe el encabezado fijo (position: sticky) */
  overflow-x: clip;
}
main { display: block; }
#wrapper, #main { position: relative; background-color: #fff; }

h1, h2, h3, h4, h5, h6 { color: #555; width: 100%; margin-top: 0; margin-bottom: .5em; text-rendering: optimizeSpeed; }
h1 { font-size: 1.7em; line-height: 1.3; }
h2 { font-size: 1.6em; line-height: 1.3; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.125em; }
h5 { font-size: 1em; }
h6 { font-size: .85em; opacity: .8; }
@media (max-width: 549px) {
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.2em; }
  h3 { font-size: 1em; }
}
p { margin-top: 0; }
p, dl, ol, ul, pre, form, table, address, fieldset, figure { margin-bottom: 1.3em; }
ul, ol { margin-top: 0; padding: 0; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin-bottom: .6em; }
.col-inner ul li, .col-inner ol li { margin-left: 1.3em; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
a { color: #446084; text-decoration: none; background-color: transparent; }
a:hover { color: #111; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; border-style: none; }
svg:not(:root) { overflow: hidden; }
hr { border-width: 1px 0 0; border-style: solid; border-color: rgba(0, 0, 0, .1); margin: 15px 0; height: 0; }
blockquote { position: relative; margin: 0 0 1.25em; padding: 0 1.25em; border-left: 2px solid rgba(0, 0, 0, .1); font-size: 1.2em; font-style: italic; color: #555; }
button { overflow: visible; font: inherit; }

.dark, .dark p, .dark td { color: #f1f1f1; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark a:not(.button) { color: #fff; }
.dark .text-muted { color: rgba(255, 255, 255, .6); }

/* ---------- Utilidades ---------- */
.relative { position: relative !important; }
.fill { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: 100%; padding: 0 !important; margin: 0 !important; }
.no-click { pointer-events: none; }
.clearfix::after { content: ""; display: table; clear: both; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-center > div, .text-center .button:last-of-type, .text-right .button:last-of-type { margin-right: 0 !important; }
.hidden { display: none !important; }

/* ---------- Secciones ---------- */
.section {
  position: relative;
  display: flex;
  flex-flow: row;
  align-items: center;
  width: 100%;
  min-height: auto;
  padding: 30px 0;
}
.section-bg { overflow: hidden; }
.section-content { width: 100%; z-index: 1; }

/* ---------- Grilla ---------- */
.container, .row { width: 100%; margin-left: auto; margin-right: auto; }
.row { display: flex; flex-flow: row wrap; max-width: 1080px; }
.row .row:not(.row-collapse) { width: auto; margin-left: -15px; margin-right: -15px; padding-left: 0; padding-right: 0; }
.col { position: relative; width: 100%; margin: 0; padding: 0 15px 30px; }
.col-inner {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  flex: 1 0 auto;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}
@media screen and (min-width: 850px) {
  .col:first-child .col-inner { margin-left: auto; margin-right: 0; }
  .col + .col .col-inner { margin-left: 0; margin-right: auto; }
}
.row.align-middle { align-items: center; }
.row.align-bottom { align-items: flex-end; }
.row.align-top { align-items: flex-start; }
.row.align-equal > .col { display: flex; }
.row.align-center { justify-content: center; }

.small-1 { max-width: 8.3333333333%; flex-basis: 8.3333333333%; }
.small-2 { max-width: 16.6666666667%; flex-basis: 16.6666666667%; }
.small-3 { max-width: 25%; flex-basis: 25%; }
.small-4 { max-width: 33.3333333333%; flex-basis: 33.3333333333%; }
.small-5 { max-width: 41.6666666667%; flex-basis: 41.6666666667%; }
.small-6 { max-width: 50%; flex-basis: 50%; }
.small-7 { max-width: 58.3333333333%; flex-basis: 58.3333333333%; }
.small-8 { max-width: 66.6666666667%; flex-basis: 66.6666666667%; }
.small-9 { max-width: 75%; flex-basis: 75%; }
.small-10 { max-width: 83.3333333333%; flex-basis: 83.3333333333%; }
.small-11 { max-width: 91.6666666667%; flex-basis: 91.6666666667%; }
.small-12 { max-width: 100%; flex-basis: 100%; }
@media screen and (min-width: 550px) {
  .medium-1 { max-width: 8.3333333333%; flex-basis: 8.3333333333%; }
  .medium-2 { max-width: 16.6666666667%; flex-basis: 16.6666666667%; }
  .medium-3 { max-width: 25%; flex-basis: 25%; }
  .medium-4 { max-width: 33.3333333333%; flex-basis: 33.3333333333%; }
  .medium-5 { max-width: 41.6666666667%; flex-basis: 41.6666666667%; }
  .medium-6 { max-width: 50%; flex-basis: 50%; }
  .medium-7 { max-width: 58.3333333333%; flex-basis: 58.3333333333%; }
  .medium-8 { max-width: 66.6666666667%; flex-basis: 66.6666666667%; }
  .medium-9 { max-width: 75%; flex-basis: 75%; }
  .medium-10 { max-width: 83.3333333333%; flex-basis: 83.3333333333%; }
  .medium-11 { max-width: 91.6666666667%; flex-basis: 91.6666666667%; }
  .medium-12 { max-width: 100%; flex-basis: 100%; }
}
@media screen and (min-width: 850px) {
  .large-1 { max-width: 8.3333333333%; flex-basis: 8.3333333333%; }
  .large-2 { max-width: 16.6666666667%; flex-basis: 16.6666666667%; }
  .large-3 { max-width: 25%; flex-basis: 25%; }
  .large-4 { max-width: 33.3333333333%; flex-basis: 33.3333333333%; }
  .large-5 { max-width: 41.6666666667%; flex-basis: 41.6666666667%; }
  .large-6 { max-width: 50%; flex-basis: 50%; }
  .large-7 { max-width: 58.3333333333%; flex-basis: 58.3333333333%; }
  .large-8 { max-width: 66.6666666667%; flex-basis: 66.6666666667%; }
  .large-9 { max-width: 75%; flex-basis: 75%; }
  .large-10 { max-width: 83.3333333333%; flex-basis: 83.3333333333%; }
  .large-11 { max-width: 91.6666666667%; flex-basis: 91.6666666667%; }
  .large-12 { max-width: 100%; flex-basis: 100%; }
}

/* ---------- Texto, HTML, separador ---------- */
.text { position: relative; }
.gap-element { position: relative; }

/* ---------- Imágenes ---------- */
.img { position: relative; width: 100%; }
.img, .img-inner { position: relative; }
.img-inner { overflow: hidden; }
.img-inner img { width: 100%; }
.img .img-inner { margin: 0; }
.image-cover {
  position: relative;
  height: auto;
  overflow: hidden;
  padding-top: 100%;
  background-position: 50% 50%;
  background-size: cover;
}
.image-cover img, .image-cover video {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ---------- Botones ---------- */
.button, input[type="submit"], input[type="button"], input[type="reset"] {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 2.5em;
  margin-top: 0;
  margin-right: 1em;
  padding: 0 1.2em;
  border: 1px solid transparent;
  border-radius: 0;
  background-color: transparent;
  color: currentColor;
  font-size: .97em;
  font-weight: bolder;
  letter-spacing: .03em;
  line-height: 2.4em;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  vertical-align: middle;
  cursor: pointer;
  transition: transform .3s, border .3s, background .3s, box-shadow .3s, opacity .3s, color .3s;
}
.button span { display: inline-block; line-height: 1.6; }
.button i { position: relative; top: -1.5px; vertical-align: middle; }
/* Colores de Flatsome con especificidad baja (:where) para que siempre ganen las reglas de cada página */
.button:where(.primary:not(.is-outline)), input[type="submit"] { background-color: #446084; color: #fff; }
.button:where(.alert:not(.is-outline)) { background-color: #b20000; color: #fff; }
.button:where(.white:not(.is-outline)) { background-color: #fff; color: #666; }
.button:where(.is-outline) { border: 2px solid currentColor; background-color: transparent; line-height: 2.19em; }
.button:where(.primary.is-outline) { color: #446084; }
.button:where(.alert.is-outline) { color: #b20000; }
.button:where(.white.is-outline) { color: #fff; }
.button:where(.primary.is-outline):hover { background-color: #446084; border-color: #446084; color: #fff; }
.button:where(.is-link) { padding-left: 0; padding-right: 0; border-width: 0; background-color: transparent; color: #446084; }
.button:where(.is-link):hover { color: #111; }
.button:hover { opacity: 1; }
[class^="icon-"], [class*=" icon-"] { display: inline-block; font-style: normal; line-height: 1.2; }
[class^="icon-"] svg, [class*=" icon-"] svg { display: block; width: 1em; height: 1em; }

/* ---------- Acordeón ---------- */
.accordion { margin-bottom: 1.3em; }
.accordion-item { position: relative; }
.accordion-title {
  position: relative;
  display: block;
  padding: .6em 0 .6em 2.3em;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 110%;
  transition: border .2s ease-out, background-color .3s;
}
.accordion-title.active { border-color: #446084; color: #446084; font-weight: bolder; }
.accordion .toggle {
  position: absolute;
  top: .7em;
  left: 0;
  width: 2.3em;
  height: 1.5em;
  margin: 0 0 0 .25em;
  padding: 0;
  border: 0;
  background: none;
  color: currentColor;
  line-height: 1.5em;
  opacity: .6;
  cursor: pointer;
  transform-origin: 50% 50%;
}
.accordion .toggle i { display: inline-block; transition: transform .3s; }
.accordion .toggle i svg { width: 1.2em; height: 1.2em; }
.accordion-title.active .toggle i { transform: rotate(180deg); }
.accordion-inner { display: none; padding: 1em 2.3em; }
.accordion-item.is-open > .accordion-inner, .accordion-title.active + .accordion-inner { display: block; }

/* ---------- Caja con imagen ---------- */
.box { position: relative; width: 100%; margin: 0 auto; }
.box-image { position: relative; height: auto; margin: 0 auto; overflow: hidden; }
.box-image img { width: 100%; max-width: 100%; margin: 0 auto; }
.box-text { position: relative; width: 100%; padding-top: .7em; padding-bottom: 1.4em; font-size: .9em; }
.box-text p { margin-top: .1em; margin-bottom: .1em; }

/* ---------- Banner con video ---------- */
.banner { position: relative; width: 100%; min-height: 30px; background-color: #446084; }
.banner-bg { overflow: hidden; }
.banner-layers { position: absolute; top: 0; left: 0; right: 0; bottom: 0; height: 100%; max-width: none; }
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-fill { background-size: cover !important; background-repeat: no-repeat !important; background-position: 50% 50%; }

/* ---------- Slider (logos) ---------- */
.slider-wrapper { position: relative; }
.slider { position: relative; overflow: hidden; }
.eco-slider-track { display: flex; transition: transform .7s ease; will-change: transform; }
.eco-slide { flex: 0 0 100%; max-width: 100%; }
/* Cada pasada del slider ocupa exactamente su celda (sin los márgenes negativos de las filas anidadas). */
.eco-slider-track > .eco-slide > .row { width: 100%; margin-left: 0; margin-right: 0; }

/* ---------- Formularios ---------- */
form { margin-bottom: 0; }
label, legend { display: block; margin-bottom: .4em; font-size: .9em; font-weight: bold; }
fieldset { margin: 0; padding: 0; border-width: 0; }
input[type="email"], input[type="date"], input[type="search"], input[type="number"], input[type="text"],
input[type="tel"], input[type="url"], input[type="password"], textarea, select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 2.507em;
  padding: 0 .75em;
  border: 1px solid #ddd;
  border-radius: 0;
  background-color: #fff;
  color: #333;
  font-family: inherit;
  font-size: .97em;
  vertical-align: middle;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
  transition: color .3s, border .3s, background .3s, opacity .3s;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 120px; padding-top: .7em; }
select {
  padding-right: 1.9em;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: right .45em top 50%;
  background-repeat: no-repeat;
  background-size: auto 16px;
}
input[type="radio"], input[type="checkbox"] { display: inline; margin-right: 10px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #446084; box-shadow: 0 0 5px #ccc; }
input[type="submit"] { -webkit-appearance: none; appearance: none; }
