@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:wght@400;600;700;900&display=swap');

:root {
    /* Brand Colors */
    --black: #0C0E0C;
    --white: #FDFBF7;
    --ink: #000000;
    --gold: #E9B824;
    --green: #2ECC71;
    --orange: #FF6B00;
    
    /* Design Rules */
    --border-comic: 4px solid var(--ink);
    --shadow-comic: 6px 6px 0px 0px var(--ink);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(var(--ink) 5%, transparent 6%), 
                      radial-gradient(var(--ink) 5%, transparent 6%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(253, 251, 247, 0.96);
    z-index: -1;
}

h1, h2, h3, .comic-font {
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 10;
}

/* ---------------- ABSOLUTE LOGO ---------------- */
.top-corner-logo {
    position: absolute;
    top: 0.5rem; /* Pegado casi al techo */
    left: 2rem; /* Movido al lado izquierdo en PC */
    z-index: 100;
}

.top-corner-logo img {
    max-width: 220px; 
    filter: drop-shadow(4px 4px 0px var(--ink));
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end; /* Alinear abajo para que los pies no se vean cortados en el aire */
    justify-content: center;
    overflow: hidden;
    border-bottom: var(--border-comic);
    background-color: var(--black);
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.mobile-video { display: none; }

@media (max-width: 768px) {
    .desktop-video { display: none !important; }
    .mobile-video { display: block !important; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* Elementos pegados al borde inferior */
    justify-content: flex-end; /* Empujamos todo hacia la derecha */
    gap: 0; /* Quitamos espacio porque la vieta tiene su propia cola */
    max-width: 100%; /* Que ocupe todo el ancho */
    width: 100%;
    height: 100%; /* <- Esto permite que flex-start alcance el techo de la pantalla */
    padding: 0 5%; /* Margen lateral derecho para no pegarlo al borde absoluto */
}

.hero-elav {
    max-height: 85vh; /* Un poco ms alta */
    width: auto; /* Mantiene la proporcin */
    filter: drop-shadow(8px 8px 0px var(--ink));
    z-index: 3;
    margin-bottom: -5px; /* Cubre ligeramente el borde inferior para esconder el corte */
}

  /* Banner Speech Bubble (Now a horizontal strip everywhere) */
  .banner-bubble-img {
      display: none;
  }
  
  .banner-bubble-container { 
      margin: 0; 
      align-self: flex-end;
      max-width: 100%;
      width: 100%;
      background: rgba(253, 251, 247, 0.95);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      padding: 1.5rem 1rem 1.5rem 1.5rem;
      transform: none; 
      border-top: var(--border-comic);
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: space-between;
  }
  
  .banner-bubble-text {
      position: relative; 
      top: auto;
      left: auto;
      transform: none;
      width: 75%; /* Aumentado para que el texto ocupe más ancho y menos alto */
      margin-right: auto; 
      text-align: left;
  }
  
  .banner-bubble-text p {
      color: var(--ink);
      font-size: 1.5rem; /* Un poco ms grande para PC */
      font-weight: 900;
      line-height: 1.3; 
      margin: 0;
  }


/* ---------------- BUTTONS ---------------- */
.comic-btn {
    display: inline-block;
    background-color: var(--green);
    color: var(--ink);
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.8rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border: var(--border-comic);
    box-shadow: var(--shadow-comic);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
}

.comic-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px 0px var(--ink);
    background-color: var(--gold);
}

.comic-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0px 0px var(--ink);
}

.comic-btn.orange { background-color: var(--orange); }

/* ---------------- PANELS AND VIDEO SECTIONS ---------------- */
.section-video-bg {
    position: relative;
    padding: 6rem 1.5rem;
    overflow: hidden;
    border-bottom: var(--border-comic);
}

.bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1; /* El video de fondo se ver en todo su esplendor */
}

.content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.comic-panel {
    background-color: var(--white); /* Caja blanca slida para asegurar lectura */
    color: var(--ink);
    border: var(--border-comic);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 12px 12px 0px 0px var(--ink); /* Sombra pesada para que flote sobre el video */
    position: relative;
    border-radius: 12px;
}

.comic-panel h2 {
    font-size: 3rem;
    color: var(--orange);
    text-shadow: 3px 3px 0px var(--ink);
    margin-bottom: 1.5rem;
}

.comic-panel p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ---------------- CHARACTERS (CIRCLES) ---------------- */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem 2rem;
    margin-top: 4rem;
}

.character-card {
    background: var(--white);
    border: var(--border-comic);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-comic);
    transition: transform 0.2s;
    color: var(--ink);
    padding: 0 1.5rem 1.5rem 1.5rem;
    position: relative;
    margin-top: 50px;
}

.character-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px 0px var(--ink);
}

.character-img-wrapper {
    width: 150px;
    height: 150px;
    margin: -75px auto 1rem auto;
    border-radius: 50%;
    border: var(--border-comic);
    overflow: hidden;
    background: var(--gold);
    box-shadow: 4px 4px 0px var(--ink);
    position: relative;
    z-index: 2;
}

.character-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.character-info h3 {
    font-size: 2.2rem;
    color: var(--green);
    text-shadow: 2px 2px 0px var(--ink);
    margin-bottom: 0.5rem;
}

