* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Poppins", sans-serif; background: #799eb7; color: #222; transition: 0.3s; }

/* Modal Window */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 1001;
    transition: opacity 0.3s ease-in-out;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-frame {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: calc(610px - 3em);
    padding: 20px;
    background-color: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1002;
}

.modal-frame.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-header h2 {
    text-align: center;
    margin: 0;
    flex-grow: 1;
}

.modal-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.modal-close svg {
    stroke: black !important;
}

.modal-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-top: 30px;
}

.modal-link {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    background-color: #f8f8f8;
    margin: 16px auto;
}

.modal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 20px;
}

.copy-button {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    background: #addff7;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.copy-button:hover {
    background: #addff7;
}

/* Header section with darkmode and share button */
.header-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 20px;
}

.header-content {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;

    display: flex;
    justify-content: center;
    z-index: 1000;
}

.darkmode-share {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 560px;
    margin: 0 1.5em;
    transition: opacity 0.3s ease-in-out;
}

.darkmode-share.hidden {
    opacity: 0;
    pointer-events: none;
}

.darkmode-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 24px; 
    cursor: pointer;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.darkmode-button:hover {
    background: #addff7;
    color: #fff;
}

.menu-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 24px; 
    cursor: pointer;
    border: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.menu-button:hover {
    background: #addff7;
    color: #fff;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 560px;
    padding-top: 10px;
    text-align: center;
}

.hero-wrapper h1 {
    margin-top: 10px;
    font-size: 20px;
}
.hero-wrapper p {
    margin-top: 5px;
    font-size: 14px;
}

.hero-pic {
    width: 100%;
    height: auto;
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Link section */
.link-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.link-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 1.5em;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 999px;
    margin: 16px 0;
    padding: 14px 24px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulseFloat 1.4s ease-in-out infinite;
}

.link-button:hover {
    background: #444;
    animation: shake 0.4s ease-in-out;
}
  
.link-left,
.link-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.link-right {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.link-center {
    flex: 1;
    text-align: center;
    color: #000;
    text-decoration: none;
}

.link-center,
.link-right {
    color: inherit; /* Inherit from .link-button */
}

.link-left svg,
.link-right svg {
    width: 100%;
    height: 100%;
    display: block;
}

footer {
    text-align: center;
    padding-block: 1.5em 1.5rem;
    font-size: 0.9rem;
    color: #f1f1f1;
}

footer a {
    color: inherit;
    text-decoration: underline;
}

/* Dark mode */
.dark-mode {
    background: #1a1a1a;
    color: #f1f1f1;
}

.dark-mode .darkmode-button,
.dark-mode .menu-button {
    background: #444;
    color: #fff;
}

.dark-mode .darkmode-button:hover,
.dark-mode .menu-button:hover,
.dark-mode .link-button:hover {
    background: #444;
    animation: shake 0.4s ease-in-out;
}

.dark-mode .link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 999px;
    margin: 16px 0;
    padding: 14px 24px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulseFloat 1.4s ease-in-out infinite;
}

.dark-mode .overlay {
    background: rgba(126, 126, 126, 0.5);
}

.dark-mode .modal-frame {
    background-color: #333;
    color: #f1f1f1;
}

.dark-mode .modal-close,
.dark-mode .modal-close svg {
    color: #f1f1f1;
    stroke: white !important;
}

.dark-mode .link-center,
.dark-mode .link-right,
.dark-mode .link-left svg {
    color: #f1f1f1;
}

.dark-mode footer {
    color: #404040;
}



.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal {
  background: #000;
  color: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 320px;
  text-align: center;
  font-family: sans-serif;
}
.modal .icon {
  font-size: 2rem;
  color: #777;
  margin-bottom: 1rem;
}
.modal h2 {
  margin: .5rem 0;
  font-size: 1.25rem;
  font-weight: bold;
}
.modal p {
  font-size: .9rem;
  margin: .75rem 0 1.5rem;
  line-height: 1.4;
}
.modal .btn {
  display: block;
  width: 100%;
  padding: .75rem;
  border: none;
  border-radius: .5rem;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: .5rem;
}
.modal .btn.cancel {
  background: transparent;
  color: #fff;
  border: 1px solid #555;
}
.modal .btn.continue {
  background: #fff;
  color: #000;
  font-weight: bold;
}


/* Adjustments for small screens */
@media (max-width: 575px) {
    /* Dark mode and share button are closer to the top */
    .header-content{
        top: 15px;
    }

    /* Modal window snaps to bottom */
    .modal-frame {
        top: auto;
        bottom: 0;
        left: 50%;
        padding-top: 15px;
        padding-bottom: 40px;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }
}

.status-online {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #3d3d3d;
}

.status-online .dot {
    width: 10px;
    height: 10px;
    background-color: #00c853;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px #00c853;
}

.dark-mode .status-online {
    color: #f1f1f1;
}

.dark-mode .status-online .dot {
    box-shadow: 0 0 5px #00ff73;
}


