 /* General */
body {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: #fff; /* letras blancas para contraste */
  text-align: center;

  /* Fondo igual al header */
  background-image: url("imagenes/fondoantoclaro.jpg"); /* tu foto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Overlay para contraste */
  background-color: rgba(74,124,89,0.7);
  background-blend-mode: multiply;
}

/* Header fijo */
.header-artesanal {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: #fff;
  z-index: 1000;
  border-bottom: 4px double #a68a64;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);

  /* Fondo con imagen */
  background-image: url("imagenes/fondoanto.jpg"); /* tu foto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Overlay para contraste */
  background-color: rgba(74,124,89,0.7);
  background-blend-mode: multiply;
}

/* Logo con efectos */
.logo-header {
  height: 70px;
  margin: 0 40px;
  transition: transform 0.5s ease, filter 0.5s ease;
  animation: latido 4s infinite ease-in-out; /* latido continuo */
}

@keyframes latido {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.logo-header:hover {
  transform: scale(1.15) rotate(-3deg);
  filter: drop-shadow(0 0 12px rgba(255,215,0,0.8));
}

/* Menús */
.menu-horizontal .menu-list {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu-horizontal .menu-list li {
  position: relative;
}

.menu-horizontal a {
  color: #fff;
  text-decoration: none;
  font-family: 'Dancing Script', cursive;
  font-size: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-horizontal a:hover {
  color: #ffd700;
  transform: scale(1.1);
  text-shadow: 0 0 8px rgba(255,215,0,0.7);
}

/* Íconos */
.icono-menu {
  width: 32px;
  height: 32px;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.menu-horizontal a:hover .icono-menu {
  transform: rotate(-5deg) scale(1.2);
}

/* Submenús en desktop */
.submenu-list {
  list-style: none;
  display: none;
  flex-direction: column;
  background: #a68a64;
  padding: 10px;
  border-radius: 8px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.submenu-list li {
  margin: 6px 0;
}

.submenu-list a {
  color: #fff;
  font-size: 1em;
}

.submenu:hover .submenu-list {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .header-artesanal {
    position: relative; /* ya no sticky en mobile */
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-height: 100vh;
    overflow-y: auto; /* permite scroll dentro del header */
  }

  .logo-header {
    margin: 10px 0;
  }

  .menu-horizontal .menu-list {
    flex-direction: column;
    gap: 15px;
    padding: 0;
    border-radius: 0;
    width: 100%;
    align-items: center;
    background: none; /* sin fondo, solo letras sobre la foto */
  }

  .menu-horizontal a {
    font-size: 1.4em;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
    text-align: center; /* centra el texto */
    width: 100%;        /* cada enlace ocupa todo el ancho */
  }

  .icono-menu {
    width: 40px;
    height: 40px;
  }

  /* Submenús centrados en bloque */
  .submenu-list {
    position: relative !important; /* fuerza a ignorar absolute */
    left: auto !important;         /* resetea alineación */
    top: auto !important;          /* elimina top heredado */
    transform: none !important;    /* elimina translate heredado */
    opacity: 1 !important;         /* visible cuando se abre */
    width: 100%;                   /* ocupa todo el ancho */
    margin-top: 10px;
    display: none;
    flex-direction: column;        /* apilados uno debajo del otro */
    align-items: center;           /* centrados */
    background: none;              /* sin fondo */
    box-shadow: none;
  }

  .submenu-list a {
    font-size: 1.2em;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.6);
    margin: 5px 0;
    text-align: center;     /* texto centrado */
    width: 100%;            /* cada enlace ocupa todo el ancho */
  }

  .submenu:hover .submenu-list {
    display: flex;
  }
}



/* Desktop */
@media (min-width: 992px) {
  .menu-list {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
  }
  .menu-list li {
    margin: 0 15px;
    position: relative;
  }
  .submenu-list {
    top: 100%;
    left: 0;
  }
}


/* Pantalla inicial */
.pantalla-inicial {
  position: fixed;
  inset: 0; /* top/right/bottom/left: 0 */
  background-color: #fffef9;
  background-image: url('imagenes/bosqueamarillo.gif');
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* por encima del contenido */
  will-change: opacity, visibility;
}

/* Al ocultar, ejecuta la animación y desactiva interacción */
.pantalla-inicial.oculto {
  animation: desvanecer 1200ms ease-in-out forwards;
  pointer-events: none;
}

/* Contenido principal (estado inicial y transición) */
.contenido-principal.oculto {
  opacity: 0;
  pointer-events: none;
}
/* Cartel base */
.cartel-artesanal {
  background: none;
  border: none;
  border-radius: 0;
  padding: 40px;
  max-width: 850px;
  margin: 50px auto;
  box-shadow: none;
  position: relative;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  animation: aparecer 1.2s ease-out;
}

/* Títulos de todas las secciones */
.cartel-artesanal h2,
.juego-artesanal h2,
.contacto-artesanal h2 {
  font-family: 'Shadows Into Light', cursive;
  font-size: 2.4em;
  font-weight: 700;
  color: #ffd700; /* dorado espiritual */
  text-shadow: 0 0 6px rgba(255,215,0,0.6), 2px 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 20px;
  letter-spacing: 2px;
  border-bottom: 2px dotted rgba(255,215,0,0.4);
  display: inline-block;
  padding-bottom: 5px;
}

/* Párrafos de todas las secciones */
.cartel-artesanal p,
.juego-artesanal p,
.contacto-artesanal p,
.introduccion p {
  font-family: 'Cinzel', serif;
  font-size: 1.2em;
  line-height: 1.8;
  color: #f9f6e8; /* crema lunar */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  margin-bottom: 1.2em;
}

/* Animación de aparición */
@keyframes aparecer {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Formulario */
.form-artesanal {
  background: none;
  padding: 30px;              /* más aire interno */
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 25px;                  /* separación uniforme entre campos */
}

.form-artesanal .campo {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}

.form-artesanal label {
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  margin-bottom: 8px;         /* espacio entre label y input */
}

.form-artesanal input,
.form-artesanal textarea {
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
  padding: 14px;              /* más grande y cómodo */
  border: 2px dashed #a68a64; /* borde artesanal */
  border-radius: 12px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  width: 100%;                /* todos los campos alineados */
  box-sizing: border-box;     /* respeta padding y ancho */
}

.form-artesanal textarea {
  min-height: 120px;          /* mensaje más alto */
  resize: vertical;           /* permite agrandar si se necesita */
}

.form-artesanal input::placeholder,
.form-artesanal textarea::placeholder {
  color: #ddd;
}

.form-artesanal input:focus,
.form-artesanal textarea:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* Botón centrado y con aire */
.form-artesanal button {
  display: block;
  margin: 40px auto 0 auto;   /* más espacio respecto al último campo */
  font-family: 'Cinzel', serif;
  background: linear-gradient(135deg, #a68a64, #d1b48c);
  color: #fff;
  border: 2px dashed #fff;
  padding: 16px 40px;         /* más grande y cómodo */
  border-radius: 40px;
  font-size: 1.3em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1),
              0 4px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.3s ease;
}

.form-artesanal button:hover {
  transform: scale(1.08) rotate(-1deg);
  background: linear-gradient(135deg, #d1b48c, #f0d9b5);
  box-shadow: 0 0 14px rgba(255,215,0,0.6);
}



.btn-juego {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  font-family: 'Cinzel', serif;
  color: #fff;
  background: linear-gradient(135deg, #a68a64, #d1b48c);
  padding: 12px 28px;
  border-radius: 40px;
  border: 2px dashed #fff;
  text-decoration: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1),
              0 4px 8px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.3s ease;
  margin: 10px; /* separación entre botones */
}

.btn-juego:hover {
  transform: scale(1.05) rotate(-1deg);
  background: linear-gradient(135deg, #d1b48c, #f0d9b5);
  box-shadow: 0 0 12px rgba(255,215,0,0.5);
}


/* Iconos */
.icono-section {
  display: block;
  margin: 0 auto 15px auto;
  width: 70px;
  height: auto;
}

/* Logo flotante */
.logo {
  width: 180px;
  margin-bottom: 20px;
  animation: flotar 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #f9e79f);
}

@keyframes flotar {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Animación de desvanecer */
@keyframes desvanecer {
  0% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: hidden; }
  100% { opacity: 0; visibility: hidden; }
}


/* Footer */
.footer-artesanal {
  background: #f9f9f9; /* fondo claro */
  color: #3c2f2f;
  text-align: center;
  padding: 25px;
  border-top: 2px solid #a68a64;
}

.footer-artesanal p {
  margin-bottom: 20px;
  font-family: 'Cinzel', serif;
  font-size: 1.1em;
}

.footer-artesanal .redes {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-artesanal .icono-red {
  width: 55px;   /* más grande */
  height: 55px;
  object-fit: contain;
  background: #e0f2e9;   /* círculo verde suave detrás */
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background 0.3s ease;
}

.footer-artesanal .icono-red:hover {
  transform: scale(1.2); /* efecto más marcado */
  background: #c8e6c9;   /* verde más intenso al hover */
}



/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .pantalla-inicial,
  .contenido-principal.mostrar {
    animation: none !important;
    transition: none !important;
  }
}
