/* tendenciascocinas.com — violeta profundo, botones lima y amarillo, formas orgánicas */

:root {
  --t-fondo: #1d0b3a;
  --t-fondo-2: #240f47;
  --t-uva: #31175e;
  --t-uva-2: #3d1f72;
  --t-lila: #b79cff;
  --t-borde: rgba(183, 156, 255, 0.2);
  --t-borde-2: rgba(183, 156, 255, 0.38);
  --t-texto: #efe9ff;
  --t-suave: #bfb2e3;
  --t-blanco: #ffffff;

  --t-lima: #3ddc84;
  --t-lima-hi: #5ef09c;
  --t-lima-lo: #27b267;
  --t-sol: #ffd43b;
  --t-sol-hi: #ffe169;
  --t-sol-lo: #e6b800;
  --t-oscuro: #170730;

  --t-display: "Syne", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --t-cuerpo: "Figtree", "Segoe UI", Roboto, Arial, sans-serif;

  --t-ancho: 1200px;
  --t-pad: clamp(1rem, 4vw, 2.4rem);
  --t-alto: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--t-alto) + 20px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(60% 40% at 100% 0, rgba(255, 212, 59, 0.12), transparent 70%),
    radial-gradient(50% 50% at 0 30%, rgba(61, 220, 132, 0.1), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(183, 156, 255, 0.16), transparent 70%),
    var(--t-fondo);
  color: var(--t-texto);
  font-family: var(--t-cuerpo);
  font-size: 1.06rem;
  line-height: 1.72;
}

body.tc-bloqueo { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--t-sol); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }

.tc-salto {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 900;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--t-sol);
  color: var(--t-oscuro);
  font-weight: 700;
  text-decoration: none;
}
.tc-salto:focus { top: 12px; }

.tc-marco { width: min(100% - 2 * var(--t-pad), var(--t-ancho)); margin-inline: auto; }

/* ---------- botones ---------- */

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 14px;
  font-family: var(--t-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.tc-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--t-oscuro); }

.tc-btn--lima { background: var(--t-lima); color: var(--t-oscuro); box-shadow: 4px 4px 0 var(--t-sol); }
.tc-btn--lima:hover { background: var(--t-lima-hi); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--t-sol); }

.tc-btn--sol { background: var(--t-sol); color: var(--t-oscuro); box-shadow: 4px 4px 0 var(--t-lima-lo); }
.tc-btn--sol:hover { background: var(--t-sol-hi); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--t-lima); }

.tc-btn--xl { min-height: 56px; padding: 0.9rem 1.9rem; font-size: 1.03rem; }

/* ---------- cabecera ---------- */

.tc-top {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(29, 11, 58, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--t-borde);
}
.tc-top__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--t-alto);
  width: min(100% - 2 * var(--t-pad), var(--t-ancho));
  margin-inline: auto;
}

.tc-marca { display: inline-flex; align-items: center; gap: 0.5rem; flex-shrink: 0; color: var(--t-blanco); text-decoration: none; }
.tc-marca__a {
  display: grid;
  place-items: center;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 40% 60% 55% 45% / 55% 45% 55% 45%;
  background: var(--t-sol);
  color: var(--t-oscuro);
  font-family: var(--t-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.tc-marca__b { color: var(--t-lima); font-family: var(--t-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.tc-nav { margin-left: auto; }
.tc-nav ul { display: flex; gap: 0.2rem; margin: 0; padding: 0.3rem; list-style: none; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--t-borde); }
.tc-enlace {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--t-suave);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.tc-enlace:hover { color: var(--t-blanco); background: rgba(183, 156, 255, 0.14); }
.tc-enlace[aria-current="true"] { color: var(--t-oscuro); background: var(--t-lima); }

.tc-top__cta { min-height: 44px; padding: 0.5rem 1.15rem; font-size: 0.9rem; white-space: nowrap; }

.tc-hamb {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--t-uva-2);
  color: var(--t-blanco);
  font-family: var(--t-cuerpo);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.tc-hamb__ico { position: relative; width: 18px; height: 2px; border-radius: 2px; background: var(--t-sol); }
.tc-hamb__ico::before,
.tc-hamb__ico::after { content: ""; position: absolute; left: 0; height: 2px; border-radius: 2px; background: var(--t-lima); }
.tc-hamb__ico::before { top: -6px; width: 18px; }
.tc-hamb__ico::after { top: 6px; width: 10px; }

/* menú móvil desplegable */

.tc-menu { position: fixed; inset: 0; z-index: 400; background: rgba(12, 4, 26, 0.6); }
.tc-menu[hidden] { display: none; }
.tc-menu__in {
  display: flex;
  flex-direction: column;
  max-height: 100dvh;
  padding: 1rem var(--t-pad) 1.5rem;
  overflow-y: auto;
  background: var(--t-fondo-2);
  border-bottom: 4px solid var(--t-sol);
  border-radius: 0 0 32px 32px;
  animation: tc-baja 0.24s ease;
}
@keyframes tc-baja { from { transform: translateY(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.tc-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin-bottom: 0.9rem; }
.tc-menu__x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--t-sol);
  color: var(--t-oscuro);
  cursor: pointer;
}
.tc-menu__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: tc-m; }
.tc-menu__l li { counter-increment: tc-m; }
.tc-menu__a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  padding: 0.5rem 0.8rem;
  border-radius: 18px;
  background: var(--t-uva);
  border: 1px solid var(--t-borde);
  color: var(--t-blanco);
  font-weight: 700;
  text-decoration: none;
}
.tc-menu__a::before { content: counter(tc-m, decimal-leading-zero); color: var(--t-lima); font-family: var(--t-display); font-size: 0.75rem; }
.tc-menu__a:hover { background: var(--t-uva-2); border-color: var(--t-lima); }
.tc-menu__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.2rem; }