.energy-badge {
    display: inline-block;
    background: var(--ink);
    color: var(--white);
    padding: 0.4rem 1rem;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1rem;
    border: 2px solid var(--ink);
    border-radius: 20px;
}

/* ---------------- SPEECH BUBBLES ---------------- */
.speech-bubble-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.speech-bubble-img {
    width: 100%;
    height: auto;
    display: block;
    /* Quitamos el drop-shadow si la imagen original ya lo tiene, o lo dejamos sutil */
}

.speech-bubble-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    text-align: center;
    margin-top: -3%; /* Compensa la cola de la burbuja */
}

.speech-bubble-text p {
    font-size: 1.2rem;
    font-weight: 400; /* Sin negrilla para mejorar legibilidad */
    color: var(--ink);
    margin: 0 auto;
}
.speech-bubble-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ---------------- FORMS ---------------- */
.comic-input {
    width: 100%;
    padding: 1.2rem;
    border: var(--border-comic);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: inset 4px 4px 0px rgba(0,0,0,0.1);
    background: #fff;
    color: var(--ink);
}

.comic-input:focus {
    outline: none;
    border-color: var(--green);
}

/* ---------------- FOOTER ---------------- */
footer {
    background-color: var(--ink);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
    border-top: 5px solid var(--green);
}

footer p {
    font-size: 0.9rem; /* Letra ms pequea tipo letra chica */
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    color: #a0a0a0; /* Gris suave en lugar de blanco fuerte para quitar peso */
    font-weight: 400;
    line-height: 1.6;
}

/* Quitar negrilla de las advertencias legales en el footer */
footer p strong, footer p b {
    font-weight: 400;
}

footer a {
    color: var(--gold);
    font-weight: 600; /* Menos grueso */
    text-decoration: underline;
    font-family: 'Poppins', sans-serif; /* Cambiado a la fuente normal, no la de cmic pesada */
    font-size: 1rem; /* Ms pequeo */
    margin: 0 1.5rem;
    text-shadow: none; /* Quitamos la sombra pesada */
}

footer a:hover {
    color: var(--orange);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .top-corner-logo {
        top: 0.5rem; 
        left: 1.5rem; /* Logo a la izquierda tambin en celular */
        right: auto;
    }
    .top-corner-logo img {
        max-width: 120px; /* Logo ms pequeo en celular */
    }
    
    .hero-section {
        height: 100vh; /* Altura estricta para evitar scroll */
        min-height: auto;
        padding-top: 0;
    }
    
    .hero-content { 
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column; 
        justify-content: flex-end; /* Todo hacia abajo */
        align-items: center; 
        padding: 0; 
        gap: 0;
    }
    
      .banner-bubble-text {
          margin-bottom: 0;
          width: 58%; /* Limita el ancho para que no pase por encima de Elav */
          padding-right: 5px;
      }
      
      .banner-bubble-text p {
          font-size: 1.05rem; /* Un pelito más pequeño para que quepa bien en el nuevo ancho */
          line-height: 1.35;
      }
    
    .hero-elav { 
        position: absolute; /* Sacamos a Elav del flujo */
        bottom: 0; 
        right: -10%; /* Un poquito más hacia el centro */
        max-height: 60vh; /* Un poquito más baja para no tapar texto si es celular muy pequeño */
        margin-bottom: -5px;
        z-index: 10; /* Se asegura de estar POR ENCIMA de la franja blanca */
    }
    
    .speech-bubble-container {
        max-width: 95%; /* Que use el ancho del telfono */
        margin: 0 auto 6rem auto; /* Aumentamos el margen inferior para separar la caja de abajo */
    }
    .speech-bubble-img {
        transform: scale(1.6); /* Hacemos la imagen mucho ms grande para compensar los bordes transparentes! */
    }
    .speech-bubble-text {
        width: 80%;
        top: 49%; /* Lo bajamos un poquito ms hacia el centro real */
        margin-top: 0;
    }
    .speech-bubble-text p {
        font-size: 0.7rem; /* Reducimos el tamao para que quepa perfectamente */
        line-height: 1.25;
        font-weight: 400; 
    }
    .speech-bubble-text h2 {
        font-size: 1.2rem !important; /* Ttulo un poco ms pequeo */
        margin-bottom: 0.3rem;
    }
    .comic-panel {
        padding: 2rem 1.5rem;
    }
    .comic-panel h2 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
        word-break: normal;
        hyphens: none;
        text-shadow: 3px 3px 0px var(--ink) !important;
        -webkit-text-stroke: 1px var(--ink) !important;
    }
    .comic-panel h3, h3 {
        font-size: 2rem !important; 
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
        word-break: normal;
        hyphens: none;
        text-shadow: 2px 2px 0px var(--ink) !important; 
        -webkit-text-stroke: 1px var(--ink) !important; /* QUITAR el borde negro para que se lea */
        letter-spacing: 0px !important;
    }
        .comic-btn {
        font-size: 1.6rem !important; /* Restaurar tamaño legible */
        padding: 0.8rem 1rem;
        -webkit-text-stroke: 0 !important; /* Asegurar lectura */
        letter-spacing: 1px !important;
    }
    footer {
        padding: 3rem 1.5rem;
    }
    footer p {
        font-size: 0.8rem; /* An ms pequeo en mviles */
        line-height: 1.4;
    }
    footer a {
        display: block;
        margin: 1rem 0;
    }
}

