﻿.rgc-page-todas-ideas{
  padding-bottom:56px;
}

/* Compact only the Secret Santa continuation; generic Compass results retain
   their editorial hero. */
@media(max-width:640px){
  .rgc-page-todas-ideas--secret-santa .rgc-all-ideas-hero{min-height:0;padding:20px 16px 18px}
  .rgc-page-todas-ideas--secret-santa .rgc-all-ideas-copy h1{margin-bottom:9px;font-size:clamp(2rem,9vw,2.7rem)}
  .rgc-page-todas-ideas--secret-santa .rgc-hero-personalized-description{display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.92rem}
  .rgc-page-todas-ideas--secret-santa .rgc-profile-summary{margin:8px auto 0}
  .rgc-page-todas-ideas--secret-santa .rgc-profile-summary__item:nth-child(3){display:none}
  .rgc-page-todas-ideas--secret-santa .rgc-brujula-ideas{padding-top:18px}
}

.rgc-all-ideas-hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:min(1200px, calc(100% - 48px));
  min-height:500px;
  margin:0 auto 24px;
  padding:65px 56px;
  overflow:hidden;
  border-radius:30px;
  background-image:
    linear-gradient(90deg, rgba(250,248,245,1) 0%, rgba(250,248,245,.99) 30%, rgba(250,248,245,.9) 43%, rgba(250,248,245,.55) 57%, rgba(250,248,245,.12) 73%, transparent 100%),
    var(--rgc-hero-bg);
  background-position:center right;
  background-size:cover;
  background-repeat:no-repeat;
  box-shadow:0 18px 44px rgba(22,59,77,.06);
}

.rgc-all-ideas-hero-grid{
  display:grid !important;
  grid-template-columns:minmax(0, 1.08fr) minmax(320px, .92fr) !important;
  gap:32px !important;
  align-items:center !important;
  width:100%;
}

.rgc-all-ideas-copy{
  position:relative;
  z-index:2;
  max-width:620px;
  min-width:0;
}

.rgc-all-ideas-copy .rgc-kicker{
  display:inline-flex;
  margin-bottom:18px;
}

.rgc-all-ideas-copy h1{
  margin:0 0 18px;
  color:#163B4D;
  font-family:var(--rcs-font-title);
  font-size:clamp(40px, 5.4vw, 58px);
  line-height:1;
  letter-spacing:-0.03em;
}

.rgc-all-ideas-copy h1 em{
  color:#E87A67;
  font-style:italic;
}

.rgc-all-ideas-copy p{
  margin:0 0 18px;
  color:#66707A;
  font-size:18px;
  line-height:1.65;
  max-width:640px;
}

.rgc-hero-personalized-lead,
.rgc-hero-personalized-description{
  font-size:18px;
  line-height:1.65;
}

.rgc-hero-highlight{
  color:#163B4D;
  font-weight:800;
}

.rgc-mod-card,
.rgc-result-main-card{
  margin-top:24px;
  padding:24px 26px;
  background:#fff;
  border:1px solid rgba(22,59,77,.10);
  border-radius:26px;
  box-shadow:0 14px 34px rgba(22,59,77,.06);
}

.rgc-mod-card h3{
  margin:0 0 18px;
  color:#163B4D;
  font-size:20px;
  line-height:1.2;
}

.rgc-mod-card h3 span{
  color:#E87A67;
  margin-right:6px;
}

.rgc-mod-list{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}

.rgc-mod-item{
  padding:16px 14px;
  border-radius:18px;
  background:#FAF8F5;
  text-align:center;
}

.rgc-mod-icon{
  display:block;
  margin-bottom:8px;
  color:#A7B8A0;
  font-size:24px;
}

.rgc-mod-item strong{
  display:block;
  margin-bottom:4px;
  color:#163B4D;
  font-size:14px;
}

.rgc-mod-item small{
  display:block;
  color:#66707A;
  font-size:12px;
  line-height:1.4;
}

.rgc-all-ideas-visual{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  min-width:0;
}

.rgc-result-hero-image{
  margin:0;
  width:min(100%, 520px);
}

