.elementor-12 .elementor-element.elementor-element-552bb4f{--display:flex;--min-height:60vh;--justify-content:center;--align-items:flex-start;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-12 .elementor-element.elementor-element-552bb4f:not(.elementor-motion-effects-element-type-background), .elementor-12 .elementor-element.elementor-element-552bb4f > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:transparent;background-image:linear-gradient(180deg, #0E27BE 0%, #000000 100%);}.elementor-12 .elementor-element.elementor-element-552bb4f > .elementor-shape-bottom svg, .elementor-12 .elementor-element.elementor-element-552bb4f > .e-con-inner > .elementor-shape-bottom svg{height:97px;}.elementor-12 .elementor-element.elementor-element-2a9abf6{width:100%;max-width:100%;}.elementor-12 .elementor-element.elementor-element-6998b74{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-12 .elementor-element.elementor-element-757a46d{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:0px 0px 0px 0px;}:root{--page-title-display:none;}/* Start custom CSS for html, class: .elementor-element-2a9abf6 *//* ===== Registrar FunnelDisplay Medium ===== */
@font-face {
  font-family: 'FunnelDisplay';
  src: url('/wp-content/uploads/fonts/FunnelDisplay-Medium.woff2') format('woff2'),
       url('/wp-content/uploads/fonts/FunnelDisplay-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== Registrar FunnelDisplay Bold ===== */
@font-face {
  font-family: 'FunnelDisplay';
  src: url('/wp-content/uploads/fonts/FunnelDisplay-Bold.woff2') format('woff2'),
       url('/wp-content/uploads/fonts/FunnelDisplay-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Texto general ===== */
body {
  font-family: 'FunnelDisplay', sans-serif;
  font-weight: 500;
}

/* ===== Títulos (h1-h6) ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'FunnelDisplay', sans-serif;
  font-weight: 700;
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-757a46d *//* ========================================
   PORTAFOLIO CSS COMPLETO
   (Modificado para 2 columnas grandes y con nuevos botones de inversión)
   ======================================== */

/* OPCIÓN A: header nativo del theme */
header.site-header {
  background: rgba(0,0,0,.55);
}

/* Importante: NO tocar .nx-head (encabezado interno del portafolio) */
.nx-head { background: transparent; }

/* Para que el contenido no se esconda detrás del header */
body {
  /* Asegúrate de tener el padding-top adecuado si tu header es fijo */
}

/* ====== Tokens ====== */
#nx-portfolio:root, .nx-portfolio {
  --bg-1: #f6faff;       /* azul muy claro */
  --bg-2: #ecf7ff;       /* celeste muy claro */
  --primary: #0e27be;    /* NUEVO AZUL */
  --primary-10: rgba(14,39,190,.10);
  --primary-20: rgba(14,39,190,.20);
  --ink: #0b1220;
  --muted: #5f6b7a;
  --card: #ffffff;
  --ring: rgba(14,39,190,.45);
}

/* ====== Contenedor ====== */
.nx-portfolio {
  position: relative;
  isolation: isolate;
  text-decoration-skip-ink: auto;
  overflow: hidden;
}
.nx-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.nx-offset { margin-top: .25rem; }

/* ====== Fondo (gradiente + shapes full-width) ====== */
.nx-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffffff 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, #ffffff 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}
.nx-bg::before,
.nx-bg::after {
  content: "";
  position: absolute;
  width: 42vmax; height: 42vmax;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .25;
  background: radial-gradient(closest-side, var(--primary-20), transparent 70%);
  transform: translate3d(0,0,0);
  animation: nx-pulse 18s ease-in-out infinite alternate;
}
.nx-bg::after { right: -10vmax; top: -6vmax; }
.nx-bg::before { left: -12vmax; top: 18vmax; animation-delay: -9s; }

@keyframes nx-pulse {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2vmax,-2vmax,0) scale(1.08); }
}

/* Partículas (añadidas por JS) */
.nx-shape {
  position: absolute;
  bottom: -80px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,.6) 30%, transparent 70%),
              radial-gradient(circle at 70% 70%, var(--primary-10) 0%, transparent 60%);
  border: 1px solid rgba(14,39,190,.18);
  border-radius: 999px;
  will-change: transform, opacity;
  animation: nx-float linear infinite;
  backdrop-filter: blur(1px);
  filter: drop-shadow(0 2px 6px rgba(14,39,190,.08));
}
@keyframes nx-float {
  from { transform: translate3d(0,0,0); opacity: var(--o, .35); }
  to   { transform: translate3d(0,-110vh,0); opacity: 0; }
}

/* ====== Header / títulos ====== */
.nx-head .nx-chip {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--primary-10);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .2px;
}
.nx-title {
  margin: 1rem 0 .25rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--ink);
}
.nx-title span { color: #0e27be; }
.nx-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
  max-width: 56ch;
}

