:root {
  --lavanda-soft: #F3E5F5;
  --lavanda-main: #D1C4E9;
  --lavanda-dark: #9575CD;
  --texto: #4A4A4A;
  --blanco: #FFFFFF;
  --fondo: #FAF2FA;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

.hide { display: none !important; }

/* Lock screen */
.full-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--fondo), var(--lavanda-main));
  padding: 20px;
  z-index: 100;
}

.lock-card {
  background: var(--blanco);
  padding: 40px 30px;
  border-radius: 30px;
  box-shadow: 0 15px 35px rgba(149, 117, 205, 0.1);
  text-align: center;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tipografía */
h2 {
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin: 0 0 10px;
  color: var(--lavanda-dark);
}

p { margin: 0; }

.location, .text, .time-text, .place-name, .bold-text { font-size: 0.9rem; }

.place-name, .bold-text {
  font-weight: 600;
  margin: 5px 0;
}

.text { text-align: center; }
.time-text { color: #888; }

.medium-text { font-size: 1.2rem; }

.guest-names { font-size: 1rem; }
.badge { font-weight: bold; }

.cursive {
  font-family: 'Corinthia', cursive;
  font-size: 3.5rem;
  color: var(--lavanda-dark);
  line-height: 1;
}

.with-margin { margin-top: 20px; }

.box-text {
  width: 100% !important;
  max-width: 260px;
}

.box-text2 {
  width: 80%;
  max-width: 350px;
}

/* Responsive */
@media (max-width: 480px){
  .place-name, .bold-text, .text, .time-text, .location { font-size: 0.85rem; }
  .guest-names { font-size: 0.9rem; }
  .cursive { font-size: 3rem }
  .medium-text { font-size: 1rem; }
  .badge { font-size: 1rem; }
  h2 { font-size: 1.1rem; }

  .lodging-text { width: 96% }
  .dresscode-text { width: 90%; }
}

/* Main card */
.main-card {
  background: var(--blanco);
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(149, 117, 205, 0.05);
  border: 1px solid rgba(209, 196, 233, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: 0;
}

.photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;

  -webkit-mask-image: url("assets/torn-mask.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 120%;
  -webkit-mask-position: bottom;

  mask-image: url("assets/torn-mask.svg");
  mask-repeat: no-repeat;
  mask-size: 100% 120%;
  mask-position: bottom;
}

/* Secciones y cards */
.info-section, .wedding-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--blanco);
  padding: 40px 20px;
  border-radius: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(149, 117, 205, 0.05);
  border: 1px solid rgba(209, 196, 233, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-mpad {
  padding: 20px 20px 40px !important;
}

/* Iconos */
.icon-container {
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.love-icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 480px){
  .love-icon { padding-bottom: 10px; }
}

/* Inputs */
input {
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #DDD;
  border-radius: 10px;
  max-width: 260px;
  text-align: center;
}

.footer {
  text-align: center;
  margin: 0 auto;
  padding-top: 0px;
  padding-bottom: 40px;
}

/* Botones */
.btn-main {
  background-color: var(--lavanda-dark);
  color: white;
  border: none;
  padding: 8px 25px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  margin-top: 20px;
}

#btnEnter{
  width: 100% !important;
  max-width: 220px;
}

.btn-main:hover { transform: scale(1.05); }

@media  (max-width: 480px){
  .btn-main { font-size: 13px; }  
  #btnEnter { width: 80% !important; }
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.cd-item {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cd-item span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lavanda-dark) 50%, transparent);
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--blanco);

  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 324px){
  .countdown { 
    gap: 0;
    margin-top: 15px;
  }

  .cd-item span {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .cd-item small {
    font-size: 0.75rem;
  }
}

@media (min-width: 325px) and (max-width: 480px) {
  .countdown { 
    gap: 3px;
    margin-top: 10px;
  }

  .cd-item span {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .cd-item small {
    font-size: 0.8rem;
  }
}

/* Actions (WhatsApp) */
.actions {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 10px;
}

.actions a { margin-top: 10px; }

/* Stats */
.stats{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.stat{
  border: 1px solid var(--lavanda-dark);
  border-radius: 16px;
  padding: 14px 12px;
  text-align:center;
  background: rgba(255,255,255,0.6);
}

.stat-value{
  font-size: 28px;
  font-weight: 800;
  color: var(--lavanda-dark);
  line-height: 1.1;
}

.stat-label{
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.8;
}

.without-info { white-space: pre-line; }

@media  (max-width: 480px){
  .stat{ width: 80%; }
}

/* Responsive */
@media (max-width: 480px){
  .stat-value{ font-size: 22px; }
}

/* Stay */
.vertical {
  width: 1px;
  height: 70px;
  background-color: #888;
  opacity: 0.3;
  border: none;
}

.stay-container {
  display: flex;
  flex-direction: row;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 10px;
}

.left-box { margin-right: 20px; }
.right-box { margin-left: 20px; }

/* Responsive */
@media (max-width: 350px){
  .stay-container{ flex-direction: column;  margin-bottom: 0px;}
  .vertical{ display: none; }
  .left-box { margin-right: 0px; }
  .right-box { margin-left: 0px; margin-top: 20px; }
}

/* Banco */
.bank-section { position: relative; text-align: center; }

.btn-wrap {
  position: relative;
  display: inline-block;
}

.btn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.bank-panel {
  margin-top: 14px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

/* Accordion */
.bank-panel.animating {
  transition: max-height 250ms ease, opacity 250ms ease, transform 250ms ease;
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.bank-panel.open {
  opacity: 1;
  transform: translateY(0);
}

.bank {
  text-align: center;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--lavanda-main);
}

.bank + .bank { margin-top: 12px; }

.arrow-wrap {
  display: inline-flex;
  align-items: center;
  transition: transform .25s ease;
  transform-origin: center;
}

.arrow-wrap.rotated { transform: rotate(180deg); }
.arrow-wrap lottie-player { pointer-events: none; }

/* Money overlay */
.money-overlay {
  position: absolute;
  top: calc(100% - 2px);
  width: 100%;
  height: 300px;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;

  max-width: 95%;
  left: 50%;
  transform: translateX(-50%);
}

/* Errores */
.error-msg {
  color: #e57373;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

@media (max-width: 480px){
  .error-msg { font-size: 0.8rem; }
}

/* Fecha de boda */
.date-banner { text-align: center; }

.date-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.border-box {
  border-top: solid 1px #000;
  border-bottom: solid 1px #000;
  width: auto;
  padding: 2px 10px;
}

.day {
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  margin: 0;
}

.day-text {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.right { margin-left: 20px; }
.left { margin-right: 20px; }

@media  (max-width: 480px){
  .day-text { font-size: 0.85rem; }
  .day { font-size: 3.2rem; }
}

/* Wedding invitation */
.names {
  font-family: 'Corinthia', cursive;
  font-size: 5rem;
  color: var(--texto);
  margin: 0;
  line-height: 1;
  height: 60px;
}

.names-overlay {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.wedding-invitation {
  width: 100%;
  margin-bottom: 30px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  position: relative;
  margin-top: -150px;
  padding-top: 80px;
  z-index: 2;

  transition: transform 0.3s ease;
}

@media (max-width: 324px){
  .names { font-size: 3.2rem; }
  .wedding-invitation { margin-top: -110px; }
  .medium-text { margin-top: 0px; }
}

@media (min-width: 325px) and (max-width: 380px){
  .names { font-size: 4rem; }
  .wedding-invitation { margin-top: -110px; }
  .medium-text { margin-top: 0px; }
}

@media (min-width: 381px) and (max-width: 480px){
  .names { font-size: 4rem; }
  .wedding-invitation { margin-top: -130px; }
  .medium-text { margin-top: 0px; }
}

/* Music Player */
.yt-music-card {
  width: 50%;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* El iframe queda “invisible” (solo audio), pero existe */
#ytPlayer{
  position: absolute;
  inset: 0;
  opacity: 0.001;
  pointer-events: none;
}

.yt-meta{
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.yt-controls{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yt-progress{
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
}

.yt-mini { font-size: 10px; }

.yt-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  width: 100%;
  gap: 15px;
}

.yt-btn-action-base { font-size: 13px; }
.yt-btn-action-replay { font-size: 15px; }

.circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--lavanda-dark);
  display: flex;
  justify-content: center;
  align-items: center;
}

.yt-btn-play {
  font-size: 15px;
  color: var(--blanco);
  margin: 0 !important;
  cursor: pointer;
  width: 35px;
  height: 35px;
}

.yt-btn-action {
  background: none;
  color: var(--lavanda-dark);
  cursor: pointer;
}

#ytSeek{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  cursor: pointer;

  accent-color: var(--lavanda-dark);
  padding: 0;
  margin: 0;

  border: none;
  outline: none;

  --pct: 0%;
  background: linear-gradient(
    to right,
    var(--lavanda-dark) 0%,
    var(--lavanda-dark) var(--pct),
    var(--lavanda-main) var(--pct),
    var(--lavanda-main) 100%
  );
}

#ytSeek::-webkit-slider-runnable-track{
  height: 6px;
  background: transparent;
  border-radius: 999px;
}

#ytSeek::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lavanda-dark);
  cursor: pointer;
  margin-top: -2px;
}

@media (max-width: 480px){
  .yt-music-card { width: 80%; margin-top: 20px; }
  .badge { margin-top: 15px !important;}
}
