/* css/style.css - ULTRA MODERN MAIN THEME */
:root {
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ff0062;
    --accent-hover: #d40051;
    --gradient-overlay: linear-gradient(to top, #0a0a0a 10%, transparent 100%);
    --radius: 12px;
    --container-width: 1200px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- HERO SLIDER (CARRUSEL) --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Altura del carrusel */
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    padding-left: calc((100% - var(--container-width)) / 2 + 1.5rem); /* Alinear con container */
    padding-right: 2rem;
    z-index: 2;
}

.hero-tag {
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-desc {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-btn {
    background: var(--text-main);
    color: black;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-btn:hover { background: var(--accent); color: white; }

/* --- CALL TO ACTION (SUBIR MANGA) --- */
.creator-cta {
    background: linear-gradient(135deg, #1f1f1f 0%, #111 100%);
    border: 1px solid #333;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: var(--container-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.creator-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%; width: 300px; height: 300px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
}

.cta-text h2 { font-size: 2rem; margin: 0 0 0.5rem 0; }
.cta-text p { color: var(--text-muted); margin: 0; font-size: 1.1rem; }

.cta-btn {
    background: var(--accent);
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 10px 20px -5px rgba(255, 0, 98, 0.4);
    z-index: 2;
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* --- SECCIONES COMUNES --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 15px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 5px; bottom: 5px; width: 4px;
    background: var(--accent);
    border-radius: 4px;
}

/* --- MANGA GRID (MODERNO) --- */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.manga-card {
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.manga-card:hover { transform: translateY(-5px); }

.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}

.manga-card:hover .card-cover img { transform: scale(1.05); }

.card-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.manga-info { padding-top: 10px; }

.manga-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manga-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- FOOTER --- */
footer {
    background: #050505;
    border-top: 1px solid #222;
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
    color: #666;
}

/* Añadir en css/style.css */

.section-title {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre icono y texto */
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.section-title svg {
    width: 24px;
    height: 24px;
    color: var(--accent); /* El icono toma el color fucsia */
}

/* El borde fucsia a la izquierda */
.section-title::before {
    content: '';
    position: absolute;
    left: 0; top: 5px; bottom: 5px; width: 4px;
    background: var(--accent);
    border-radius: 4px;
}

/* --- AJUSTES MÓVIL (GRID 2 COLUMNAS) --- */
@media (max-width: 768px) {
    
    /* Contenedor principal con menos margen lateral para ganar espacio */
    .container {
        padding: 0 12px;
    }

    /* Forzar la grilla a 2 columnas exactas */
    .manga-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas del mismo tamaño */
        gap: 10px; /* Espacio reducido entre tarjetas */
        margin-bottom: 2rem;
    }

    /* Ajustar textos de la tarjeta para que quepan bien */
    .manga-title {
        font-size: 0.85rem; /* Título más pequeño */
        line-height: 1.2;
        margin-bottom: 3px;
    }

    .manga-meta {
        font-size: 0.7rem; /* Fecha más pequeña */
    }

    .card-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 5px; 
        left: 5px;
    }

    /* Ajustar altura del Hero Slider en móvil para que no ocupe toda la pantalla */
    .hero-slider {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
}