@font-face {
    font-family: 'Comic Bold';
    src: url('comic_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-boton: #042695;
    --azul-boton-hover: #031547;
    --naranja: #FF9800;
    --verde: #0C8115;
    --verde-intenso: #11C800;
    --negro: #000000;
    --blanco: #FFFFFF;
    --gris-claro: #CCCCCC;
    --gris-oscuro: #1A1A1A;
    --fondo: #0D0D0D;
    --panel-bg: rgba(0,0,0,0.65);
    --celda-azul: rgba(4,38,149,0.80);
    --celda-verde: rgba(12,129,21,0.79);
    --rojo-enemigo: #ff4444;
    --max-width: 1100px;
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--fondo);
    color: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== UTILITY ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'Nosifer', cursive;
    font-size: 2.2rem;
    color: var(--verde);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow:
        1px 1px 0 #000, -1px -1px 0 #000,
        1px -1px 0 #000, -1px 1px 0 #000;
}

.character-name {
    font-family: 'Frijole', cursive;
    color: var(--naranja);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.section-subtitle {
    text-align: center;
    color: var(--gris-claro);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto 3rem;
}

section {
    padding: 5rem 0;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hero-bg-land.png') top/cover no-repeat fixed;
    padding: 2rem;
    padding-top: max(2rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(4,38,149,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Nosifer', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--verde);
    text-shadow:
        2px 2px 0 #000, -2px -2px 0 #000,
        2px -2px 0 #000, -2px 2px 0 #000;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(255,152,0,0.3));
}

.hero p {
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    color: var(--naranja);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-subtitle-wrapper {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-subtitle-wrapper p {
    margin-bottom: 0;
}

.hero .scroll-indicator {
    position: fixed;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-indicator.scroll-hidden {
    opacity: 0;
    animation: none;
}

.scroll-arrow {
    display: block;
    width: 80px;
    height: 80px;
    transform: rotate(270deg);
    filter: drop-shadow(0 0 12px rgba(255,152,0,0.4));
}

/* ===== BUTTONS (Android style) ===== */
.btn-primary {
    display: inline-block;
    background: var(--azul-boton);
    color: var(--blanco);
    padding: 0.9rem 2.5rem;
    border-radius: var(--border-radius);
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--blanco);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse-soft 3s ease-in-out infinite;
}

.btn-primary:hover {
    background: var(--azul-boton-hover);
    box-shadow: 0 0 25px rgba(255,152,0,0.5);
    border-color: var(--naranja);
    transform: scale(1.03);
    animation: none;
}

.btn-primary.proximamente {
    cursor: default;
    opacity: 0.85;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--gris-oscuro);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--naranja), transparent);
    opacity: 0.3;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gris-claro);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-text strong {
    color: var(--naranja);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.highlight-item {
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s, transform 0.3s;
}

.highlight-item:hover {
    border-color: var(--naranja);
    transform: translateX(4px);
}

.highlight-item .icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.highlight-item .text {
    font-size: 0.95rem;
    color: var(--gris-claro);
}

.highlight-item .text span {
    color: var(--blanco);
    font-weight: 600;
}

/* ===== NOSIFER FONT (Android style: green fill + black border) ===== */
.font-nosifer {
    font-family: 'Nosifer', cursive;
    color: var(--verde);
    text-shadow:
        1px 1px 0 #000, -1px -1px 0 #000,
        1px -1px 0 #000, -1px 1px 0 #000;
}

/* ===== CHARACTERS ===== */
.characters-section {
    background: var(--fondo);
    position: relative;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.character-card {
    min-width: 0;
    background: var(--panel-bg);
    border-radius: 15px;
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0%;
    min-width: 0;
}

.card-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1 1 0%;
}

.card-right .desc {
    margin-top: 0.2rem;
}

.character-card:hover {
    border-color: var(--naranja);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(255,152,0,0.15);
}

.character-card .char-img-wrapper {
    width: auto;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    position: relative;
}

.character-card .char-img-wrapper img {
    width: 100%;
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s;
}

.character-card:hover .char-img-wrapper img {
    transform: scale(1.08);
}

.character-card h3 {
    margin-bottom: 0.4rem;
    text-align: center;
}

.character-card .tag {
    display: inline-block;
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    margin-bottom: 0;
}

.tag-enemy {
    background: rgba(90,0,0,0.5);
    color: var(--rojo-enemigo);
    border: 1px solid rgba(255,68,68,0.3);
}

.tag-ally {
    background: rgba(0,61,0,0.5);
    color: var(--verde-intenso);
    border: 1px solid rgba(17,200,0,0.3);
}

.character-card .desc {
    font-size: 0.85rem;
    color: var(--gris-claro);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.character-card .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-family: 'Frijole', cursive;
    color: var(--naranja);
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.character-card .stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.character-card .stats .stat-icon {
    font-size: 0.85rem;
}

/* ===== FEATURES ===== */
.features-section {
    background: var(--gris-oscuro);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--naranja), transparent);
    opacity: 0.3;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--panel-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: var(--naranja);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255,152,0,0.1);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    color: var(--naranja);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--gris-claro);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== GAMEPLAY ===== */
.gameplay-section {
    background: var(--fondo);
}

.gameplay-placeholder {
    max-width: 750px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(4,38,149,0.15) 0%, rgba(0,0,0,0.5) 100%);
    border: 2px dashed rgba(255,152,0,0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.gameplay-placeholder:hover {
    border-color: var(--naranja);
    color: var(--naranja);
    background: linear-gradient(135deg, rgba(4,38,149,0.25) 0%, rgba(0,0,0,0.6) 100%);
}

.gameplay-placeholder .play-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.gameplay-placeholder:hover .play-icon {
    transform: scale(1.1);
}

.gameplay-placeholder p {
    font-size: 1rem;
    color: inherit;
}

/* ===== DOWNLOAD ===== */
.download-section {
    text-align: center;
    background: url('hero-bg-land.png') top/cover no-repeat fixed;
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--naranja), transparent);
    opacity: 0.3;
}

