/* ==========================================================================
   SIER Online — Capa de diseño compartida (site.css)
   --------------------------------------------------------------------------
   Se carga AL FINAL en los dos layouts (después de css/app.css, style.css,
   price1.css y overrides.css), para poder unificar decisiones de diseño sin
   tocar los CSS minificados de la plantilla.

   Contenido:
     1. Tokens (colores, radios, sombras, tipografía)
     2. Botones (.nile-bottom → pill, coherente con los CTA nuevos)
     3. Formularios
     4. Detalles de accesibilidad

   Regla: aquí solo van decisiones GLOBALES y reversibles. El CSS particular
   de cada sección sigue viviendo en su vista o partial.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Paleta: una sola familia de azules derivada del navy y el celeste */
  --so-navy: #1E4682;
  --so-navy-dark: #16386b;
  --so-sky: #00ACEE;
  --so-sky-light: #38bdf2;

  /* Textos y líneas */
  --so-ink: #1f2437;
  --so-text: #5b6474;
  --so-line: #E6EDF5;
  --so-line-soft: #D7E3F2;

  /* Fondos */
  --so-bg-soft: #F1F9FF;
  --so-white: #FFFFFF;

  /* Radios: pill para botones, 18 para tarjetas, 12 para campos */
  --so-radius-pill: 999px;
  --so-radius-card: 18px;
  --so-radius-field: 12px;

  /* Sombras */
  --so-shadow-card: 0 8px 24px rgba(30, 70, 130, .06);
  --so-shadow-btn: 0 10px 20px -14px rgba(30, 70, 130, .50);
  --so-shadow-btn-hover: 0 18px 30px -16px rgba(30, 70, 130, .80);

  /* Tipografía */
  --so-font: 'Poppins', 'Muli', Arial, sans-serif;
  --so-font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- 2. Botones --------------------------------------------------- */
/* El tema pintaba estos botones cyan con radio 5px y hover gris (#555).
   Ahora son pill, con hover navy (color de marca) y una elevación suave. */
.nile-bottom.layout-1,
.nile-bottom.layout-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border: 2px solid transparent;
  border-radius: var(--so-radius-pill);
  background-color: var(--so-sky);
  color: var(--so-white);
  font-family: var(--so-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--so-shadow-btn);
  transition: background-color .25s ease, border-color .25s ease,
              color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.nile-bottom.layout-1:hover,
.nile-bottom.layout-1:focus,
.nile-bottom.layout-2:hover,
.nile-bottom.layout-2:focus {
  padding: 15px 34px; /* neutraliza el salto de padding del tema */
  background-color: var(--so-navy);
  border-color: var(--so-navy);
  color: var(--so-white);
  transform: translateY(-2px);
  box-shadow: var(--so-shadow-btn-hover);
}

/* ---------- 3. Formularios ---------------------------------------------- */
.form-control {
  border-color: var(--so-line-soft);
  border-radius: var(--so-radius-field);
}

.form-control:focus {
  border-color: var(--so-sky);
  box-shadow: 0 0 0 4px rgba(0, 172, 238, .12);
}

/* ---------- 4. Imágenes -------------------------------------------------- */
/* Las imágenes grandes del home y de las páginas de servicio declaraban
   `width` pero no `height`: al declarar los dos, el navegador reserva el
   hueco antes de que la imagen cargue (evita saltos de diseño / CLS) y
   `height:auto` impide que se aplasten al reducirse en pantallas pequeñas.
   Las de `.why-media` ya incluyen width/height:auto en why-us.blade.php. */
.fizo-image.layout-1 img,
img.fizo-work.layout-2 {
  max-width: 100%;
  height: auto;
}

/* ---------- 5. Accesibilidad -------------------------------------------- */
html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 2px solid var(--so-sky);
  outline-offset: 2px;
}

