:root{
  --yellow:#ffcc0a;
  --blue:#141947;
  --purple:#a54a97;

  --bg:#ffffff;
  --soft:#f6f7fb;
  --text:#0f1222;
  --muted:#5c6077;
  --heading-accent: var(--blue);

  --radius:18px;
  --shadow: 0 18px 50px rgba(20,25,71,.10);
  --shadow2: 0 10px 24px rgba(20,25,71,.10);
  --border: 1px solid rgba(20,25,71,.10);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

img{ max-width:100%; display:block; }

.container{
  width:min(1160px, calc(100% - 40px));
  margin:0 auto;
}

.service-page{ overflow:hidden; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border: var(--border);
  text-decoration:none;
  color:var(--blue);
  background:#fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
  font-weight:600;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(20,25,71,.18);
}
.btn--primary{
  background: linear-gradient(90deg, var(--yellow), #ffe16b);
  border-color: rgba(255,204,10,.35);
  color:#1b1f3a;
}
.btn--secondary{
  background: linear-gradient(90deg, rgba(165,74,151,.16), rgba(255,204,10,.18));
  border-color: rgba(165,74,151,.22);
}
.btn--ghost{
  background: transparent;
}
.btn--full{ width:100%; }

.link{
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px dashed rgba(165,74,151,.45);
}
.link:hover{ border-bottom-style: solid; }

/* Reveal */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}

/* HERO */
.hero{
  position:relative;
  min-height: 78vh;
  display:grid;
  align-items:center;
  padding: 70px 0 42px;
  overflow: hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  z-index:-1;
}
.hero__bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform: scale(1.02);
}
.hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(255,204,10,.22), transparent 60%),
    radial-gradient(900px 520px at 70% 20%, rgba(165,74,151,.18), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.94));
  backdrop-filter: blur(2px);
}

.hero__content{
  position: relative;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  z-index: 2;
  align-items: center;
}
.hero__media{
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 9 / 16;
  justify-self: center;
  align-self: center;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow);
  background: #fff;
}
.hero__media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.32);
  pointer-events: none;
}
.hero__media video,
.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media video{
  pointer-events: none;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,204,10,.28), rgba(165,74,151,.14));
  border: 1px solid rgba(255,204,10,.45);
  color: #9b6a00;
  font-weight: 700;
  font-size: 13px;
}

.hero__text h1{
  font-family: "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .92;
  margin: 14px 0 10px;
  color: var(--blue);
  letter-spacing: .5px;
}
.hero__text p{
  max-width: 60ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero__badges{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.badge{
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  border: var(--border);
  box-shadow: 0 10px 26px rgba(20,25,71,.08);
}
.badge strong{
  display:block;
  color: var(--blue);
  font-size: 14px;
}
.badge span{
  display:block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

/* Card */
.hero__card{
  background: rgba(255,255,255,.78);
  border: var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: opacity .45s ease, transform .45s ease;
}
.hero__cardTop h3{
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 18px;
}
.hero__cardTop p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.checklist{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap: 10px;
}
.checklist li{
  padding-left: 28px;
  position:relative;
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
}
.checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,204,10,.9), rgba(255,204,10,.55));
  box-shadow: 0 10px 18px rgba(255,204,10,.25);
}
.checklist li::after{
  content:"";
  position:absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 4px;
  border-left: 2px solid rgba(20,25,71,.9);
  border-bottom: 2px solid rgba(20,25,71,.9);
  transform: rotate(-45deg);
}
.hero__miniCta{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(20,25,71,.10);
  color: var(--muted);
  font-size: 14px;
}

/* Imagen protagonista: empieza centrada por encima del hero */
.hero__imageIntro{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}
.hero__imageIntro img{
  width: min(520px, 82vw);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 30px 80px rgba(20,25,71,.25);
  transform: translateY(22px) scale(1.02);
  opacity: 0;
  transition: transform .9s cubic-bezier(.22,.8,.2,1), opacity .6s ease, width .7s ease, height .7s ease, border-radius .7s ease;
}

