@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&family=Montserrat:wght@400;700&display=swap');

/* Variables de Color */
:root {
  --primary-color: #2D3436;
  --accent-color: #B8A07E;
  --background-color: #FAF9F8;
  --secondary-color: #ffffff;
}

/* Configuración adicional de colores (opcional si no lo tienes en Tailwind) */
:root {
  --accent-color: #C9A988; /* Color de acento */
}

/* Ajustes específicos para sombras */
#audio-control button {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Estilos Generales */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
}

.nav-link {
  position: relative;
  color: #2D3436;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #C9A988;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.hero-section {
  height: 100vh;
  position: relative;
  background-attachment: fixed;
}

.btn-primary {
  background-color: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: #fff;
  color: #2D3436;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 2px;
  background-color: #C9A988;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hover-scale {
  transition: transform 0.3s;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.event-details {
  padding: 2rem;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: all 0.3s;
}

.event-details:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #C9A988;
}

#countdown {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.countdown-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* Envelope styling */
#envelope-container {
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.envelope {
  width: 320px;
  height: 220px;
  position: relative;
  filter: drop-shadow(0 10px 25px rgba(201, 169, 136, 0.2));
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope:hover {
  transform: scale(1.02) translateY(-5px);
}

/* Flap styling */
.envelope-flap {
  width: 100%;
  height: 65%;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transform-origin: top center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(160deg, rgba(201, 169, 136, 0.95), rgba(201, 169, 136, 0.8));
  backdrop-filter: blur(8px);
}

.envelope.opened .envelope-flap {
  transform: rotateX(180deg) translateY(-20px);
}

/* Body styling */
.envelope-body {
  width: 100%;
  height: 65%;
  background: linear-gradient(140deg, rgba(201, 169, 136, 1), rgba(201, 169, 136, 0.9));
  border-radius: 0 0 15px 15px;
  position: relative;
  overflow: hidden;
}

.envelope-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

/* Content styling */
.envelope-content {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope.opened .envelope-content {
  transform: translateY(-20px);
}

/* Button styling */
.envelope-button {
  font-weight: 500;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(201, 169, 136, 0.2);
  border: 1px solid rgba(201, 169, 136, 0.1);
}

.envelope-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 169, 136, 0.3);
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.95));
}

/* Text animations */
.font-cormorant {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

.tracking-wider {
  letter-spacing: 3px;
}

/* Fade animations */
.hidden {
  display: none;
}

#mobile-menu {
  display: none;
}

#mobile-menu.show {
  display: block;
}


/* Personalización del checkbox */
input[type="checkbox"] {
  appearance: none;
  background-color: #f9f9f9;
  margin: 0;
  font: inherit;
  color: var(--accent-color);
  width: 1.5em;
  height: 1.5em;
  border: 0.15em solid #d1d5db;
  border-radius: 0.375em;
  display: grid;
  place-content: center;
  transition: background-color 0.2s, border-color 0.2s;
}

input[type="checkbox"]:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

input[type="checkbox"]:checked::before {
  content: "✔";
  font-size: 1em;
  color: white;
}

input[type="checkbox"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--accent-color);
}


.swal-confirm-button {
  background-color: var(--accent-color) !important;
}

/* Estilo para el checkbox cuando está marcado */
.estado-checkbox:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Estilo para la marca de verificación del checkbox */
.estado-checkbox:checked::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23fff" stroke-width="2" d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}