@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Black+Ops+One&family=Permanent+Marker&family=Special+Elite&display=swap');

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* ========== HEADER ========== */
header {
    background-image: url('img/Header.png');
    background-size: cover, auto;
    background-position: center;
    background-blend-mode: overlay;
    color: #ffd700;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 4px solid #ffd700;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header h1,
header nav {
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    letter-spacing: 4px;
    text-shadow: 3px 3px 0 #3a0000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Black Ops One', cursive;
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 1rem;
    letter-spacing: 1px;
}

nav a:hover {
    background: #ffd700;
    color: #8B0000;
    transform: scale(1.05);
    box-shadow: 0 0 15px #ffd700;
}

/* ========== MAIN ========== */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.txt-ini{
    text-align: center;
    font-family: 'Special Elite', monospace;
    color: #ffd700;
    margin-bottom: 2rem;
}


/* ========== BOTONES PRINCIPALES ========== */
.botones {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

button {
    font-family: 'Black Ops One', cursive;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    border: none;
    padding: 12px 28px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 0 #8B5a00;
    transition: all 0.1s ease;
    color: #2c0f00;
    letter-spacing: 1px;
}

button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #8B5a00;
}

button:hover {
    background: linear-gradient(135deg, #ffe066, #ffaa33);
    transform: scale(1.02);
}

/* ========== CARTELES WANTED ========== */
.resultados {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.wanted-poster {
    width: 320px;
    background: #fdf0d8;
    background-image: linear-gradient(to bottom, #fff8e7, #f0e0c0);
    border: 10px double #8B0000;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.wanted-poster:hover {
    transform: translateY(-8px);
}

.wanted-header {
    text-align: center;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.wanted-stamp {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 6px;
    color: #8B0000;
    display: block;
    text-shadow: 2px 2px 0 #ffd700;
}

.wanted-dead-or-alive {
    font-family: 'Permanent Marker', cursive;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 0.25rem;
    color: #2c1810;
}

/* ========== IMAGEN ========== */
.wanted-image.placeholder {
    background: #2c1810;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #8B0000;
    margin: 1rem 0;
    overflow: hidden;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a0f0a;
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-emoji {
    font-size: 6rem;
}

.wanted-name {
    font-family: 'Black Ops One', cursive;
    font-size: 1.3rem;
    text-align: center;
    margin: 0.5rem 0;
    letter-spacing: 1px;
}

.wanted-bounty {
    text-align: center;
    background: #2c1810;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border-radius: 5px;
}

.bounty-label {
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    color: #ffd700;
    display: block;
    letter-spacing: 2px;
}

.bounty-amount {
    font-family: 'Black Ops One', cursive;
    font-size: 1.3rem;
    color: #ffd700;
}

.wanted-details {
    margin: 0.8rem 0;
    padding: 0.5rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    padding: 0.2rem 0;
    font-family: 'Special Elite', monospace;
}

.detail-label {
    color: #8B0000;
    font-weight: bold;
}

.detail-value {
    text-align: right;
    color: #2c1810;
}

.wanted-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid #8B0000;
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: bold;
    font-family: 'Special Elite', monospace;
}

.marine-seal {
    color: #8B0000;
}

.world-government {
    color: #2c1810;
}

/* ========== PÁGINA DE LUFFY ========== */
.luffy-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.luffy-poster {
    width: 500px;
    margin: 0;
}

/* ========== PÁGINA SOBRE MÍ ========== */
.sobremi-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.sobremi-poster {
    width: 400px;
    margin: 0 auto;
}

.sobremi-poster .avatar-emoji {
    font-size: 5rem;
}

.sobremi-poster .wanted-name {
    font-size: 1.3rem;
}

.sobremi-poster .bounty-amount {
    font-size: 1.5rem;
}

/* ========== SECCIÓN TÉCNICAS Y GEARS ========== */
.tecnicas-section {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 1.5rem;
    width: 420px;
    border: 2px solid #ffd700;
    backdrop-filter: blur(5px);
}

.tecnicas-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: #2c1810;
    border: 2px solid #ffd700;
    padding: 10px;
    font-family: 'Black Ops One', cursive;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ffd700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;
}

.tab-btn.activo {
    background: #ffd700;
    color: #8B0000;
    box-shadow: 0 0 10px #ffd700;
}

.tab-btn:hover:not(.activo) {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.tecnicas-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.tecnicas-container::-webkit-scrollbar {
    width: 6px;
}

.tecnicas-container::-webkit-scrollbar-track {
    background: #2c1810;
    border-radius: 10px;
}

.tecnicas-container::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

.tecnica-card {
    background: linear-gradient(135deg, #fdf0d8, #f0e0c0);
    border-left: 5px solid #ffd700;
    border-radius: 10px;
    padding: 0.8rem;
    transition: transform 0.2s;
}

.tecnica-card:hover {
    transform: translateX(5px);
}

.tecnica-card h3 {
    font-family: 'Black Ops One', cursive;
    font-size: 0.9rem;
    color: #8B0000;
    margin-bottom: 0.3rem;
}

.tecnica-tipo {
    display: inline-block;
    font-family: 'Special Elite', monospace;
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.tecnica-tipo.basico {
    background: #2c1810;
    color: #ffd700;
}

.tecnica-tipo.gear {
    background: #8B0000;
    color: #ffd700;
}

.tecnica-tipo.gear2 {
    background: #cc5500;
    color: white;
}

.tecnica-tipo.gear3 {
    background: #1a5276;
    color: white;
}

.tecnica-tipo.gear4 {
    background: #8B008B;
    color: white;
}

.tecnica-tipo.gear5 {
    background: white;
    color: #8B0000;
    border: 1px solid #8B0000;
}

.tecnica-card p {
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    color: #2c1810;
    line-height: 1.3;
}

.tec-count {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Special Elite', monospace;
    font-size: 0.65rem;
    color: #8B0000;
    font-weight: bold;
}

.gear-card {
    border-left-color: #ff4444;
}

/* Botones de paginación */
.tecnicas-botones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.tec-btn {
    font-family: 'Black Ops One', cursive;
    background: #ffd700;
    border: none;
    padding: 8px 16px;
    font-size: 0.7rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 0 #8B5a00;
}

.tec-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #8B5a00;
}

.tec-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagina-info {
    color: #ffd700;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    font-size: 0.8rem;
}

/* ========== FRUTAS ========== */
.fruit-poster .wanted-stamp {
    font-size: 1.3rem;
}

.fruit-bounty {
    background: #1a5276;
}

.fruit-placeholder {
    background: #1a5276;
}

/* ========== LOADER Y ERRORES ========== */
.loader,
.error-message {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    border-radius: 10px;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
}

/* ========== FOOTER ========== */
footer {
    background: #1a0f0a;
    color: #ffd700;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
    border-top: 3px solid #ffd700;
    font-family: 'Special Elite', monospace;
    font-size: 0.8rem;
}

/* ========== PÁGINA DE ARTEFACTOS ========== */
.artefactos-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.artefactos-tabs .tab-btn {
    min-width: 120px;
}

.artefactos-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.artefacto-card {
    width: 320px;
}

.artefacto-card .wanted-stamp {
    font-size: 1.5rem;
    letter-spacing: 3px;
}

/* ========== RESPONSIVE ========== */

/* Tablets y pantallas medianas (hasta 1024px) */
@media (max-width: 1024px) {
    .luffy-main {
        flex-direction: column;
        align-items: center;
    }
    
    .tecnicas-section {
        width: 500px;
    }
    
    .luffy-poster {
        width: 450px;
    }
}

/* Tablets pequeñas (hasta 768px) */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .wanted-poster {
        width: 280px;
    }
    
    .luffy-poster {
        width: 380px;
    }
    
    .tecnicas-section {
        width: 380px;
        padding: 1rem;
    }
    
    .sobremi-poster {
        width: 340px;
    }
    
    .artefacto-card {
        width: 280px;
    }
    
    .artefactos-tabs .tab-btn {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    button {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .wanted-stamp {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .wanted-name {
        font-size: 1.1rem;
    }
    
    .bounty-amount {
        font-size: 1.1rem;
    }
}

/* Móviles grandes (hasta 600px) */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
    
    nav ul {
        gap: 0.8rem;
    }
    
    nav a {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .botones {
        gap: 1rem;
    }
    
    button {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .wanted-poster {
        width: 260px;
        padding: 0.7rem;
    }
    
    .luffy-poster {
        width: 320px;
    }
    
    .tecnicas-section {
        width: 320px;
    }
    
    .sobremi-poster {
        width: 300px;
    }
    
    .sobremi-poster .wanted-name {
        font-size: 1rem;
    }
    
    .sobremi-poster .avatar-emoji {
        font-size: 3.5rem;
    }
    
    .artefacto-card {
        width: 260px;
    }
    
    .artefactos-tabs {
        gap: 0.8rem;
    }
    
    .artefactos-tabs .tab-btn {
        min-width: 85px;
        font-size: 0.7rem;
        padding: 6px;
    }
    
    .detail-row {
        font-size: 0.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .wanted-footer {
        font-size: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tecnicas-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        font-size: 0.7rem;
        padding: 6px;
    }
    
    .tec-btn {
        padding: 5px 12px;
        font-size: 0.6rem;
    }
    
    .pagina-info {
        font-size: 0.7rem;
    }
    
    .tecnicas-container {
        max-height: 400px;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.1rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .wanted-poster {
        width: 240px;
    }
    
    .luffy-poster {
        width: 280px;
    }
    
    .tecnicas-section {
        width: 280px;
    }
    
    .artefacto-card {
        width: 240px;
    }
    
    .artefacto-card .wanted-stamp {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .wanted-stamp {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
    
    .wanted-name {
        font-size: 0.9rem;
    }
    
    .bounty-amount {
        font-size: 0.9rem;
    }
    
    .avatar-emoji {
        font-size: 3rem;
    }
    
    .tecnica-card h3 {
        font-size: 0.75rem;
    }
    
    .tecnica-tipo {
        font-size: 0.5rem;
    }
    
    .tecnica-card p {
        font-size: 0.6rem;
    }
    
    .loader, .error-message {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    footer {
        font-size: 0.6rem;
    }
}