/* Incluir la fuente Negrita Pro */
@font-face {
  font-family: 'Negrita Pro';
  src: url('negritapro.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Clase para títulos y bloques .mod: tamaño mayor, color #ffde32 y trazo 3px rgb(102,97,97) */
.negrita-mod {
  font-family: sans-serif;
  font-weight: normal;
  color: #ffde32;
  -webkit-text-stroke: 3px rgb(0, 0, 0);
  text-align: center;
}

/* Evitar scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fondo global y fuente */
body {
  background-color: #ffde32;
  font-family: Arial, sans-serif;
}

/* ============================
   NAVBAR Y LANGUAGE SELECTOR
=============================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 5px 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 3000;
}

.language-selector {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 0.6rem;
  z-index: 3100;
}

.language-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  padding: 2px 5px;
  border-radius: 5px;
}

.flag-icon {
  width: 20px;
  height: 20px;
  margin-right: 3px;
}

.language-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  min-width: 100px;
  z-index: 3100;
}

.language-option {
  display: flex;
  align-items: center;
  margin: 3px 0;
  cursor: pointer;
}

.language-option:hover {
  background-color: #f5f5f5;
}

.language-selector:hover .language-popup {
  display: block;
}

/* Organización del navbar */
.nav-left, .nav-center, .nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-center {
  justify-content: center;
}

.nav-right {
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Enlaces del navbar: color negro, transición en hover */
nav a {
  text-decoration: none;
  color: #000;
  margin: 0 10px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav a:hover {
  color: #000;
  border-bottom: 2px solid #000;
}

/* ============================
      ANIMACIÓN DE LA MONEDA
=============================== */
.container {
  perspective: 1000px;
}

.moneda {
  width: 100px;
  height: 100px;
  animation: girarY 2s linear infinite;
  transform-style: preserve-3d;
}

@keyframes girarY {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ============================
         SECCIÓN INICIO
=============================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url('./images/libertad.jpeg'); /* Imagen para escritorio */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Mobile (pantallas de 767px para abajo) */
@media (max-width: 767px) {
  .hero {
    background-image: url('./images/libertad1.png'); /* Imagen mobile */
  }
}

.hero-content {
  position: relative;
  z-index: 2000; 
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 10px 10px;
  border-radius: 10px;
  max-width: 90%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-content button {
  padding: 10px 20px;
  background-color: #ffde32;
  border: none;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* ============================
         SECCIÓN SOBRE NOSOTROS
=============================== */
.about-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

/* Ajuste específico para mobile */
@media (max-width: 768px) {
  .about-banner-img {
    object-position: center center;
  }
}


.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
}

/* Ajuste para que el título se quede centrado en la parte superior */
.about-title {
  position: absolute;
  top: 10px;           /* o el valor que desees para la parte superior */
  left: 50%;
  width: 100%;         /* se extiende al 100% del contenedor */
  transform: translateX(-50%);
  text-align: center;  /* centra el texto dentro del contenedor */
  font-size: 2rem;     /* ajusta el tamaño según necesites */
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}


.slide-down.visible {
  animation: slideDown 2s forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -50px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Contenedor inferior: ahora se extiende más horizontalmente */
.about-bottom {
  position: absolute;
  bottom: 10px;
  left: 5%;
  right: 5%;
  text-align: center;
}

.about-paragraph-overlay {
  background: rgba(128,128,128,0.5);
  padding: 10px;
  border-radius: 5px;
  margin: 0 auto 10px;
  max-width: 100%;
}

.about-paragraph-overlay p {
  font-size: 1.1rem;
  line-height: 1.2;
}

.about-button {
  padding: 10px 20px;
  background-color: #ffde32;
  border: none;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* ============================
           IDEOLOGY SECTION (Cartas)
=============================== */
.ideology {
  margin: 40px auto 80px;
  max-width: 1200px;
  text-align: center;
}

.ideology h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
}

.ideology-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.ideology-card {
  background: #fff;
  border-radius: 8px;
  width: 250px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ideology-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.ideology-card img {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.ideology-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.ideology-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* ============================
         SECCIÓN COMO COMPRAR
=============================== */
#como-comprar {
  padding: 100px 20px;
  text-align: center;
}

#como-comprar h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}
  
.compra-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compra-card {
  max-width: 750px;
  width: 100%;
  display: flex;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 1s ease-out, opacity 1s ease-out;
  opacity: 0;
  transform: translateX(100%);
  margin: 0 auto;
}

.compra-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.compra-card img {
  width: 25%;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .compra-card {
    flex-direction: column;
  }
  .compra-card img {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .compra-content {
    text-align: center;
  }
}

.compra-content {
  flex: 1;
  text-align: left;
}

.compra-content h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: #333;
}
.compra-content p {
  font-size: 1.3rem;
  color: #555;
}

/* ============================
         SECCIÓN TOKENOMICS
=============================== */
#tokenomics {
  position: relative;
  padding: 100px 20px;
  text-align: center;
}

#tokenomics h2 {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.tokenomics-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

/* Bloques de Tokenomics: 500px en grandes, 100% en móviles */
.tokenomics-text,
.tokenomics-contract {
  width: 500px;
  text-align: center;
}
.tokenomics-text p,
.tokenomics-contract p {
  margin: 5px 0;
  font-size: 3.5rem;
}

/* Reducir aún más el tamaño de fuente del bloque Contract en móviles */
@media (max-width: 768px) {
  .tokenomics-contract p {
    font-size: 2rem;
  }
}

.tokenomics-space {
  width: 60px;
}

/* ============================
         SECCIÓN ROADMAP
=============================== */
#roadmap {
  position: relative;
  padding: 100px 20px;
  text-align: center;
}

#roadmap h2 {
  font-size: 4.5rem;
  margin-bottom: 20px;
}

.roadmap-text {
  font-size: 4rem;
  line-height: 1.5;
}

/* ============================
         SECCIÓN APLICA TU STARTUP
=============================== */
#aplica-tu-startup {
  position: relative;
  padding: 100px 20px;
  text-align: center;
}

#aplica-tu-startup h2 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.startup-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.startup-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.startup-form .form-row {
  display: flex;
  gap: 10px;
}

.startup-form input,
.startup-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.startup-form textarea {
  resize: vertical;
  min-height: 100px;
}

.startup-form button {
  padding: 10px 20px;
  background-color: #ffde32;
  border: none;
  color: #000;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* ============================
         DISCLAIMER SECTION
=============================== */
.disclaimer-section {
  background: #ffde32;
  padding: 20px 0;
  text-align: center;
  margin: 20px 0;
}
.disclaimer-section .disclaimer-text {
  color: #000;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================
              FOOTER
=============================== */
footer {
  background-color: #ffc107;
  text-align: center;
  padding: 20px;
  font-size: 1rem;
  color: #000;
  box-shadow: 0 -4px 8px rgba(0,0,0,0.3);
}

/* ============================
         ANIMATED DIVIDER
=============================== */
.animated-divider {
  width: 100%;
  overflow: hidden;
  background: #222;
  padding: 10px 0;
  position: relative;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 15s linear infinite; /* Valor para pantallas grandes */
}

@media (max-width: 768px) {
  .marquee-content {
    animation: marquee 6s linear infinite;  /* Valor para dispositivos móviles */
  }
}


.marquee-content span {
  flex-shrink: 0;
  color: #fff;
  min-width: 100%;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================
         MEME IMAGES (POSITIONED)
=============================== */
/* Para Tokenomics */
#tokenomics {
  position: relative;
}

.meme-supply {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 350px;
  z-index: 1500;
}

.meme-contract {
  position: absolute;
  top: 100px;
  right: 0;
  width: 280px;
  z-index: 1500;
}

/* Para Roadmap */
#roadmap {
  position: relative;
}

.meme-roadmap {
  position: absolute;
  right: 120px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  z-index: 1500;
}

/* Meme Roadmap Left: con animación vertical */
.meme-roadmap-left {
  position: absolute;
  left: 120px;
  top: 50%;
  width: 400px;
  z-index: 1500;
  animation: verticalFloat 3s ease-in-out infinite;
}
@keyframes verticalFloat {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-55%); }
}

/* Para Aplica Tu Startup */
#aplica-tu-startup {
  position: relative;
}

.meme-form {
  position: absolute;
  left: 50px;
  top: 60%;
  transform: translateY(-50%);
  width: 400px;
  z-index: 1500;
}

/* ============================
         RESPONSIVE MEDIA QUERIES
=============================== */
@media (max-width: 768px) {
  /* Navbar: ajustar tamaño de enlaces y Language Selector */
  nav a {
    margin: 0 5px;
    font-size: 0.8rem;
  }
  .language-selector {
    top: 2px;
    right: 5px;
    font-size: 0.6rem;
  }
  /* Hero: ensanchar contenedor */
  .hero-content {
    max-width: 95%;
    padding: 15px 20px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  /* Tokenomics: reducir font-size para evitar que el bloque Contract se corte */
  #tokenomics h2 {
    font-size: 3.5rem;
  }
  .tokenomics-text,
  .tokenomics-contract {
    width: 100%;
  }
  .tokenomics-text p {
    font-size: 2.5rem;
    -webkit-text-stroke: 2.5px rgb(0, 0, 0);
  }
  .tokenomics-contract p {
    font-size: 1.5rem;
    -webkit-text-stroke: 1.5px rgb(0, 0, 0);
  }
  .tokenomics-row {
    flex-direction: column;
    gap: 30px;
  }
  /* Roadmap: reducir tamaños */
  #roadmap h2 {
    font-size: 3.5rem;
  }
  .roadmap-text {
    font-size: 3rem;
  }
  /* Ajuste en "Sobre Nosotros": 
     - El banner se acerca al divider (margin-top 0).
     - El título se fuerza a quedar centrado en la parte superior con left:50% y transform:translateX(-50%),
       y se reduce el tamaño de fuente.
     - El contenedor inferior se extiende al 100% y reduce su font-size. */
  .about-banner {
    margin-top: 0;
  }
  .about-title {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    width: 100%;
  }
  .about-paragraph-overlay p {
    font-size: 0.9rem;
    line-height: 1.1;
  }
  /* Memes: reducir tamaños y ajustar posiciones */
  .meme-supply,
  .meme-contract,
  .meme-roadmap,
  .meme-roadmap-left,
  .meme-form {
    width: 150px;
  }
  .meme-supply {
    left: 0;
    bottom: 5px;
  }
  .meme-contract {
    top: 50px;
    right: 0;
    transform: none;
  }
  .meme-roadmap {
    right: 10px;
    width: 150px;
  }
  .meme-roadmap-left {
    left: 10px;
    width: 150px;
  }
  .meme-form {
    left: 10px;
    width: 150px;
  }
  /* Navbar: asegurar que los enlaces se distribuyan para que todos sean visibles */
  .nav-left, .nav-right {
    flex: 100%;
    justify-content: center;
  }
  .nav-right {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  nav a {
    font-size: 0.7rem;
  }

  @media (max-width: 768px) {
    .nav-left, .nav-right {
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
  }
  
  /* Para pantallas muy pequeñas se muestran los memes con ancho reducido */
  .meme-supply,
  .meme-contract,
  .meme-roadmap,
  .meme-roadmap-left,
  .meme-form {
    width: 120px;
    display: block;
  }
  .meme-supply {
    left: 0;
    bottom: 5px;
  }
  .meme-contract {
    top: 5px;
    right: 0;
    transform: none;
  }
  .meme-roadmap {
    right: -5px;
    width: 120px;
  }
  .meme-roadmap-left {
    margin-top: 230px;
    left: -40px;
    width: 250px;
  }
  .meme-form {
    margin-top: 300px;
    left: 5px;
    width: 120px;
  }
  /* Navbar: ajustar enlaces para pantallas pequeñas */
  .nav-left, .nav-right {
    flex: 100%;
    justify-content: center;
  }
  .nav-right {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

 /* Primera letra en mayúscula */
h1::first-letter,
h2::first-letter,
h3::first-letter,
p::first-letter,
a::first-letter,
button::first-letter {
  text-transform: uppercase;
}

p[data-translate="supply_line4"]::first-letter {
  text-transform: none;
}


/* ============================
       ANIMATION HELPER CLASSES
=============================== */
.hidden {
  opacity: 0;
}

.fade-in.visible {
  animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intersection Observer: threshold 0, rootMargin "0px" */
