/* =========================================================
   DiezCien · estilos
   Estética: retro / playful / neo-brutalista
   Paleta y variables al principio para tunear fácil.
   ========================================================= */

:root {
  /* Colores base — paleta del logo DiezCien */
  --bg: #fdf6e3;          /* crema */
  --ink: #1c2b4a;         /* navy del logo (tinta, bordes, sombras) */
  --paper: #fffdf7;       /* tarjeta */

  /* Acentos (todos salidos del logo) */
  --navy: #1c2b4a;
  --teal: #3bb8ac;        /* verde-azulado del ∞ */
  --blue: #8fb8e0;        /* azul claro de las estrellas */
  --gold: #f5c542;        /* dorado de las chispas */
  --coral: #ec6a5e;       /* rojo/coral del cohete */
  --mustard: #c8901a;     /* mostaza — color del tagline */

  /* Alias heredados (para no romper estilos previos) */
  --pink: var(--coral);
  --yellow: var(--gold);
  --purple: var(--navy);
  --orange: var(--gold);

  /* Sistema brutalista */
  --border: 3px solid var(--ink);
  --radius: 14px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --font-display: "Archivo Black", "Space Grotesk", system-ui, sans-serif;
  --font-wordmark: "Poppins", system-ui, sans-serif;  /* logotipo DiezCien */
  --font-tagline: "Fredoka", "Space Grotesk", system-ui, sans-serif;  /* lema (buena itálica) */
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

/* Garantiza que el atributo "hidden" oculte siempre (algunos .btn/flex lo anulan) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(28, 43, 74, 0.07) 1px, transparent 1.2px);
  background-size: 30px 30px;
  background-position: -15px -15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.35rem clamp(1rem, 4vw, 2.5rem);
  background: var(--paper);
  border-bottom: var(--border);
  transition: padding 0.22s ease;
}

/* Header encogido al hacer scroll: logo más pequeño y textos subidos (tagline se queda) */
.nav.is-scrolled { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.nav.is-scrolled .brand__logo { width: 46px; }
.nav.is-scrolled .brand__text { margin-top: 0; }
.nav.is-scrolled .wordmark { font-size: 1.55rem; }
.nav.is-scrolled .brand__tagline { font-size: 0.78rem; }
.nav__links { margin-left: auto; }

/* Selector de idioma ES / EN */
.langsel {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  flex: none;
}
.langsel button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.66rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.langsel button.is-active { background: var(--navy); color: var(--bg); }
.langsel button:not(.is-active):hover { background: rgba(28, 43, 74, 0.08); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand__logo {
  display: block;
  width: 72px;
  height: auto;
  transition: width 0.22s ease;
}
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; margin-top: 10px; transition: margin 0.22s ease; }
.brand__tagline {
  font-family: var(--font-tagline);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--mustard);
  letter-spacing: 0.01em;
  margin-top: 5px;
  white-space: nowrap;
  transition: font-size 0.22s ease, opacity 0.22s ease, margin 0.22s ease;
}

/* ===================== WORDMARK ===================== */
/* Logotipo "DiezCien" — estilo redondeado a juego con el logo.
   Diez = navy · Cien = teal. */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  font-size: 1.9rem;
  transition: font-size 0.22s ease;
}
.wm-diez { color: var(--navy); }
.wm-cien { color: var(--teal); }

.wordmark--hero {
  font-size: clamp(3.2rem, 12vw, 7rem);
  margin: 0 0 0.4rem;
  /* sombra dura sutil para dar el toque brutalista redondeado */
  text-shadow: 4px 4px 0 rgba(28, 43, 74, 0.12);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__links a {
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 2px 0;
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  border: var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem !important;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.nav__cta:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px; height: 42px;
  background: var(--paper);
  border: var(--border);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 100%; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ===================== LAYOUT ===================== */
main { display: block; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}

.section__head { max-width: 720px; margin-bottom: 2.8rem; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--ink);
  color: var(--bg);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  transform: rotate(-1.5deg);
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
}
.section__head p { font-size: 1.1rem; margin: 0; max-width: 60ch; }
.tiny-muy { font-size: 0.5em; }

/* ===================== HERO ===================== */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 1.8rem;
  transform: rotate(-1deg);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 auto 1.4rem;
  max-width: 15ch;
}
.hl { position: relative; white-space: nowrap; padding: 0 0.1em; }
.hl::after {
  content: "";
  position: absolute;
  left: -0.05em; right: -0.05em; bottom: 0.06em;
  height: 0.34em;
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}
.hl--pink::after   { background: var(--pink); }
.hl--yellow::after { background: var(--yellow); }
.hl--teal::after   { background: var(--teal); }
.hl--purple::after { background: var(--purple); }
.hl--coral::after  { background: var(--coral); }
.hl--gold::after   { background: var(--gold); }
.hl--blue::after   { background: var(--blue); }

.hero__lead {
  font-size: 1.25rem;
  max-width: 40ch;
  margin: 0 auto 2rem;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border: var(--border);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(0,0); box-shadow: 3px 3px 0 var(--ink); }
.btn--primary { background: var(--pink); }
.btn--ghost { background: var(--paper); }

