* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
	/* Colores principales: cambia aquí para actualizar el tema */
  --head-color: #a1f2ca;
	--text-color: #3b8b5a;
	--accent-color: #663F28;
	--panel_back_color:#E6D8D1;
	--icons-color: #c978a4;
}


body {
font-family: 'Parisienne';
background-image: url('../images/fondo_bajo.png');
background-repeat:repeat-y;
background-size: cover;
background-attachment: fixed;
background-color: #fafafa;
color: var(--text-color);
}


.parrafo-invitacion {
	width: 75%;
	margin: 0 auto;
	display: block;
	text-align: center;
	color: var(--head-color);
}


section {
padding: 1rem 1.5rem;
}


.center {
text-align: center;
}


/* HERO */
.hero {
min-height: 100vh;
height: 100vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 0;
width: 100%;
display: flex;
top: 200px;
flex-direction: column;
justify-content: center;
align-items: center;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url('../images/fondo.png') center top no-repeat;
	background-size: auto 100%;
	pointer-events: none;
}

.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0,0,0,0.4);
	pointer-events: none;
	background-size: 100% auto;
	background-position: center top;
	color: var(--head-color);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}


.hero h1 {
font-size: 2.8rem;
}

.hero h2 {
font-size: 1.5em;
}

.hero p {
font-size: 2em;
}

/* GIF en el hero */
.hero-gif {
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1rem;
	max-width: 420px;
	width: 100%;
	height: auto;
	object-fit: contain;
}


.icons {
font-size: 2.5rem;
color: var(--icons-color);
}

/* CARD */
.card {
max-width: 900px;
margin: auto;
/* 50% transparencia para que se vea el fondo_bajo detrás de las tarjetas */
background: rgba(181, 220, 202,0.5);
padding: 2rem;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

/* Ajustes para pantallas anchas */
@media (min-width: 480px) {
	body {
		font-family: 'Parisienne';
	}


	.hero-gif {
		max-width: 680px; /* evita que el GIF sea demasiado grande en desktop */
		width: auto;
		margin-bottom: 0rem;
	}

	.hero h1 {
		font-size: 3.4rem;
	}

	/* hacer las tarjetas ligeramente translúcidas en pantallas grandes */
	.card {
		/* mantener 50% de transparencia también en pantallas grandes */
		background: rgba(255, 255, 255, 0.5);
	}

	/* reducir intensidad del overlay del body fijo para que destaque el hero */
	body {
		background-attachment: scroll; /* evita efecto extraño en algunos navegadores */
		/* En pantallas grandes evitar zoom excesivo: ajustar tamaño y posición del fondo */
		background-size: auto 100%; /* mantén la altura completa, evita crop/zoom horizontal */
		background-position: center top;
	}
}


/* GRID INFO */
.info-grid {
display: grid;
gap: 1.5rem;
color: var(--text-color);
text-align: center;
background-color: rgba(0,0,0,.1);
}

/* MAP iframe: centrar y hacer responsive */
.card iframe {
	display: block;       /* hace que margin:auto funcione */
	margin: 0 auto;       /* centra horizontalmente */
	width: 100%;
	max-width: 900px;     /* evita que sea más ancho que la tarjeta */
	height: 420px;       /* altura por defecto en desktop */
	border: 0;
}

@media (max-width: 1024px) {
	.card iframe {
		height: 260px; /* altura menor en móviles */
	}
}


/* CONTADOR */
.countdown {
display: flex;
justify-content: center;
font-weight:900;
gap: 1rem;
margin-top: 0.5rem;
flex-wrap: wrap;
}

/* Label above the countdown numbers */
.countdown-label {
	text-align: center;
	font-size: 1.6rem;
	margin-bottom: 0.35rem; /* espacio (salto) después de 'Faltan...' */
	color: var(--text-color);
}

.countdown-grid {
	display: flex;
	gap: 1rem;
	justify-content: center;
	width: 100%;
}
.countdown-grid div { text-align: center; }
.countdown-grid .label { font-size: 0.95rem; margin-top: 0.25rem; }


.countdown div {
color: var(--text-color);
padding: 0.1rem;
border-radius: 12px;
font-size: large;
text-align: center;
min-width: 5px;
}


/* BOTÓN */
.btn {
display: inline-block;
margin-top: 2rem;
padding: 1rem 2.5rem;
background: var(--icons-color);
color: white;
text-decoration: none;
text-align: center;
border-radius: 30px;
}

/* Nota: para cambiar el color de fuente global, edita --text-color en :root. */

/* Botón flotante de audio */
.audio-toggle {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 9999;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--panel_back_color);
	color: var(--icons-color);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
	border: 0;
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}

.audio-toggle:hover { transform: translateY(-3px); }
.audio-toggle:active { transform: translateY(0); }

/* Icono más pequeño en móviles */
@media (max-width: 1024px) {
  .audio-toggle { width: 48px; height: 48px; right: 14px; top: 14px; }
}

