/* === ESTILOS PRINCIPALES LIMPIOS === */
:root {
  --violet-900: #1b0a25;
  --violet-700: #4b1c67;
  --gold: #e7c671;
  --white: #fff;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: var(--violet-900);
  color: var(--white);
  overflow-x: hidden;
}

/* ======= INTRO ======= */
#intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(circle at 50% 40%, var(--violet-700), var(--violet-900));
  z-index: 999;
}

.intro-content h1 {
  color: var(--gold);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(231,198,113,0.6);
}

#enterButton {
  background: linear-gradient(90deg, #a07ad8, var(--gold));
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
#enterButton:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(231,198,113,0.6);
}

/* ======= HEADER ======= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(27, 10, 37, 0.95);
  color: var(--gold);
  z-index: 100;
  text-align: center;
  backdrop-filter: blur(5px);
}

.logo-row {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
.logo {
  height: 80px;
}

.header-banner {
  width: 100%;
  height: 120px;
  object-fit: cover;
  opacity: 0.9;
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 10px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.main-nav a:hover {
  color: var(--gold);
}

/* ======= HERO ======= */
#hero {
  margin-top: 220px; /* espacio para header */
  min-height: calc(100vh - 220px);
  position: relative;
  text-align: center;
}

.fader {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.fade-slide.active {
  opacity: 1;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* sin distorsión */
  object-position: center;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.4) 95%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
}

#typeTarget {
  background: rgba(27,10,37,0.6);
  border-radius: 15px;
  padding: 25px 40px;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 0 15px rgba(231,198,113,0.6);
  border: 1px solid rgba(231,198,113,0.25);
  max-width: 900px;
}

/* ======= FOOTER ======= */
footer {
  background: #2b1338;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}
footer a {
  color: var(--gold);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .logo { height: 60px; }
  .header-banner { height: 90px; }
  #typeTarget { font-size: 1rem; padding: 18px; }
}
/* ==== TEXTO MÁGICO CENTRAL ==== */
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

#magicText {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #e7c671;
  text-shadow: 0 0 8px rgba(231,198,113,0.6), 0 0 20px rgba(255,255,200,0.4);
  letter-spacing: 1px;
  white-space: pre-wrap;
  animation: glow 2s ease-in-out infinite alternate;
}

/* efecto brillante dorado que pulsa */
@keyframes glow {
  0% { text-shadow: 0 0 10px rgba(231,198,113,0.4), 0 0 20px rgba(255,255,255,0.2); }
  50% { text-shadow: 0 0 20px rgba(231,198,113,0.9), 0 0 40px rgba(255,255,220,0.8); }
  100% { text-shadow: 0 0 15px rgba(231,198,113,0.6), 0 0 25px rgba(255,255,255,0.4); }
}

/* ===== INTRO con imagen al lado ===== */
#intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at center, #4b1c67 20%, #1b0a25 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1100px;
  text-align: center;
}

.intro-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-logo {
  width: 150px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(231,198,113,0.7));
}

.intro-content h1 {
  font-size: 2.5rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(231,198,113,0.6);
  margin-bottom: 25px;
  letter-spacing: 2px;
}

#enterButton {
  background: linear-gradient(90deg, #a07ad8, #e7c671);
  color: #fff;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(231,198,113,0.3);
  transition: all 0.4s ease;
}
#enterButton:hover {
  box-shadow: 0 0 30px rgba(231,198,113,0.6);
  transform: scale(1.05);
}

/* Imagen decorativa más pequeña a un lado */
.intro-image {
  width: 320px;
  max-width: 40vw;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(231,198,113,0.5);
  filter: brightness(0.95) contrast(1.05);
  transition: transform 2s ease;
}
.intro-image:hover {
  transform: scale(1.02);
}

/* Responsive */
@media (max-width: 768px) {
  .intro-content {
    flex-direction: column-reverse;
    gap: 25px;
  }
  .intro-image {
    width: 220px;
  }
}
/* --- Corrección final: elimina cualquier scroll y ajusta el carrusel justo debajo del header --- */
#hero {
  position: relative;
  top: 0;
  margin: 0 !important;
  height: calc(100vh - var(--header-height, 0px));
  overflow: hidden;
}