/* ---------- portada ---------- */

.tc-hero { padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2.6rem, 5vw, 4.2rem); }
.tc-hero__rej { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: center; }

.tc-h1 {
  margin: 0 0 1.2rem;
  color: var(--t-blanco);
  font-family: var(--t-display);
  font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tc-hero__texto p { color: var(--t-texto); }
.tc-hero__btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.tc-hero__visual { position: relative; margin: 0; isolation: isolate; }
.tc-hero__visual::before {
  content: "";
  position: absolute;
  inset: -6% -4% -8% 6%;
  z-index: -1;
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  background: linear-gradient(135deg, var(--t-sol), var(--t-lima));
  opacity: 0.85;
}
.tc-hero__visual::after {
  content: "";
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px dashed var(--t-lila);
}
.tc-hero__visual img {
  width: 100%;
  aspect-ratio: 1380 / 752;
  object-fit: cover;
  border-radius: 36px 120px 36px 120px;
  border: 4px solid var(--t-fondo);
}

/* ---------- secciones ---------- */

.tc-contenido { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 2.8rem); max-width: 980px; padding-bottom: clamp(3rem, 6vw, 5rem); }
.tc-contenido > * { min-width: 0; }

.tc-seccion {
  position: relative;
  padding: clamp(1.5rem, 3.2vw, 2.4rem);
  border-radius: 30px;
  background: linear-gradient(170deg, var(--t-uva), var(--t-fondo-2));
  border: 1px solid var(--t-borde);
  overflow: hidden;
}
.tc-seccion::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.16), transparent 70%);
  pointer-events: none;
}
.tc-seccion:nth-child(even)::after { background: radial-gradient(circle, rgba(61, 220, 132, 0.16), transparent 70%); }

.tc-seccion__cab { position: relative; display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.tc-seccion__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 42% 58% 50% 50% / 50% 44% 56% 50%;
  background: var(--t-sol);
  color: var(--t-oscuro);
  font-family: var(--t-display);
  font-size: 1rem;
  font-weight: 800;
}
.tc-seccion:nth-child(even) .tc-seccion__num { background: var(--t-lima); }
.tc-h2 {
  margin: 0.2rem 0 0;
  color: var(--t-blanco);
  font-family: var(--t-display);
  font-size: clamp(1.45rem, 1.15rem + 1.25vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tc-seccion__cuerpo { position: relative; }
.tc-seccion__cuerpo > :last-child,
.tc-bloque > :last-child { margin-bottom: 0; }

.tc-bloque { margin-top: 1.4rem; padding: 1.2rem 1.3rem; border-radius: 22px; background: rgba(23, 7, 48, 0.55); border: 1px dashed var(--t-borde-2); }
.tc-seccion__cuerpo > .tc-bloque:first-child { margin-top: 0; }
.tc-h3 {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 212, 59, 0.14);
  color: var(--t-sol-hi);
  font-family: var(--t-display);
  font-size: clamp(1.04rem, 0.98rem + 0.35vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
}

.tc-cta { margin: 1.6rem 0 0.5rem; }

/* tablas */

.tc-tabla {
  margin: 1.1rem 0;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--t-borde-2);
  background: rgba(23, 7, 48, 0.65);
  -webkit-overflow-scrolling: touch;
}
.tc-tabla table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.tc-tabla--ancha table { min-width: 560px; }
.tc-tabla thead th {
  padding: 0.85rem 1rem;
  background: var(--t-uva-2);
  color: var(--t-sol-hi);
  font-family: var(--t-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}
.tc-tabla tbody th,
.tc-tabla tbody td,
.tc-tabla tfoot th,
.tc-tabla tfoot td { padding: 0.72rem 1rem; text-align: left; vertical-align: top; }
.tc-tabla tbody tr + tr > * { border-top: 1px solid var(--t-borde); }
.tc-tabla tbody th { color: var(--t-lima-hi); font-weight: 600; }
.tc-tabla tbody tr:hover { background: rgba(183, 156, 255, 0.08); }
.tc-tabla tfoot { background: var(--t-lima); }
.tc-tabla tfoot th,
.tc-tabla tfoot td { color: var(--t-oscuro); font-weight: 800; }

/* listas */

.tc-lista { display: grid; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tc-lista li { position: relative; padding-left: 1.7rem; line-height: 1.6; }
.tc-lista li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.1rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 40% 60% 55% 45%;
  background: var(--t-lima);
  box-shadow: 3px 3px 0 var(--t-sol);
}

.tc-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; margin: 0 0 1.1rem; padding: 0; list-style: none; counter-reset: tc-p; }
.tc-pasos li {
  position: relative;
  padding: 2.6rem 1rem 1rem;
  border-radius: 20px;
  background: rgba(23, 7, 48, 0.55);
  border: 1px solid var(--t-borde);
  counter-increment: tc-p;
  line-height: 1.5;
}
.tc-pasos li::before {
  content: counter(tc-p);
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--t-sol);
  color: var(--t-oscuro);
  font-family: var(--t-display);
  font-size: 0.85rem;
  font-weight: 800;
}

