* { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-image: url('https://i.postimg.cc/NMHVM70f/gdfgfdgfd.webp');
  background-repeat: repeat;
  background-size: auto;
  background-position: center center;
  color: #3b2f2f;
  padding: 2rem 1rem;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

.main-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}





h1 {
  font-family: 'Sedgwick Ave', cursive;
  font-size: clamp(1.5rem, 6vw, 3.5rem); /* mínimo 1.5rem, ideal 6vw, máximo 3.5rem */
  color: #ffffff;
  text-align: center;
  margin: 1.5rem 0;

  text-shadow:
    -2px -2px 0 #000,
     2px -2px 0 #000,
    -2px  2px 0 #000,
     2px  2px 0 #000,
    -3px  0   0 #000,
     3px  0   0 #000,
     0    3px 0 #000,
     0   -3px 0 #000;
}






/* Estilo del header */

.menu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff; /* Fondo blanco */
  color: #000000; /* Texto negro */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif; /* Nueva fuente */
  
}

/* Logo */
.menu-header .logo {
  font-size: 1.8rem;
  color: #000;
}

/* Enlaces del menú */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #555;
}

/* Botón hamburguesa (visible solo en móvil) */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

/* Responsive para celulares */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 0; /* elimina gap para evitar separación inconsistente */
  }

  .nav-links a {
    padding: 1rem;
    border-top: 1px solid #ddd;

    /* Para que todas las cajas tengan el mismo tamaño y el texto centrado */
    display: flex;
    align-items: center;    /* centra verticalmente */
    justify-content: center; /* centra horizontalmente */
    width: 100%;
    box-sizing: border-box;
    min-height: 48px; /* altura uniforme */
  }

  .nav-links.active {
    display: flex;
  }
}

/* Añadir espacio superior al body para evitar que el contenido quede oculto bajo el menú fijo */
body {
  padding-top: 80px;
}










p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #5a3a00;
  text-align: center;
}



/* ENVOLTORIO DEL FORMULARIO */
.form-container {
  background-color: #fffdf8;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 2rem auto;
  box-sizing: border-box;

  /* También aplicamos el diseño del form aquí */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FORMULARIO INTERNO (solo layout interno, sin repetir margens o anchos) */
form {
  display: flex;
  flex-wrap: nowrap; /* Mantiene todo en línea */
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

input[type="date"],
.ecajas2 {
  padding: 0.8rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #7c4a02;
  border-radius: 12px;
  width: 80px;
  max-width: 100%;
  text-align: center;
  box-shadow: inset 0 2px 5px rgba(124,74,2,0.15);
}
.ecajas2#month,
#month.ecajas2 {
  min-width: 130px;
}
.ecajas2#year,
#year.ecajas2 {
  min-width: 130px;
}
input[type="submit"],
.ebotones1 {
  background: #7c4a02;
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 10px rgba(124,74,2,0.5);
}
.ebotones1:hover, .ebotones1:focus {
  background: #c69300;
  box-shadow: 0 8px 14px rgba(198,147,0,0.7);
}










.resultado {
  margin-top: 2rem;
  background: #fffaf0;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(124,74,2,0.2);
  max-width: 950px;
  width: 100%;
  text-align: center;
  color: #5a3a00;
  font-weight: 600;
  position: relative;
}
.resultado strong {
  font-size: 1.5rem;
  color: #7c4a02;
  display: block;
  margin-bottom: 1rem;
}
.resultado span {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #a26300;
  display: block;
  margin-bottom: 1rem;
}
.resultado p {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 auto 1.2rem auto;
  max-width: 660px;
}



/* AQUI inicia EL CODIGO DE TAMAÑO IMÁGENES CRUZ GLIFOS */