/* ====== Filtros ====== */
.nx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 2rem;
}
.nx-filters button {
  border: 0;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 600;
  background: #eef3ff;
  color: #29405f;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.nx-filters button:hover { transform: translateY(-1px); }
.nx-filters button.is-active,
.nx-filters button:focus-visible {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 2px var(--ring);
  outline: none;
}

/* ====== Grid / Cards (MODIFICADO) ====== */
.nx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.nx-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 2px solid rgba(14,39,190,.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(2,12,33,.06);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, filter .22s ease;
  will-change: transform, box-shadow;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.nx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-120%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) {
  .nx-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(14,39,190,.65);
    box-shadow:
      0 10px 28px rgba(2,12,33,.10),
      0 0 30px rgba(14,39,190,.25);
  }
  .nx-card:hover::after {
    opacity: .9;
    animation: nx-sweep 900ms ease;
  }
}
@keyframes nx-sweep {
  from { transform: translateX(-120%) skewX(-18deg); }
  to   { transform: translateX(220%)  skewX(-18deg); }
}

/* ===== INICIO DE LA CORRECCIÓN DE ALTURA DE IMÁGENES ===== */
.nx-media {
  aspect-ratio: 16 / 9; /* Fuerza una proporción constante */
  overflow: hidden;      /* Oculta cualquier parte de la imagen que se desborde */
}

.nx-media img {
  width: 100%;
  height: 100%;          /* Hace que la imagen llene el contenedor alto y ancho */
  object-fit: cover;     /* Cubre el espacio sin deformar la imagen */
  display: block;
  transition: transform .35s ease;
}
/* ===== FIN DE LA CORRECCIÓN ===== */

@media (hover: hover) {
  .nx-card:hover .nx-media img { transform: scale(1.05); } /* Aumenté un poco el zoom para compensar el 'cover' */
}

.nx-meta {
  padding: .9rem 1rem 1.1rem;
  flex-grow: 1;
}
.nx-meta h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: .25rem;
  color: var(--ink);
}
.nx-meta p { color: var(--muted); font-size: .93rem; }

/* ====== Modal ====== */
.nx-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}
.nx-modal.is-open { visibility: visible; opacity: 1; }
.nxm__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,18,32,.35);
  backdrop-filter: blur(3px);
}
.nxm__panel {
  position: relative;
  width: min(96vw, 1100px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2,12,33,.20);
  overflow: hidden;
  transform: translateY(8px);
  transition: transform .22s ease;
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
}
.nx-modal.is-open .nxm__panel { transform: translateY(0); }
.nxm__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nxm__body { padding: 1.2rem 1.2rem 1.4rem; }
.nxm__title { font-size: 1.25rem; margin-bottom: .25rem; color: var(--ink); }
.nxm__tags { color: var(--muted); margin-bottom: .5rem; }
.nxm__desc { color: #2b3242; margin-bottom: 1rem; }

/* ========================================
   ESTILO DE BOTONES DE INVERSIÓN (INICIO)
   ======================================== */
.nxm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border: 2px solid;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  will-change: transform, background-color, color, border-color;
  transition: all 0.25s ease-in-out;
}
/* BOTÓN 1: ESTADO POR DEFECTO */
.nx-btn--primary {
  background-color: var(--primary); /* Azul */
  border-color: #ffffff; /* Blanco */
  color: #ffffff; /* Blanco */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* BOTÓN 2: ESTADO POR DEFECTO */
.nx-btn--ghost {
  background-color: #ffffff; /* Blanco */
  border-color: var(--primary); /* Azul */
  color: var(--primary); /* Azul */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* BOTÓN 1: ESTADO HOVER (se convierte en el estilo del botón 2) */
.nx-btn--primary:hover,
.nx-btn--primary:focus-visible {
  background-color: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}
/* BOTÓN 2: ESTADO HOVER (se convierte en el estilo del botón 1) */
.nx-btn--ghost:hover,
.nx-btn--ghost:focus-visible {
  background-color: var(--primary);
  border-color: #ffffff;
  color: #ffffff;
}
/* Efecto de elevación para AMBOS al pasar el ratón */
.nx-btn:hover,
.nx-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  outline: none;
}
.nx-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* ========================================
   ESTILO DE BOTONES DE INVERSIÓN (FIN)
   ======================================== */

.nxm__close {
  position: absolute; top: .5rem; right: .5rem;
  width: 36px; height: 36px; border-radius: 10px;
  background: #fff; border: 1px solid #e6ebf5; cursor: pointer;
  font-size: 20px; line-height: 1; color: #34435d;
  box-shadow: 0 4px 12px rgba(2,12,33,.12);
}
.nxm__close:hover { transform: translateY(-1px); }

/* ====== Accesibilidad ====== */
.nx-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring), 0 0 24px rgba(14,39,190,.22);
}
@media (prefers-reduced-motion: reduce) {
  .nx-bg::before, .nx-bg::after, .nx-shape,
  .nx-card:hover .nx-media img,
  .nx-card:hover { animation: none !important; transition: none !important; }
}

/* ========================================
   SECCIÓN DE OVERRIDES Y AJUSTES
   ======================================== */
/* ... (El resto del CSS de overrides y responsive permanece igual) ... */
@media (max-width: 767.98px) {
  .nx-grid {
    grid-template-columns: 1fr;
  }
  .nx-media {
    aspect-ratio: 4 / 3; /* Un poco más cuadrada para móviles */
  }
  .nxm__panel {
    grid-template-columns: 1fr;
  }
}/* End custom CSS */