/* Entrada inicial */
.hero.loaded .hero__imageIntro img{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Estado final: imagen acoplada sustituyendo el card */
.hero.image-docked .hero__imageIntro{
  position: relative;
  inset: auto;
  display: block;
  z-index: 2;
}
.hero.image-docked .hero__imageIntro img{
  width: 100%;
  height: 100%;
  transform: none;
  opacity: 1;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: var(--border);
}

/* Ocultar card cuando la imagen llega */
.hero.image-docked .hero__card{
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* TRUST */
.trust{
  padding: 18px 0 44px;
}
.trust__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust__item{
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(20,25,71,.06);
}
.trust__item h2,
.trust__item h4{
  margin:0 0 6px;
  color: var(--heading-accent);
  font-size: 15px;
}
.trust__item p{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Sections */
.section{
  padding: 72px 0;
}
.section--soft{
  background: var(--soft);
}
.section--print-types{
  position: relative;
  background: url("../img/aniversario.jpg") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.section--print-types::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,12,26,.62);
  pointer-events: none;
}
.section--print-types .container{
  position: relative;
  z-index: 1;
}
.section--print-types .section__header h2{
  color: #fff;
}
.section--print-types .section__header p{
  color: rgba(255,255,255,.82);
}
.section__header{
  margin-bottom: 26px;
}
.section__header h2{
  margin:0 0 10px;
  color: var(--heading-accent);
  font-size: 30px;
  letter-spacing: .2px;
}
.section__header p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 70ch;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.step{
  background:#fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(20,25,71,.06);
  position:relative;
  overflow:hidden;
}
.step::before{
  content:"";
  position:absolute;
  inset:auto -40px -40px auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 30% 30%, rgba(165,74,151,.22), transparent 65%);
  transform: rotate(10deg);
}
.step__num{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(20,25,71,.06);
  border: 1px solid rgba(20,25,71,.10);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 10px;
}
.step h3{
  margin:0 0 8px;
  color: var(--blue);
  font-size: 17px;
}
.step p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

/* Media split */
.media-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
  align-items:center;
}
.media-frame{
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  border: var(--border);
  box-shadow: var(--shadow);
  background:#fff;
}
.media-frame img{
  width:100%;
  height: 380px;
  object-fit: cover;
}
.media-split__text h3{
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 22px;
}
.media-split__text p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}
.bullets{
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text);
}
.bullets li{
  margin: 8px 0;
  color: var(--muted);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  align-items: stretch;
}
.card{
  background:#fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(20,25,71,.06);
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
}
.card__media{
  margin-bottom: 12px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: var(--border);
  background: #fff;
}
.card__media img{
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
}
.card__top h3{
  margin:0 0 8px;
  color: var(--blue);
  font-size: 20px;
}
.card__top p{
  margin:0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}
.card__list{
  margin:0 0 14px;
  padding:0;
  list-style:none;
  display:grid;
  gap: 10px;
  flex:1;
}
.card__list li{
  color: var(--muted);
  padding-left: 18px;
  position:relative;
  line-height: 1.6;
  font-size: 14px;
}
.card__list li::before{
  content:"•";
  position:absolute;
  left:0;
  color: var(--purple);
  font-weight: 900;
}
.card--featured{
  border-color: rgba(255,204,10,.50);
  box-shadow: 0 18px 44px rgba(255,204,10,.20);
}
.card__ribbon{
  position:absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,204,10,.22);
  border: 1px solid rgba(255,204,10,.35);
  color: var(--blue);
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.gallery__item{
  border-radius: var(--radius);
  overflow:hidden;
  border: var(--border);
  box-shadow: 0 10px 22px rgba(20,25,71,.06);
  background:#fff;
}
.gallery__item img{
  width:100%;
  height: 210px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img{
  transform: scale(1.04);
}
.gallery__item:nth-child(1){ grid-column: span 4; }
.gallery__item:nth-child(2){ grid-column: span 4; }
.gallery__item:nth-child(3){ grid-column: span 4; }
.gallery__item:nth-child(4){ grid-column: span 6; }
.gallery__item:nth-child(5){ grid-column: span 3; }
.gallery__item:nth-child(6){ grid-column: span 3; }

/* FAQ */
.faq{
  display:grid;
  gap: 12px;
  margin-top: 18px;
}
.faq__item{
  background:#fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(20,25,71,.06);
  padding: 14px 16px;
}
.faq__item summary{
  cursor:pointer;
  color: var(--blue);
  font-weight: 700;
}
.faq__content p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* CTA */
.cta{
  padding: 60px 0;
  background:
    radial-gradient(900px 420px at 20% 10%, rgba(255,204,10,.20), transparent 60%),
    radial-gradient(900px 420px at 80% 10%, rgba(165,74,151,.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #ffffff);
  border-top: 1px solid rgba(20,25,71,.10);
}
.cta__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  background: rgba(255,255,255,.72);
  border: var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 20px;
  box-shadow: var(--shadow);
}
.cta__text h2{
  margin:0 0 10px;
  color: var(--heading-accent);
  font-size: 26px;
}
.cta__text p{
  margin:0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 68ch;
}
.cta__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Responsive */
@media (max-width: 980px){
  .hero__content{ grid-template-columns: 1fr; }
  .trust__grid{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: 1fr; }
  .media-split{ grid-template-columns: 1fr; }
  .media-frame img{ height: 320px; }
  .cards{ grid-template-columns: 1fr; }
  .cta__inner{ flex-direction: column; align-items:flex-start; }
  .cta__actions{ width:100%; }
  .btn--full{ width:100%; }

  /* En móvil no tiene sentido el “dock” sustituyendo el card.
     Dejamos la imagen como hero normal y el card visible. */
  .hero__imageIntro{
    position: relative;
    inset: auto;
    justify-content: flex-start;
    padding: 0 0 16px;
    z-index: 2;
  }
  .hero__imageIntro img{
    width: 100%;
    max-width: 520px;
    opacity: 1;
    transform: none;
    border: var(--border);
    box-shadow: var(--shadow);
  }
  .hero.image-docked .hero__card{
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 640px){
  .hero{ padding: 56px 0 30px; min-height: auto; }
  .gallery__item:nth-child(1),
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4),
  .gallery__item:nth-child(5),
  .gallery__item:nth-child(6){ grid-column: span 12; }
}