/* preguntas */

.tc-faq { display: grid; gap: 0.7rem; }
.tc-faq__it { position: relative; border-radius: 20px; background: rgba(23, 7, 48, 0.55); border: 1px solid var(--t-borde); overflow: hidden; }
.tc-faq__it::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--t-borde-2); transition: background-color 0.2s ease; }
.tc-faq__it[open]::before { background: var(--t-sol); }
.tc-faq__s { display: flex; align-items: center; gap: 0.9rem; min-height: 60px; padding: 0.9rem 1.1rem 0.9rem 1.4rem; list-style: none; cursor: pointer; }
.tc-faq__s::-webkit-details-marker { display: none; }
.tc-faq__s::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--t-lima);
  color: var(--t-oscuro);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.tc-faq__it[open] .tc-faq__s::after { transform: rotate(45deg); background: var(--t-sol); }
.tc-faq__n { flex-shrink: 0; color: var(--t-lila); font-family: var(--t-display); font-weight: 800; }
.tc-faq__q { margin: 0; color: var(--t-blanco); font-family: var(--t-display); font-size: 1.04rem; font-weight: 700; line-height: 1.4; }
.tc-faq__r { padding: 0 1.1rem 1.15rem calc(1.4rem + 1.6rem + 0.9rem); }
.tc-faq__r p { margin: 0; }

/* ---------- pie ---------- */

.tc-pie { background: var(--t-oscuro); border-top: 1px solid var(--t-borde); border-radius: 40px 40px 0 0; }
.tc-pie__rej { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 2rem; align-items: start; padding: 2.8rem 0 1.6rem; }
.tc-pie__edad { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0 0; color: var(--t-suave); font-size: 0.93rem; }
.tc-edad { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--t-sol); color: var(--t-oscuro); font-size: 0.82rem; font-weight: 800; }
.tc-pie__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.1rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.tc-pie__nav a { display: inline-block; padding: 0.4rem 0; color: var(--t-texto); font-weight: 500; text-decoration: none; }
.tc-pie__nav a:hover { color: var(--t-lima); }
.tc-pie__btns { display: grid; gap: 0.9rem; }
.tc-pie__copy { margin: 0; padding: 1rem 0 1.6rem; border-top: 1px solid var(--t-borde); color: var(--t-suave); font-size: 0.88rem; }

.tc-subir {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 42% 58% 50% 50% / 50% 44% 56% 50%;
  background: var(--t-sol);
  color: var(--t-oscuro);
  box-shadow: 3px 3px 0 var(--t-lima-lo);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.tc-subir.tc-subir--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1180px) {
  .tc-nav { display: none; }
  .tc-hamb { display: inline-flex; }
  .tc-top__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .tc-hero__rej { grid-template-columns: minmax(0, 1fr); }
  .tc-hero__visual { order: -1; margin: 0 0.6rem; }
  .tc-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  :root { --t-alto: 64px; }
  body { font-size: 1rem; }
  .tc-marca__b { display: none; }
  .tc-hamb__txt { display: none; }
  .tc-hamb { width: 46px; padding: 0; justify-content: center; }
  .tc-top__cta { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
  .tc-hero__btns .tc-btn,
  .tc-cta .tc-btn { width: 100%; }
  .tc-seccion { padding: 1.15rem; border-radius: 24px; }
  .tc-bloque { padding: 1rem; }
  .tc-menu__l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-menu__ctas { grid-template-columns: minmax(0, 1fr); }
  .tc-faq__r { padding-left: 1.4rem; }
}