.hero__stats {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 5vw, 3.5rem);
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; }
.hero__stats b {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
}
.hero__stats span { font-size: 0.85rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-wink { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--pink); opacity: 0.9; }

/* ===================== VALORES ===================== */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.value {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.value:hover { transform: translate(-4px,-4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.value__icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  border: var(--border);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.value--pink   .value__icon { background: var(--pink); }
.value--teal   .value__icon { background: var(--teal); }
.value--yellow .value__icon { background: var(--yellow); }
.value h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.4rem; }
.value p { margin: 0; }

/* ===================== EL EQUIPO ===================== */
.team__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 3rem 0 1.4rem;
}
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  width: auto;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.member:hover { transform: translate(-4px,-4px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.member__avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  border: var(--border);
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 1rem;
}
.member__name { font-family: var(--font-wordmark); font-weight: 700; font-size: 1.2rem; }
.member__role { font-size: 0.9rem; font-weight: 600; color: var(--teal); margin-bottom: 0.35rem; }
.member__motto { font-size: 0.82rem; font-style: italic; opacity: 0.75; line-height: 1.35; margin-bottom: 0.9rem; }
.member__facts {
  width: 100%;
  text-align: left;
  border-top: 2px dashed rgba(28, 43, 74, 0.22);
  padding-top: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.35;
}
.member__facts p { margin: 0.3rem 0; }
.fact__ic { margin-right: 0.15rem; }
.fact__val { color: var(--navy); }
.member__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
}
.member:hover .member__link { background: var(--teal); }
.member__in {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  background: #0a66c2; /* azul LinkedIn */
  color: #fff;
  border-radius: 5px;
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
}

/* La "media" persona: guiño misterioso (misma tarjeta que las demás) */
.member--half { cursor: default; }
.member__secret {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: var(--bg);
  opacity: 0.85;
}

/* ===================== GALERÍA ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.card:hover { transform: translate(-5px,-5px); box-shadow: var(--shadow-lg); }
.card__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.card__icon {
  flex: none;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-size: 2rem;
  border: var(--border);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}
/* Cuando el icono es una imagen (logo de la app) llena el cuadrado */
.card__icon--img { overflow: hidden; background: var(--paper); }
.card__icon-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__title { font-family: var(--font-display); font-size: 1.4rem; margin: 0; line-height: 1.1; }
.card__status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  margin-top: 0.35rem;
}
.card__status--live { background: var(--teal); }
.card__status--wip  { background: var(--yellow); }
.card__status--soon { background: var(--paper); }
.card__desc { margin: 0 0 1.2rem; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.card__tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* Plataformas: App / Web */
.card__platforms { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.card__plat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
}
.card__plat--app { background: var(--blue); }
.card__plat--web { background: var(--coral); }
.card__link {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border: var(--border);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  /* Botón uniforme para todas las tarjetas */
  background: var(--navy);
  color: #fff;
}
.card__link:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.card__link[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* Acentos de color rotando por tarjeta (solo el cuadrado del icono) */
.card--0 .card__icon { background: var(--pink); }
.card--1 .card__icon { background: var(--teal); }
.card--2 .card__icon { background: var(--purple); color: #fff; }
.card--3 .card__icon { background: var(--orange); }
.card--4 .card__icon { background: var(--yellow); }

/* ===================== CONTACTO ===================== */
.contacto { padding-top: 2rem; }
.contacto__card {
  background: var(--navy);
  color: #fff;
  /* la tarjeta es navy: borde y sombra 3D en teal para que tenga relieve */
  border: 3px solid var(--teal);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--teal);
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
}
.contacto__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  margin: 0 0 0.7rem;
  color: #fff;
}
.contacto__card p { font-size: 1.15rem; margin: 0 0 1.8rem; }
.contacto__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Botón sobre la tarjeta navy: borde y sombra en crema para que se vea el relieve */
.contacto__card .btn {
  color: var(--ink);
  border-color: var(--bg);
  box-shadow: 6px 6px 0 var(--bg);
}
.contacto__card .btn:hover { box-shadow: 9px 9px 0 var(--bg); }
.contacto__card .btn:active { box-shadow: 3px 3px 0 var(--bg); }

/* ===================== FOOTER ===================== */
.footer {
  border-top: var(--border);
  background: var(--paper);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.footer__logo {
  display: block;
  width: 80px;
  height: auto;
}
.footer__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.05;
  margin-top: 10px;
}
.footer__wordmark { font-size: 2rem; }
.footer__tagline {
  font-family: var(--font-tagline);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--mustard);
  letter-spacing: 0.01em;
  margin: 5px 0 0;
}
.footer p { margin: 0.3rem 0; }
.footer__copy { opacity: 0.65; font-size: 0.9rem; }


/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  .values { grid-template-columns: 1fr; }

  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--border);
    padding: 0.5rem 1rem 1rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s ease;
  }
  .nav__links a { padding: 0.85rem 0.4rem; }
  .nav__links.open { clip-path: inset(0 0 0 0); }
  .nav__cta { text-align: center; margin-top: 0.5rem; }
  .brand__tagline { display: none; }
  .langsel { margin-left: auto; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