.rgc-result-hero-image img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
  border-radius:28px;
  box-shadow:0 18px 40px rgba(22,59,77,.10);
}

.rgc-category-context-card{
  width:100%;
}

.rgc-result-main-card h3{
  margin:0 0 16px;
  color:#163B4D;
  font-size:24px;
  line-height:1.15;
}

.rgc-result-main-card p{
  margin:0;
  color:#66707A;
  font-size:16px;
  line-height:1.6;
}

.rgc-category-context-kicker{
  display:inline-flex;
  margin-bottom:12px;
  color:#E87A67;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.rgc-category-context-mark{
  margin-top:18px;
  color:#A7B8A0;
  font-size:28px;
  text-align:center;
}

.rgc-discovery-section,
.rgc-listing-section{
  margin-top:10px;
}

.rgc-final-cta{
  margin:48px auto 0;
  padding:30px 34px;
  max-width:1200px;
  border-radius:28px;
  background:#163B4D;
  color:#fff;
}

.rgc-final-cta-content{
  display:flex;
  gap:18px;
  align-items:flex-start;
}

.rgc-final-cta-icon{
  flex:0 0 auto;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  color:#F6D7CC;
  font-size:24px;
}

.rgc-final-cta-copy h2{
  margin:4px 0 12px;
  color:#fff;
  font-size:28px;
  line-height:1.1;
}

.rgc-final-cta-copy p{
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:16px;
  line-height:1.6;
}

.rgc-final-cta-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.rgc-final-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
}

.rgc-final-btn.primary{
  background:#E87A67;
  color:#fff;
}

.rgc-final-btn.secondary{
  background:#fff;
  color:#163B4D;
}

@media (max-width: 960px){
  .rgc-all-ideas-hero{
    width:calc(100% - 48px);
    min-height:0;
    padding:46px 28px;
    background-image:
      linear-gradient(180deg, rgba(250,248,245,1) 0%, rgba(250,248,245,.97) 100%);
  }

  .rgc-all-ideas-hero-grid{
    grid-template-columns:1fr !important;
    gap:24px !important;
    align-items:start !important;
  }

  .rgc-all-ideas-visual{
    justify-content:flex-start !important;
  }

  .rgc-mod-list{
    grid-template-columns:1fr;
  }
}

@media (max-width: 768px){
  .rgc-all-ideas-hero{
    margin:0 16px 22px;
    width:calc(100% - 32px);
    padding:34px 20px 30px;
    border-radius:28px;
  }

  .rgc-all-ideas-copy h1{
    font-size:38px;
  }

  .rgc-all-ideas-copy p,
  .rgc-hero-personalized-lead,
  .rgc-hero-personalized-description{
    font-size:17px;
  }

  .rgc-mod-card,
  .rgc-result-main-card{
    padding:20px;
    border-radius:22px;
  }

  .rgc-result-hero-image img{
    height:300px;
  }

  .rgc-final-cta{
    margin:32px 16px 0;
    padding:24px 20px;
  }

  .rgc-final-cta-content{
    flex-direction:column;
  }
}

/* RCS 6.5 — compact personalized ideas results */
.rgc-page-todas-ideas .rgc-all-ideas-hero{
  min-height:390px;
  margin-bottom:0;
  padding:46px 56px 82px;
}
.rgc-page-todas-ideas .rgc-all-ideas-copy .rgc-kicker{margin-bottom:10px}
.rgc-page-todas-ideas .rgc-all-ideas-copy h1{margin-bottom:12px;font-size:clamp(40px,4.8vw,56px)}
.rgc-page-todas-ideas .rgc-all-ideas-copy p{margin-bottom:10px;line-height:1.45}
.rgc-page-todas-ideas .rgc-hero-personalized-description{max-width:590px}
.rgc-page-todas-ideas .rgc-hero-btn,.rgc-page-todas-ideas .rgc-mod-card{display:none!important}
.rgc-page-todas-ideas .rgc-brujula-ideas + .rgc-final-cta{margin-top:0}

