@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #faf6f1;
  color: #2b2b2b;
  overflow: hidden;
  height: 100vh;
}

.portada {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portada-fondo {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(93, 28, 49, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(250, 246, 241, 0.75), rgba(250, 246, 241, 0.75)),
    url('../assets/wallpaper.png');
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  z-index: 0;
}

.portada-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px;
  max-width: 600px;
  animation: portadaEntrada 1.2s ease;
}

@keyframes portadaEntrada {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.portada-adorno {
  color: #c9a96e;
  margin-bottom: 24px;
  animation: girarSuave 20s linear infinite;
}

@keyframes girarSuave {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.portada-adorno svg {
  width: 48px;
  height: 48px;
}

.portada-nombre {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;
  color: #5d1c31;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.portada-oficio {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9a96e;
  font-weight: 400;
  margin-bottom: 32px;
}

.portada-frase {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #8a6b4a;
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.portada-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-portada {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
}

.btn-portada {
  background: #5d1c31;
  color: #fff;
}

.btn-portada:hover {
  background: #8a2a52;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(93, 28, 49, 0.25);
}

.btn-portada.secundario {
  background: transparent;
  color: #5d1c31;
  border: 1.5px solid #5d1c31;
}

.btn-portada.secundario:hover {
  background: #5d1c31;
  color: #fff;
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .portada-contenido {
    padding: 24px;
  }
  .portada-nav {
    flex-direction: column;
    align-items: center;
  }
}

/* POPUP WEB EN PROCESO */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.popup-modal {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: popupEntrada 0.4s ease;
}

@keyframes popupEntrada {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-cerrar {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.popup-cerrar:hover {
  color: #2b2b2b;
}

.popup-icono {
  margin-bottom: 16px;
  animation: pulso 2s ease-in-out infinite;
}

@keyframes pulso {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.7; }
}

.popup-titulo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: #5d1c31;
  margin-bottom: 12px;
}

.popup-texto {
  font-size: 0.95rem;
  color: #6b6b6b;
  line-height: 1.6;
  margin-bottom: 28px;
}

.popup-btn {
  background: #5d1c31;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-btn:hover {
  background: #8a2a52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 28, 49, 0.25);
}
