/* ============================================================
   Interna de Recetas — una receta por producto
   Fondo aqua de marca; cada tarjeta usa el color de su categoría (--c).
   ============================================================ */

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mil976-font);
  font-weight: var(--mil976-weight-body);
  color: var(--mil976-title);
  /* Base azul de marca con la parte superior aclarada (sin cortes al final). */
  background: linear-gradient(180deg, #a6cddd 0%, #90bcd2 46%, #85b2ca 100%);
  -webkit-font-smoothing: antialiased;
}

/* Radial blanco luminoso, fijo a la pantalla. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(72% 56% at 50% 30%, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .14) 44%, rgba(255, 255, 255, 0) 72%);
}

.recetas-main {
  padding-top: clamp(150px, 20vh, 210px);
  padding-bottom: clamp(44px, 6vw, 80px);
  padding-inline: clamp(20px, 5vw, 48px);
}

.recetas-wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
}

/* --- Hero --- */
.recetas-hero {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.recetas-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--mil976-accent);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 900;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.recetas-hero__title {
  margin: 0;
  color: var(--mil976-title);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .96;
}

.recetas-hero__intro {
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--mil976-text);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
}

/* --- Grid de recetas --- */
.rcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}

/* Tarjetas ocultas hasta "Cargar más". */
.rcard.is-hidden { display: none; }

/* Botón "Cargar más" (vidrio, línea del sitio). */
.rcard-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}

.rcard-more__btn {
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 12px 26px rgba(6, 68, 82, .16);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  color: var(--mil976-accent-strong);
  font-family: var(--mil976-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--mil976-ease), background .3s ease, box-shadow .3s ease;
}

.rcard-more__btn:hover,
.rcard-more__btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 18px 34px rgba(6, 68, 82, .22);
}

.rcard-more.is-done { display: none; }

/* Tarjeta vertical: foto cuadrada arriba + contenido abajo. */
.rcard {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: var(--mil976-radius);
  border: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 22px 46px rgba(6, 68, 82, .16);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  transform: translateY(26px);
  opacity: 0;
  animation: recFadeUp .6s cubic-bezier(.16, 1, .3, 1) forwards;
  position: relative;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}

.rcard__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 2vw, 24px);
}

/* Toda la tarjeta es clickeable (enlace estirado sobre el nombre). */
.rcard__link {
  color: inherit;
  text-decoration: none;
}

.rcard__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--mil976-radius);
}

.rcard:hover {
  transform: translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 30px 60px rgba(6, 68, 82, .24);
}

/* El enlace al producto queda por encima del enlace estirado. */
.rcard__product a {
  position: relative;
  z-index: 2;
}

.rcard:nth-child(2) { animation-delay: .07s; }
.rcard:nth-child(3) { animation-delay: .14s; }
.rcard:nth-child(4) { animation-delay: .21s; }
.rcard:nth-child(5) { animation-delay: .28s; }
.rcard:nth-child(6) { animation-delay: .35s; }
.rcard:nth-child(7) { animation-delay: .42s; }
.rcard:nth-child(8) { animation-delay: .49s; }
.rcard:nth-child(9) { animation-delay: .56s; }
.rcard:nth-child(10) { animation-delay: .63s; }

/* Media: foto cuadrada al ras de la parte superior de la tarjeta */
.rcard__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c, #85b2ca);
}

.rcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rcard__cat {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c, #85b2ca);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.rcard__name {
  margin: 0 0 12px;
  color: var(--mil976-title);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -.01em;
}

/* Chip de producto: botellita en círculo + nombre (enlaza al producto). */
.rcard__product {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px 15px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}

.rcard__product:hover {
  background: rgba(255, 255, 255, .78);
  transform: translateY(-1px);
}

.rcard__product-bottle {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%),
    var(--c, #85b2ca);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.rcard__product-bottle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcard__product-name {
  color: var(--mil976-accent-strong);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .01em;
}

.rcard__ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.rcard__ingredients li {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  color: var(--mil976-text);
  font-size: 12px;
  font-weight: 700;
}

.rcard__steps {
  margin: 0;
  color: var(--mil976-text);
  font-size: 14px;
  line-height: 1.55;
}

@keyframes recFadeUp {
  to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .rcard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .rcard-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rcard { animation: none; transform: none; opacity: 1; }
  .rcard__media { transition: none; }
}