::selection {
  background: rgba(0, 172, 238, .25);
  color: var(--so-ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 575px) {
  .nile-bottom.layout-1,
  .nile-bottom.layout-2 {
    padding: 14px 26px;
    width: 100%;
  }

  .nile-bottom.layout-1:hover,
  .nile-bottom.layout-2:hover {
    padding: 14px 26px;
  }
}

/* ---------- 6. Encabezado de páginas internas (.nile-page-title) ---------- */
/* El tema: banda gris con la imagen page-title.jpg (que no existe), H1 de 50px
   centrado y las migas en blanco. Cada vista le pasa su color de fondo en un
   `style` inline, así que aquí se pinta un degradado por ENCIMA del color
   (background-image) y se moderniza tipografía, migas y cierre.
   Hay dos grupos de páginas:
     · fondo claro #F1F9FF (servicios, blog, portafolio, contacto…) → claro
     · fondo gris #595959 (métodos de pago, punto y apos) → navy, porque esas
       vistas heredan el texto blanco del tema y sobre claro no se leerían. */

/* Base para todas: reserva del header fijo, sombra muy sutil y acento de cierre.
   La sombra bajó de `0 20px 32px -26px / .55` a `0 12px 22px -20px / .26`
   (15/10/2026): sobre el blanco de debajo se veía como una banda gris oscura
   pegada al banner. Ahora es un roce apenas perceptible. */
.nile-page-title {
  position: relative;
  padding: 140px 0 62px;
  box-shadow: 0 12px 22px -20px rgba(30, 70, 130, .26);
}

/* Arriba se reserva el header fijo: 140px cuando el menú va en una línea
   (≥1200) y 232px entre 992-1199, donde el nav envuelve y el header mide
   200px. Sin esto el H1 quedaba pegado al menú o debajo de él. */
@media (min-width: 992px) and (max-width: 1199px) {
  .nile-page-title {
    padding-top: 232px;
  }
}

/* Cierre del banner: filete de 1px que se desvanece hacia los extremos.
   Marca el límite sin parecer un corte recto. */
.nile-page-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(30, 70, 130, 0) 0%,
      rgba(30, 70, 130, .20) 18%,
      rgba(0, 172, 238, .40) 50%,
      rgba(30, 70, 130, .20) 82%,
      rgba(30, 70, 130, 0) 100%);
}