/* Si el header es fijo, medimos su altura y compensamos */
header {
  --header-height: 140px; /* ajusta aquí si tu cabecera es más o menos alta */
}

/* El contenedor de imágenes ocupa el espacio visible exacto */
.fader {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* === FUENTE PERSONALIZADA === */
@font-face {
  font-family: "Kingthings Foundation";
  src: url("../fonts/Kingthings-Foundation.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
/* === Tipografía especial para el texto principal === */
#aboutAltar p:first-of-type {
  font-family: "Kingthings Foundation", "Cormorant Garamond", serif;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  line-height: 1.7;
  color: #f8f8f8;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a0826;
  padding: 10px 50px;
  position: fixed; /* fijo arriba */
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999; /* sobre el carrusel */
}

.nav-left img {
  height: 90px; /* más grande */
  margin-top: 10px;
}

.nav-right img {
  height: 100px; /* más grande */
  margin-top: 10px;
  filter: drop-shadow(0 0 10px #d6b44c); /* halo suave dorado */
}

.nav-center ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 45px;
}

.nav-center a {
  text-decoration: none;
  color: #f7d97c;
  font-weight: 500;
  font-size: 20px;
  transition: color 0.3s ease;
}

.nav-center a:hover {
  color: #fff4c1;
}

/* Deja un margen superior para que el carrusel no quede tapado */
body {
  margin: 0;
  padding-top: 120px; /* espacio para el header fijo */
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-left img,
  .nav-right img {
    height: 70px;
  }

  .nav-center ul {
    flex-direction: column;
    gap: 10px;
  }
}
/* --- CONTACTO --- */
.contacto-section {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a0826 0%, #2a1142 100%);
  color: #f7d97c;
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  padding: 140px 20px 80px;
}

.contacto-section h1 {
  font-size: 2.5em;
  color: #f9e6b3;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.intro-text {
  color: #e3d6b8;
  font-size: 1.1em;
  margin-bottom: 40px;
}

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 280px;
  box-shadow: 0 0 15px rgba(214, 180, 76, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(214, 180, 76, 0.5);
}

.contact-card i {
  font-size: 3em;
  color: #f7d97c;
  margin-bottom: 15px;
}

.btn-contacto {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  color: #1a0826;
  background-color: #f7d97c;
  text-decoration: none;
  font-weight: 600;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-contacto:hover {
  background-color: #fff3c1;
  color: #000;
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 90%;
  }
}
/* HERO */
#aboutHero {
  position: relative;
  background: linear-gradient(180deg, #1a0826 0%, #2a1142 100%);
  text-align: center;
  color: #f7d97c;
  padding: 140px 20px 150px;
}

/* Carta fuera del hero */
.portrait-card-outer {
  position: relative;
  text-align: center;
  margin-top: -120px; /* la sube para que se vea saliendo */
  z-index: 10;
}

.carta-flotante {
  width: 260px;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(247, 217, 124, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carta-flotante:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 50px rgba(247, 217, 124, 0.6);
}
/* ====== CARRITO FLOTANTE ====== */
.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  height: 56px;
  min-width: 56px;
  padding: 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(231, 198, 113, .35);
  background: rgba(0, 0, 0, .4);
  color: var(--gold);
  backdrop-filter: blur(6px);
  cursor: pointer;
  z-index: 998;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(231, 198, 113, .25);
}

.cart-fab .count {
  background: var(--gold);
  color: #1b0a25;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 800;
}

/* ====== PANEL DEL CARRITO ====== */
.cart-panel {
  position: fixed;
  top: 0;
  right: -430px;
  width: 430px;
  max-width: 100%;
  height: 100vh;
  background: #12081a;
  color: var(--light);
  border-left: 1px solid rgba(231, 198, 113, .25);
  box-shadow: -10px 0 30px rgba(0, 0, 0, .5);
  transition: right .35s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.cart-panel.open {
  right: 0;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(231, 198, 113, .2);
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  color: var(--gold);
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px;
}

.line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px dashed rgba(231, 198, 113, .15);
}

.line img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.line .name {
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
}

.line .controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.line .controls button {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(231, 198, 113, .35);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.line input[type="number"] {
  width: 48px;
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(231, 198, 113, .35);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}

/* ====== PIE DEL CARRITO ====== */
.cart-foot {
  padding: 16px;
  border-top: 1px solid rgba(231, 198, 113, .2);
  background: #190d24;
}

.cart-foot .row {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  font-size: 0.95rem;
}

.cart-foot .row.total {
  font-weight: 900;
  color: var(--gold);
  font-size: 1.1rem;
  border-top: 1px solid rgba(231, 198, 113, .3);
  margin-top: 10px;
  padding-top: 6px;
}

.ship-select {
  width: 100%;
  margin: 8px 0 10px;
  padding: 10px;
  border-radius: 10px;
  background: #190d24;
  color: var(--light);
  border: 1px solid rgba(231, 198, 113, .25);
}

.pay-wrap {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.close-x {
  cursor: pointer;
  color: var(--gold);
  font-size: 1.2rem;
}
.menu-icon img {
    width: 75px;
    display: block;
    margin: 20px auto 5px;
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(231,198,113,0.5));
    transition: opacity 0.3s ease;
}

.menu-icon img:hover {
    opacity: 1;
}
/* ============================
   RESPONSIVE MENU — MÓVIL
   ============================ */

/* Oculta menú de escritorio y logos extras en móvil */
@media (max-width: 850px) {

    .nav-center,
    .nav-left img,
    .nav-right img,
    .menu-icon {
        display: none !important;
    }

    /* Mostrar botón hamburguesa */
    .mobile-menu-btn {
        display: block !important;
    }

    /* Ajustar header */
    .navbar {
        padding: 10px 20px;
        justify-content: space-between;
    }
}

/* Botón hamburguesa */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(231,198,113,0.4);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
}
.mobile-menu-btn img {
    width: 32px;
    filter: drop-shadow(0 0 6px #e7c671);
}

/* Panel móvil */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, #2b1338, #1b0a25);
    z-index: 9998;
    padding: 40px 25px;
    transform: translateY(-100%);
    transition: transform .35s ease;
}
.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-logo {
    width: 120px;
    filter: drop-shadow(0 0 10px rgba(231,198,113,0.5));
}

.close-x {
    font-size: 32px;
    color: #e7c671;
    cursor: pointer;
}

/* enlaces */
.mobile-nav {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    text-align: center;
}
.mobile-nav a {
    font-size: 1.8rem;
    color: #f7d97c;
    text-decoration: none;
    font-family: "Cinzel", serif;
}
.mobile-nav a:hover {
    color: white;
}
/* ---- BOTÓN BIZUM ---- */
.btn-bizum {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(90deg, #e7c671, #d4b15a);
    color: #1b0a25;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(231,198,113,0.35);
    transition: .3s ease;
}
.btn-bizum:hover {
    box-shadow: 0 0 25px rgba(231,198,113,0.6);
    transform: scale(1.03);
}

/* ---- PANTALLA DE BIZUM ---- */
#bizumOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.bizum-box {
    background: #1a0826;
    border: 1px solid rgba(231,198,113,0.4);
    padding: 30px;
    width: 90%;
    max-width: 370px;
    border-radius: 20px;
    text-align: center;
    color: #f7d97c;
    box-shadow: 0 0 25px rgba(231,198,113,0.45);
}

.bizum-box h2 {
    font-family: "Cinzel", serif;
    margin-bottom: 10px;
    color: #e7c671;
}

.bizum-number {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 10px 0;
    color: #fff;
}

.btn-copy, .btn-whatsapp, .btn-close {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn-copy {
    background: rgba(231,198,113,0.2);
    color: #e7c671;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-close {
    background: #522b78;
    color: white;
}