@media (max-width:960px){
  .rgc-page-todas-ideas .rgc-all-ideas-hero{padding:38px 28px 34px;background-image:linear-gradient(90deg,rgba(250,248,245,.98),rgba(250,248,245,.86)),var(--rgc-hero-bg);background-position:center;background-size:cover}
}
@media (max-width:768px){
  .rgc-page-todas-ideas .rgc-all-ideas-hero{min-height:0;margin-bottom:0;padding:28px 20px 24px}
  .rgc-page-todas-ideas .rgc-all-ideas-copy h1{font-size:36px}
  .rgc-page-todas-ideas .rgc-all-ideas-copy p{font-size:16px;line-height:1.4}

  /* Solo el catálogo de "Todas las ideas": dos tarjetas legibles por fila. */
  .rgc-page-todas-ideas .rgc-featured-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }

  .rgc-page-todas-ideas .rgc-gift-card{
    min-width:0;
    border-radius:14px;
  }

  .rgc-page-todas-ideas .rgc-gift-card-image{
    height:auto;
    aspect-ratio:1.15 / 1;
  }

  .rgc-page-todas-ideas .rgc-gift-card-body{
    min-width:0;
    padding:11px;
  }

  .rgc-page-todas-ideas .rgc-gift-card-category{
    overflow:hidden;
    margin-bottom:6px;
    font-size:9px;
    letter-spacing:.06em;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .rgc-page-todas-ideas .rgc-gift-card-title{
    display:-webkit-box;
    overflow:hidden;
    margin-bottom:8px;
    font-size:16px;
    line-height:1.14;
    overflow-wrap:anywhere;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  .rgc-page-todas-ideas .rgc-gift-card-emotion,
  .rgc-page-todas-ideas .rgc-gift-card-footer > span{
    display:none;
  }

  .rgc-page-todas-ideas .rgc-gift-card-footer{
    justify-content:flex-end;
    font-size:12px;
  }

  .rgc-page-todas-ideas .rgc-gift-card-badge{
    left:8px;
    bottom:8px;
    max-width:calc(100% - 16px);
    padding:5px 7px;
    font-size:10px;
  }

  .rgc-page-todas-ideas .rgc-gift-card-badge-icon .rcs-svg-icon{
    width:11px;
    height:11px;
  }
}

/* Keep this final: the contextual mobile result must win over the shared
   editorial hero rules above without affecting generic Compass results. */
@media(max-width:640px){
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-all-ideas-hero{min-height:0;margin-bottom:8px;padding:18px 16px 16px;background-position:center}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-all-ideas-copy h1{margin:0 0 8px;font-size:clamp(1.85rem,8.6vw,2.45rem);line-height:1}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-kicker{margin-bottom:6px;font-size:.68rem}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-hero-personalized-description{display:-webkit-box;overflow:hidden;margin:0;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:.88rem;line-height:1.35}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary{width:calc(100% - 24px);margin:6px auto 0}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary__inner{display:flex;align-items:center;gap:8px;padding:8px 10px}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary__item{padding:2px 5px}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary__item:nth-child(3),
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary__action{display:none}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary__label{font-size:10px}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-profile-summary__value{font-size:12px}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-brujula-ideas{padding:14px 0 30px}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-brujula-ideas__heading{gap:3px;margin-bottom:10px}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-brujula-ideas__heading h2{font-size:1.55rem}
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-brujula-ideas__heading p,
  .rgc-page-todas-ideas.rgc-page-todas-ideas--secret-santa .rgc-brujula-ideas__count{display:none}
}

/* P0.1: Compass results use the dark shared hero. Keep these corrections
   scoped to this variant so editorial heroes on other pages are untouched. */
.rcs-site-hero.rcs-brujula-results-hero .rgc-results-context-line{color:#F6B49E}
.rcs-site-hero.rcs-brujula-results-hero .rgc-hero-personalized-description{color:rgba(255,255,255,.92)}
.rcs-site-hero.rcs-brujula-results-hero .rgc-hero-highlight{color:#F6B49E}
