/* ==========================================================================
   1. CÓDIGO PARA ORDENADOR (BASE / DESKTOP)
   ========================================================================== */

/* --- 1.1 CONFIGURACIÓN BÁSICA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  background-image: radial-gradient(#0000000d 3px, transparent 2px);
  background-size: 20px 20px;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* --- 1.2 MENU PRINCIPAL --- */
.floating-header {
  position: relative;
  z-index: 10;
  width: 80%;
  height: 50px;
  padding: 24px 32px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  justify-content: center;
  margin: auto;
}
.pill-item {
  display: inline-flex;
  align-items: center;
  background: #3f3f46;
  border-radius: 999px;
  min-height: 40px;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.pill-left {
  justify-self: start;
  padding-inline: 18px;
  height: 50px;
}
.pill-filters {
  justify-self: center;
  gap: 2px;
  padding-inline: 8px;
  height: 50px;
}
.pill-right {
  justify-self: end;
  padding-inline: 10px;
  height: 50px;
}
.pill-link, .filter-btn {
  font-family: inherit;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.pill-left .pill-link, .pill-right .pill-link {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
}
.filter-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
}
.filter-btn.active {
  color: #ffffff;
}
.filter-btn:hover, .pill-link:hover {
  color: #ffffff;
}
.pill-right .pill-link {
  appearance: none;
}

/* --- 1.3 CONTENIDO --- */
.bento-container{
  max-width: 1250px;
  margin: 180px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.card.card-split{
  height: 580px;
  border-radius: 40px;
  overflow: hidden;
  background: #1c1c1e;
  display: flex;
  flex-direction: column;

  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform, opacity;
}
.card.card-split.is-visible{
  transform: scale(1);
  opacity: 1;
}
.card-media{
  flex: 0 0 35%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}
.card.card-split:hover .card-media{
  transform: scale(1.04);
}
.card-panel{
  flex: 1;
  padding: 26px;
  padding-bottom: 110px;
  color: #fff;
  position: relative;

  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.85),
    rgba(10,10,10,0.95)
  );
}
.card-pill{
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.card-title{
  font-size: 2.6rem;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 12px;
}
.card-desc{
  font-size: 1.15rem;
  line-height: 1.25;
  opacity: 0.86;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cta{
  position: absolute;
  left: 26px;
  bottom: 26px;

  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;

  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  text-decoration: none;
  font-size: 1.9rem;

  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card-cta:hover{
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

.card.is-hidden{ display: none; }

/* --- 1.8 FOOTER --- */
.footer {
  position: relative;
  padding: 70px 60px 45px;
  overflow: hidden;
  max-width: 80%;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.foot-logo {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 400px;
}
.info-logo p:first-child {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.contact-foot {
  display: contents;
}
.title-foot {
  display: none;
}
.btn-foot {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.btn-foot button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  min-width: 180px;
  border: none;
  border-radius: 999px;
  background: rgb(149, 115, 240);
  color:  rgb(22, 15, 40);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-foot button::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgb(22, 15, 40);
  color: rgb(149, 115, 240);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.btn-foot button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.btn-foot button:hover::after {
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}
.footer-links {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
.footer-links a {
  text-decoration: none !important;
  color: black;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
/* copyright */
.footer-copy {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  font-size: 1rem;
  text-align: right;
  white-space: nowrap;
  opacity: 0.95;
}