/* Animación pulso cuando el audio está sonando */
@keyframes audio-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(44, 40, 102, 0.35);
	}
	70% {
		transform: scale(1.04);
		box-shadow: 0 12px 40px 8px rgba(44, 40, 102, 0.06);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(44, 40, 102, 0.0);
	}
}

.audio-toggle.playing {
	animation: audio-pulse 1.6s ease-in-out infinite;
}

/* Botón copiar (junto a la dirección) */
.copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 10px;
	padding: 6px;
	border-radius: 6px;
	background: transparent;
	border: 0;
	color: var(--text-color);
	cursor: pointer;
	font-size: 0.95rem;
}
.copy-btn i { pointer-events: none; }
.copy-btn.copied { color: #4BB543; /* success green */ }
.copy-btn:focus { outline: 2px solid rgba(44,40,102,0.15); }

/* Toast pequeño para confirmar copia */
.copy-toast {
	position: fixed;
	top: 88px; /* justo debajo del botón */
	right: 24px;
	background: rgba(0,0,0,0.8);
	color: #fff;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 0.95rem;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
	z-index: 10000;
}
.copy-toast.visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1024px) {
	.copy-toast { right: 14px; top: 72px; }
}

/* Ecualizador (5 barras) dentro del botón */
.audio-toggle .eq {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	height: 22px;
}
.audio-toggle .bar {
	width: 4px;
	height: 6px; /* tamaño mínimo */
	background: var(--icons-color);
	border-radius: 2px;
	transition: height 0.08s linear;
	will-change: height;
}

/* Fallback: animación simple (si WebAudio no está disponible) */
.audio-toggle.playing .bar {
	animation: eq-fallback 0.9s infinite linear;
}
.audio-toggle.playing .bar.b1 { animation-delay: 0s; }
.audio-toggle.playing .bar.b2 { animation-delay: 0.08s; }
.audio-toggle.playing .bar.b3 { animation-delay: 0.16s; }
.audio-toggle.playing .bar.b4 { animation-delay: 0.24s; }
.audio-toggle.playing .bar.b5 { animation-delay: 0.32s; }

@keyframes eq-fallback {
	0% { height: 6px; }
	40% { height: 20px; }
	100% { height: 8px; }
}

/* Separador repetido horizontalmente */
.separator {
  --separator-height: 48px;      /* altura; ajusta aquí */
  height: var(--separator-height);
  width: 100%;                   /* ocupa el ancho del contenedor padre */
	/* ruta relativa desde css/styles.css -> ../images/ */
	background-image: url('../images/separador.png');
  background-repeat: repeat-x;   /* repite horizontalmente */
  background-position: center;
  background-size: auto 100%;    /* escala la imagen por la altura del div */
	display: block;
  margin: 20px 0;                /* espacio arriba/abajo; ajusta según necesites */
  pointer-events: none;          /* decorativo, no interrumpir interacción */
}

/* Fondo floral para la tarjeta de la cuenta regresiva */
.card.countdown-card {
	/* Usamos una pseudo-elemento centrado para colocar el aro detrás del contenido
		 así podemos controlar mejor el tamaño y el espaciado del 'marco'. */
	position: relative;
	  /* tamaño por defecto del aro (ajusta según tu imagen) */
	  --aro-size: 440px;
	  /* asegurar espacio suficiente arriba/abajo para que el aro no recorte el contenido
		  reducimos el espacio extra: ahora se aplica la mitad del espacio extra anterior */
	  padding: calc(var(--aro-size) / 2 + 0.125rem) 0.5rem;
}

/* Pseudo-elemento centrado con la imagen del aro */
.card.countdown-card::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: var(--aro-size);
	height: var(--aro-size);
	background-image: url('../images/aro_flores.png');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	pointer-events: none;
	z-index: 0;
	opacity: 1;
}

/* Asegurarse que el contenido quede encima del aro */
.card.countdown-card > * { position: relative; z-index: 1; }

@media (min-width: 1024px) {
				/* Mantener el mismo tamaño del aro que en móvil para evitar que se agrande en desktop */
				.card.countdown-card { --aro-size: 440px; padding: calc(var(--aro-size) / 2 + 0.125rem) 0.5rem; }
		.card.countdown-card::before { width: var(--aro-size); height: var(--aro-size); }
}

/* Modal de propina */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
}
.modal.show { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-content {
  position: relative;
  background: #fff;
  width: 80%;
  max-width: 80%;
  max-height: 90%;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}
.modal .yape { font-weight: 700; margin-top: 8px; }
.modal .small { font-size: 12px; color: #666; margin-top: 8px; }
@media (max-width: 1024px) {
  .modal-content { width: 90%; height: auto; padding: 14px; }
}

  #tbl th, #tbl td {
    font-size: 1.1em;
    font-family: inherit;
    font-weight: 700;
    color: #2b8a3e;
    line-height: 1.2;
    letter-spacing: 0.01em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
  }
  #tbl th {
    background: #c6f3d6;
    border-bottom: 2px solid #b2e6c2;
  }
  #tbl td {
    background: #eafaf0;
    border-bottom: 1px solid #d6f7e2;
  }
  #tbl tr:last-child td {
    border-bottom: none;
  }