/* Variante clara */
.nile-page-title:not([style*="595959"]) {
  background-image:
    radial-gradient(620px 300px at 50% -30%, rgba(0, 172, 238, .18) 0%, rgba(0, 172, 238, 0) 72%),
    linear-gradient(180deg, #F1F9FF 0%, #FFFFFF 100%);
}

/* Variante oscura: conserva el texto blanco del tema y gana el azul de marca */
.nile-page-title[style*="595959"] {
  background-image:
    radial-gradient(620px 300px at 50% -30%, rgba(0, 172, 238, .30) 0%, rgba(0, 172, 238, 0) 72%),
    linear-gradient(135deg, #16386b 0%, #1E4682 50%, #0b6d9c 100%);
  color: #FFFFFF;
}

.nile-page-title .container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

/* El header es `fixed` y va ANTES en el DOM que el banner, así que sin
   z-index la decoración del banner (::before con z-index:0) se pintaba
   encima del menú. Se le da la capa que le corresponde. */
header.fixed-header {
  z-index: 1020;
}

.nile-page-title h1 {
  max-width: 780px;
  margin: 0 auto 16px;
  font-family: var(--so-font);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* Migas: texto fino en versalitas, sin pastilla ni caja */
.nile-page-title ul.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--so-navy);
}

.nile-page-title ul.breadcrumbs li,
.nile-page-title ul.breadcrumbs li a {
  font-size: 12.5px;
  font-weight: 600;
}

.nile-page-title ul.breadcrumbs li.active {
  color: var(--so-navy);
}

/* Migas legibles sobre la variante navy */
.nile-page-title[style*="595959"] ul.breadcrumbs {
  background: none;
  border: 0;
}

.nile-page-title[style*="595959"] ul.breadcrumbs li,
.nile-page-title[style*="595959"] ul.breadcrumbs li.active,
.nile-page-title[style*="595959"] ul.breadcrumbs li a {
  color: rgba(255, 255, 255, .85);
}

/* El chevron del tema (\f105) se mantiene, algo más discreto */
.nile-page-title ul.breadcrumbs li a:after {
  font-size: 13px;
  margin: 0 6px 0 4px;
  opacity: .5;
}

/* ---------- 7. Tarjetas de portafolio (div.fizo-work.layout-2) ------------ */
/* El tema dejaba radio 10 y un bloque cyan que subía al 90% al pasar el ratón.
   Ahora: radio 18, borde + sombra suaves, zoom de la imagen y un velo
   navy→celeste a pantalla completa con el título en blanco.
   Se usa `div.` a propósito: las <img> del home llevan también la clase
   `fizo-work layout-2` y no deben heredar el hover de la tarjeta. */
div.fizo-work.layout-2 {
  border-radius: var(--so-radius-card);
  border: 1px solid var(--so-line);
  background: var(--so-white);
  box-shadow: var(--so-shadow-card);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

div.fizo-work.layout-2 .img-in {
  width: 100%;
  overflow: hidden;
}

div.fizo-work.layout-2 .img-in img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

div.fizo-work.layout-2:hover {
  transform: translateY(-6px);
  border-color: #cfe0f5;
  box-shadow: 0 22px 45px rgba(30, 70, 130, .16);
}

div.fizo-work.layout-2:hover .img-in img {
  opacity: 1;
  transform: scale(1.06);
}

div.fizo-work.layout-2 a.hover,
div.fizo-work.layout-2:hover a.hover {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(22, 56, 107, .94) 0%, rgba(11, 109, 156, .9) 100%);
  opacity: 0;
}

div.fizo-work.layout-2:hover a.hover {
  opacity: 1;
}

div.fizo-work.layout-2 a.hover h3 {
  margin: 0 0 8px;
  padding: 0 22px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--so-white);
}

div.fizo-work.layout-2 a.hover span {
  display: inline-block;
  padding: 6px 15px;
  border-radius: var(--so-radius-pill);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--so-white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- 8. Listado del blog (.nile-blog-entry.layout-1) -------------- */
/* El tema: tarjeta crema (#f4f2e9) con borde beige y botón "Leer más" gris.
   Las vistas fuerzan con `style` inline el fondo del texto (#F1F9FF) y el gris
   del botón, así que aquí hace falta !important para tumbarlos. */
.nile-blog-entry.layout-1 {
  background: var(--so-white);
  border: 1px solid var(--so-line);
  border-radius: var(--so-radius-card);
  overflow: hidden;
  box-shadow: var(--so-shadow-card);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.nile-blog-entry.layout-1:hover {
  transform: translateY(-6px);
  border-color: #cfe0f5;
  box-shadow: 0 22px 45px rgba(30, 70, 130, .16);
}

.nile-blog-entry.layout-1 .img-in {
  overflow: hidden;
}

.nile-blog-entry.layout-1 .img-in img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.nile-blog-entry.layout-1:hover .img-in img {
  opacity: 1;
  transform: scale(1.05);
}

/* Los iconos sociales del tema subían desde abajo con fondo cyan */
.nile-blog-entry.layout-1 .img-in .social-media {
  left: 14px;
  right: auto;
  bottom: 14px;
  width: auto;
  padding: 5px 8px;
  border-radius: var(--so-radius-pill);
  background-color: var(--so-navy);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

.nile-blog-entry.layout-1:hover .img-in .social-media {
  bottom: 14px;
  opacity: 1;
  transform: none;
}

.nile-blog-entry.layout-1 .img-in .social-media li a {
  margin: auto 6px;
}

.nile-blog-entry.layout-1 .out {
  padding: 26px 26px 28px !important;
  background-color: var(--so-white) !important;
}

.nile-blog-entry.layout-1 .cats {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--so-sky) !important;
}

.nile-blog-entry.layout-1 a.title {
  margin: 10px auto 14px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--so-navy) !important;
  text-wrap: pretty;
}

.nile-blog-entry.layout-1 a.title:hover {
  color: var(--so-sky) !important;
}

.nile-blog-entry.layout-1 a.read_more,
.nile-blog-entry.layout-1 a.read_more:hover {
  padding: 11px 24px;
  border-radius: var(--so-radius-pill);
  background-color: transparent !important;
  background-image: linear-gradient(135deg, #00C6FF 0%, #00ACEE 48%, #1E4682 100%);
  color: var(--so-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--so-shadow-btn);
}

.nile-blog-entry.layout-1 a.read_more:hover {
  box-shadow: var(--so-shadow-btn-hover);
}

/* Barra lateral del blog (mismo look de tarjeta que el resto del sitio) */
.nile-blog-sidebar .nile-widget {
  padding: 24px 24px 26px;
  border: 1px solid var(--so-line);
  border-radius: var(--so-radius-card);
  background: var(--so-white);
  box-shadow: var(--so-shadow-card);
}

.nile-blog-sidebar .nile-widget .widget-title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.nile-blog-sidebar .nile-widget.widget_categories ul li a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--so-line);
  font-size: 14px;
  color: var(--so-text);
}