.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 999px;
    margin: 16px 0;
    padding: 14px 24px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulseFloat 1.4s ease-in-out infinite;
}

.link-button:hover {
    background: #444;
    animation: shake 0.4s ease-in-out;
}


@keyframes REMOVED {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 999px;
    margin: 16px 0;
    padding: 14px 24px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulseFloat 1.4s ease-in-out infinite;
}



@keyframes floatBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(6px);
  }
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    width: 100%;
    background: #fff;
    color: #000;
    border-radius: 999px;
    margin: 16px 0;
    padding: 14px 24px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulseFloat 1.4s ease-in-out infinite;
}


/* Fondo negro */
body {
    background-color: #000 !important;
    background-image: none !important;
    color: #fff;
}

/* Botones tipo GAML */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    background-color: #fff;
    color: #000;
    padding: 14px 20px;
    border-radius: 12px;
    margin: 10px 0;
    max-width: 340px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.cta-button:hover {
    transform: scale(1.04);
}

.cta-icon img {
    width: 28px;
    height: 28px;
}

.cta-text-content .cta-title {
    font-size: 16px;
}

.cta-subtext {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.countdown {
  display: flex;      /* ya lo tenías */
  gap: 1rem;          /* ya lo tenías */
  margin-top: 1.5rem; /* ajusta a lo que necesites */
}

.countdown-wrapper::after {
  content: "";
  display: block;
  clear: both;
}

/* A partir de pantallas de 600px de ancho o menos */
@media screen and (max-width: 600px) {
  /* Reducimos un poco el padding del wrapper */
  .countdown-wrapper {
    padding: 8px;
    margin-top: 1.5rem; /* menos margen que en desktop */
  }

  /* Ajustamos el título */
  .promotion-title {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  /* Permitimos que los bloques se envuelvan y reducimos gaps */
  .countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
  }

  /* Cada cajita un poco más pequeña */
  .countdown-box {
    width: 45px;
    height: 45px;
    border-width: 1px;
  }

  /* Los números y el texto más pequeños */
  .countdown-box span {
    font-size: 1.2rem;
  }
  .countdown-box small {
    font-size: 0.6rem;
  }

  /* Ajuste del espacio bajo la frase previa */
  .promo-text {
    padding-bottom: 2rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 600px) {
  .countdown-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 3.5rem; /* ?? A�ade espacio antes del copyright o el borde */
    padding: 0.5rem;
  }

  .promotion-title {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .countdown {
    display: flex;
    flex-wrap: wrap; /* permite que se bajen si no caben */
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .countdown-box {
    width: 50px;
    height: 50px;
    border-width: 1px;
  }

  .countdown-box span {
    font-size: 1.1rem;
  }

  .countdown-box small {
    font-size: 0.7rem;
  }
}


/* Asegúrate de que el wrapper esté en el flujo y centrado */
.countdown-wrapper {
  position: relative;        /* relativo al contenedor padre */
  display: flex;             /* activa flexbox */
  flex-direction: column;    /* título arriba, contador abajo */
  align-items: center;       /* centra horizontalmente */
  justify-content: center;   /* centra verticalmente si hay altura */
  margin: 20px auto;         /* separa y centra en el eje horizontal */
  padding: 10px;             /* opcional, para aire interior */
  background: transparent;       /* opcional, fondo para visualizar mejor */
  border-radius: 8px;        /* opcional */
  /* elimina cualquier float o posición fija previa */
  float: none !important;
  top: auto !important;
  left: auto !important;
}

/* Contenedor de los bloques de tiempo */
.countdown {
  display: flex;
  gap: 1rem;                 /* separación uniforme */
}

/* Cada cajita de horas/minutos/segundos */
.countdown-box {
  display: flex;
  flex-direction: column;    /* número encima, texto abajo */
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #ffffff;
  border: 2px solid #ddd;
  border-radius: 6px;
}

/* Texto del título */
.promotion-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 3px;
}


/* Contador estilo GAML */
.countdown-wrapper {
    margin: 20px auto;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.promotion-title {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
    color: #fff;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 1px;
}

.countdown-box {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    min-width: 48px;
    text-align: center;
}

.countdown-box span {
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    font-variant-numeric: tabular-nums;
    display: block;
    line-height: 1.1;
}

.countdown-box small {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    margin-top: 6px;
    display: block;
    line-height: 1;
}


/* Efecto de sacudida ligera */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.link-button:hover {
    background: #444;
    animation: shake 0.4s ease-in-out;
}

.link-center small { color: #555; }

.link-center strong { color: #000; }

.link-center small { color: #555; }

.countdown-separator {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 4px;
    line-height: 1;
}

@keyframes pulseFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.03); }
}
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.link-button:hover .link-center strong {
    color: #fff !important;
}
.link-button:hover .link-center small {
    color: #ccc !important;
}

.link-button:hover .link-center strong {
    color: #fff !important;
}

.link-button:hover .link-center small {
    color: #ccc !important;
}