.download-section p {
    color: var(--gris-claro);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.orientation-info {
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: var(--gris-claro);
    margin-top: 1.5rem;
    opacity: 0.7;
}

/* ===== FOOTER ===== */
footer {
    background: #080808;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

footer .footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--gris-claro);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

footer .footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: var(--naranja);
    transform: scaleX(0);
    transition: transform 0.3s;
}

footer .footer-links a:hover {
    color: var(--naranja);
}

footer .footer-links a:hover::after {
    transform: scaleX(1);
}

footer .copyright {
    color: #555;
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,152,0,0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255,152,0,0.4);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(18px);
        opacity: 0.2;
    }
}

@keyframes bounce-landscape {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(18px);
        opacity: 0.2;
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero p {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 0;
    }

    .character-card {
        padding: 0.8rem;
    }

    .character-card .char-img-wrapper {
        max-height: 130px;
        width: auto;
    }

    .character-card .char-img-wrapper img {
        max-width: 110px;
        max-height: 110px;
    }

    .character-card h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.2rem;
    }

    .character-card {
        padding: 0.8rem 0.6rem;
    }

    .character-card .char-img-wrapper {
        max-height: 110px;
    }

    .character-card .char-img-wrapper img {
        max-width: 95px;
        max-height: 95px;
    }

    .character-card h3 {
        font-size: 0.85rem;
    }

    .character-card .stats {
        gap: 0.4rem;
        font-size: 0.65rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    footer .footer-links {
        gap: 1rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100dvh;
        padding: 0.5rem;
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    }

    .hero-content {
        animation: none;
    }

    .hero-title {
        font-size: 3.5rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle-wrapper {
        margin-bottom: 0.5rem;
        padding: 0.3rem 1rem;
    }

    .hero .scroll-indicator {
        left: auto;
        right: 4rem;
        transform: none;
        animation: bounce-landscape 1.5s ease-in-out infinite;
    }

    .hero .scroll-indicator.scroll-hidden {
        opacity: 0;
        animation: none;
    }

    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .hero,
    .download-section {
        background: url('hero-bg-portrait.png') top/cover no-repeat fixed;
    }
}

/* ===== CONTACTO PAGE ===== */
.contacto-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--fondo);
}

.contacto-card {
    background: var(--panel-bg);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
}

.contacto-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contacto-logo {
    text-decoration: none;
}

.contacto-subtitle {
    color: var(--gris-claro);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-label {
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    color: var(--naranja);
    font-size: 0.9rem;
}

.input-field {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--blanco);
    font-size: 0.95rem;
    font-family: 'Segoe UI', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.input-field:focus {
    border-color: var(--naranja);
    box-shadow: 0 0 0 2px rgba(255,152,0,0.15);
}

.input-field::placeholder {
    color: #555;
}

.input-textarea {
    min-height: 130px;
    resize: vertical;
}

.form-error {
    color: #ff4444;
    font-size: 0.8rem;
    min-height: 1.1em;
}

.btn-enviar {
    background: var(--azul-boton);
    color: var(--blanco);
    border: 2px solid var(--blanco);
    border-radius: var(--border-radius);
    padding: 0.85rem 2rem;
    font-family: 'Comic Bold', 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    min-height: 50px;
}

.btn-enviar:hover {
    background: var(--azul-boton-hover);
    box-shadow: 0 0 20px rgba(255,152,0,0.4);
    border-color: var(--naranja);
    transform: scale(1.02);
}

.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner-hidden {
    display: none;
}

.feedback {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 1.2rem;
}

.feedback-exito {
    background: rgba(12,129,21,0.2);
    border: 1px solid var(--verde);
    color: var(--verde-intenso);
}

.feedback-error {
    background: rgba(255,68,68,0.15);
    border: 1px solid var(--rojo-enemigo);
    color: var(--rojo-enemigo);
}

.hidden {
    display: none;
}

.contacto-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.contacto-footer a {
    color: var(--gris-claro);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contacto-footer a:hover {
    color: var(--naranja);
}

@media (max-width: 480px) {
    .contacto-card {
        padding: 1.5rem;
    }

    .contacto-wrapper {
        padding: 1.5rem 1rem;
    }
}