.cruz-title {
  color: #5e3b00;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Texto de los glifos (móvil - espaciado más reducido) */
.glifo-text-title {
  font-weight: bold;
  color: #5a3a00;
  font-size: 18px;
  margin-top: 0.05rem;
  margin-bottom: 0;
}

.glifo-text-subtitle {
  font-size: 12px;
  color: #444;
  margin: 0;
}

/* Imagen de glifo (móvil) */
.glifo-img {
  margin: 0 auto 0.2rem; /* un poco de aire, pero muy cerca */
  max-width: 80px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(124, 74, 2, 0);
  transition: transform 0.3s ease;
}

.glifo-img:hover {
  transform: scale(1.05) rotate(3deg);
}

/* Versión escritorio */
@media (min-width: 768px) {
  /* Título principal más grande */
  .cruz-title {
    font-size: 30px;
  }

  /* Texto más grande en escritorio */
  .glifo-text-title {
    font-size: 25px;
    margin-top: 0.4rem;
    margin-bottom: 0;
  }

  .glifo-text-subtitle {
    font-size: 16px;
    margin-top: 0.1rem;
  }

  /* Imagen más grande */
  .glifo-img {
    max-width: 140px;
    margin-bottom: 0.5rem; /* espacio justo con el texto */
  }

  /* Ajuste del grid central */
  div[style*="display: grid"] {
    gap: 4rem 6rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
  }
}


/* AQUI TERMINA EL CODIGO DE TAMAÑO IMÁGENES CRUZ GLIFOS */





 /* AQUI INICIA EL CODIGO DE REDES SOCIALES */

.compartir-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap; /* Cambio aquí: permitir que los botones hagan salto de línea */
  /* overflow-x: auto; */ /* Quitar esta línea para evitar scroll */
  padding: 0.5rem;
  -webkit-overflow-scrolling: touch; /* suave en iOS */
}

.compartir-redes::-webkit-scrollbar {
  display: none; /* oculta la barra en navegadores WebKit */
}

.compartir-redes button {
  background-color: #1877f2;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  white-space: nowrap; /* mantiene texto en una línea */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  flex-shrink: 0; /* evita que se encojan */
}

.compartir-redes button.whatsapp {
  background-color: #25D366;
}

.compartir-redes button.descargar-btn {
  background-color: #555;
}

@media (max-width: 480px) {
  .compartir-redes {
    flex-direction: column;
    align-items: stretch;
  }

  .compartir-redes button {
    width: 100%;
    justify-content: center;
  }
}
 /* AQUI TERMINA EL CODIGO DE REDES SOCIALES */









 /* AQUI EMPIZA LAS TAJETAS DE DESCRIPCIONES DE NAWALES */

.contenedor-cruz-maya {
  max-width: 1000px;
  padding: 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Título general */
.titulo-cruz {
  color: #7c4a02;
  font-size: 24px;
  text-align: center;
  margin-bottom: 2rem;
}

/* Layout de la cruz */
.cruz-maya-layout {
  display: grid;
  grid-template-areas:
    "superior     izquierda"
    "derecha      inferior"
    "centro       centro"; /* Cambiado para que el centro ocupe toda la fila */
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Áreas específicas */
.tarjeta-superior   { grid-area: superior; }
.tarjeta-izquierda  { grid-area: izquierda; }
.tarjeta-centro     {
  grid-area: centro;
  justify-self: center;    /* Centra la tarjeta del centro */
  width: 100%;
  max-width: 600px;        /* Opcional: limitar el ancho */
}
.tarjeta-derecha    { grid-area: derecha; }
.tarjeta-inferior   { grid-area: inferior; }

/* Caja de cada nawal */
.tarjeta-nawal {
  background: #fdf3e3;
  border-radius: 12px;
  border: 1px solid #ccc;
  border-left: 6px solid #a26300;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-sizing: border-box;
  text-align: left;
}

/* Contenido de texto */
.tarjeta-nawal .texto {
  flex: 1;
  min-width: 250px;
  text-align: center; /* 🔹 centra todo el contenido */
}

/* Título del nawal */
.titulo-nawal {
  margin: 0 0 1rem;
  color: #5a2f00;
  font-size: 22px;
  text-shadow: 1px 1px 1px #eee;
  text-align: center;
}

/* Descripción */
.descripcion-nawal {
  margin: 0;
  color: #333;
  font-size: 17px;
  line-height: 1.6;
}

/* Imagen */
.tarjeta-nawal img {
  width: 140px;
  max-width: 100%;
  object-fit: contain;
  animation: pulse 2.5s infinite ease-in-out;
  display: block;
  margin: 0 auto; /* 🔹 Centrado horizontal de imagen en escritorio */
}

/* Responsive para móviles */
@media (max-width: 700px) {
  .cruz-maya-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .tarjeta-nawal {
    flex-direction: column;
    text-align: center;
  }

  .tarjeta-nawal .texto {
    order: 2;
  }

  .tarjeta-nawal img {
    order: 1;
    margin-bottom: 1rem;
  }
}
 /* AQUI TERMINA LAS TAJETAS DE DESCRIPCIONES DE NAWALES */










@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
