@charset "UTF-8";
/* =========================================================
   SECCIÓN: NEED CARD REDESIGN (Slug: need-card)
   Diseño moderno con glassmorphism y animaciones suaves
========================================================= */
.page2 {
  position: relative;
  padding: clamp(60px, 9vh, 100px) 0;
  width: min(1024px, 80vw);
  margin-inline: auto;
}

.page2 h2 {
  margin: 0 0 clamp(28px, 5vh, 56px);
  color: #E6DBBF;
  font-family: "kepler-std", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 1.2px;
}

/* Ocho servicios: cuatro columnas dejan dos filas completas (antes 3+3+2 con huérfanas) */
.p2topics {
  display: grid;
  gap: 36px 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  z-index: 200;
}

/* Cada servicio abre su ficha (need-card.js): el borde superior en lima es la línea del plano */
.topic {
  position: relative;
  cursor: pointer;
  border-top: 2px solid #c2ff05;
  padding-top: 16px;
}

.topic .image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px solid rgba(241, 237, 223, 0.5);
  transition: border-color 0.25s ease;
}

.topic .image-container .topicdecor {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.topic .nec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 0;
  text-decoration: none;
}

.topic .service-number {
  font-family: "kepler-std", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  color: #c2ff05;
}

.topic .service-subtitle {
  margin: 0;
  color: #F1EDDF;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.25s ease;
}

.topic .service-name {
  margin: 0;
  color: #C8C0AC;
  font-family: var(--font-main);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.topic:hover .image-container { border-color: #c2ff05; }
.topic:hover .image-container .topicdecor { transform: scale(1.06); }
.topic:hover .service-subtitle { color: #c2ff05; }

@media (max-width: 1000px) {
  .p2topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .page2 { width: 88vw; }
}

@media (max-width: 480px) {
  .p2topics { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .topic .image-container, .topic .image-container .topicdecor, .topic .service-subtitle { transition: none; }
  .topic:hover .image-container .topicdecor { transform: none; }
}

.extmargin {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background-color: rgba(39, 49, 84, 0.85);
  backdrop-filter: blur(10px);
}
.extmargin.active {
  display: grid;
  place-items: center;
  animation: fadeIn 0.3s ease;
}
.extmargin .cross {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: rgba(194, 255, 100, 0.1);
  border: 2px solid var(--color-focus);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}
.extmargin .cross img {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}
.extmargin .cross:hover {
  background: var(--color-focus);
  transform: rotate(90deg) scale(1.1);
}
.extmargin .cross:hover img {
  filter: brightness(0);
}
.extmargin .ext {
  display: grid;
  width: min(95vw, 1100px);
  max-height: 90vh;
  min-height: 70vh;
  background: var(--color-back2);
  border-radius: 24px;
  overflow: hidden;
  grid-template-columns: 50% 1fr;
  grid-template-areas: "img desc";
  animation: slideUp 0.4s ease;
}
.extmargin .ext .decor {
  grid-area: img;
  overflow: hidden;
}
.extmargin .ext .decor .decext {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.extmargin .ext .extd {
  grid-area: desc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  gap: 1.5rem;
  overflow-y: auto;
  background: var(--color-topic);
}
.extmargin .ext .extd h4 {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-focus-text);
  margin: 0;
  letter-spacing: 3px;
}
.extmargin .ext .extd .desc {
  font-family: var(--font-main);
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-font-night);
}
.extmargin .ext .extd .desc p {
  margin: 0;
}
.extmargin .ext .extd .cta {
  margin-top: 1rem;
}
.extmargin .ext .extd .cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--color-focus);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.extmargin .ext .extd .cta a::after {
  content: "→";
  font-size: 1.25rem;
}
.extmargin .ext .extd .cta a:hover {
  background: transparent;
  border-color: var(--color-focus);
  color: var(--color-focus-text);
  transform: translateX(5px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media screen and (max-width: 768px) {
  .extmargin .ext {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 1fr;
    grid-template-areas: "img" "desc";
  }
  .extmargin .ext .extd {
    padding: 2rem 1.5rem;
  }
}
.need-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--border-card, #053c76) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.need-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--card-shadow);
  border-color: var(--color-type) !important;
}
.need-card .need-card__title {
  color: var(--color-type) !important;
  font-weight: 700;
}
.need-card .need-card__description {
  color: var(--text-main) !important;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   LIGHT THEME — Need Cards
--------------------------------------------------------- */
html[data-theme=light] .page2 h2 {
  color: #053c76;
}
html[data-theme=light] .topic { border-top-color: #0050d6; }
html[data-theme=light] .topic .image-container { border-color: rgba(5, 60, 118, 0.35); }
html[data-theme=light] .topic .service-number { color: var(--color-focus-text); }
html[data-theme=light] .topic .service-subtitle { color: #053c76; }
html[data-theme=light] .topic .service-name { color: #2c4a72; }
html[data-theme=light] .topic:hover .image-container { border-color: var(--color-focus); }
html[data-theme=light] .topic:hover .service-subtitle { color: var(--color-focus-text); }

html[data-theme=light] .extmargin {
  background-color: rgba(244, 249, 255, 0.9);
}
html[data-theme=light] .extmargin .ext {
  background: var(--bg-card);
  box-shadow: 0 25px 60px rgba(5, 60, 118, 0.15);
}
html[data-theme=light] .extmargin .ext .extd h4 {
  color: var(--color-focus-text);
}
html[data-theme=light] .extmargin .ext .extd .desc {
  color: var(--color-topic);
}
html[data-theme=light] .extmargin .cross {
  background: rgba(5, 60, 118, 0.06);
  border-color: var(--color-focus);
}
html[data-theme=light] .extmargin .cross:hover {
  background: var(--color-focus);
}/*# sourceMappingURL=need-card.css.map */