.nile-blog-sidebar .nile-widget.widget_categories ul li:last-child a {
  border-bottom: 0;
  padding-bottom: 0;
}

.nile-blog-sidebar .nile-widget.widget_categories ul li a:hover {
  color: var(--so-sky);
}

@media (max-width: 991px) {
  .nile-blog-sidebar {
    margin-top: 10px;
  }
}

/* ---------- 9. Banda CTA a lo ancho (.so-band) --------------------------- */
/* Sustituye a la franja navy plana de 120px con el texto en mayúsculas
   ("¡ES TIEMPO DE DIGITALIZAR TU EMPRESA O NEGOCIO, ANÍMATE!..."). */
.so-band {
  position: relative;
  overflow: hidden;
  padding: 62px 0;
  background: linear-gradient(135deg, #16386b 0%, #1E4682 45%, #0b6d9c 100%);
}

.so-band::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -70%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 172, 238, .3), rgba(0, 172, 238, 0));
  pointer-events: none;
}

.so-band__in {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.so-band__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7fd4f7;
}

.so-band__title {
  max-width: 720px;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--so-white);
  text-wrap: pretty;
}

.so-band__text {
  max-width: 620px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
}

.so-band__actions {
  flex: 0 0 auto;
}

.so-band__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border: 2px solid transparent;
  border-radius: var(--so-radius-pill);
  background: linear-gradient(135deg, #00C6FF 0%, #00ACEE 48%, #1E4682 100%);
  color: var(--so-white);
  font-family: var(--so-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 30px -14px rgba(8, 11, 16, .8);
  transition: transform .25s ease, box-shadow .25s ease;
}

.so-band__cta i {
  font-size: 16px;
}

.so-band__cta:hover,
.so-band__cta:focus {
  color: var(--so-white);
  transform: translateY(-3px);
  box-shadow: 0 22px 36px -16px rgba(8, 11, 16, .9);
}

@media (max-width: 991px) {
  .so-band {
    padding: 46px 0 50px;
  }

  .so-band__in {
    flex-direction: column;
    text-align: center;
  }

  .so-band__title {
    font-size: 25px;
    max-width: none;
  }

  .so-band__text {
    max-width: none;
  }

  .so-band__cta {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .nile-page-title {
    padding: 52px 0 46px;
  }

  .nile-page-title h1 {
    font-size: 28px;
  }

  .nile-page-title ul.breadcrumbs {
    padding: 6px 13px;
  }
}
