/* ==========================================
   JENSSY STERLING · ENLACES
   ========================================== */

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #faf8f9;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ---------- VARIABLES (ROSADO) ---------- */
:root {
    --primary: #e85d8a;
    --primary-dark: #c94a74;
    --primary-light: #f5d4df;
    --secondary: #b8a0d4;
    --text: #1a1a1a;
    --text-light: #555;
    --text-muted: #888;
    --bg: #faf8f9;
    --bg-card: #ffffff;
    --border: #eee;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.10);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.25s ease;
}

/* ---------- TIPOGRAFÍA ---------- */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.6rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-light);
}

/* ---------- CONTENEDOR ---------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   SCROLLBAR PERSONALIZADA
   ========================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ==========================================
   HEADER / NAVEGACIÓN
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.logo-mark {
    color: var(--primary);
    font-size: 1.2rem;
}

.logo-name {
    letter-spacing: -0.02em;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4.5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list a {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--text);
    background: var(--bg);
}

/* ==========================================
   HERO - ENLACES (ROSADO)
   ========================================== */
.hero {
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    background: linear-gradient(170deg, #fcf6f8 0%, #f5edf0 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.hero h1 .accent {
    color: var(--primary);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 auto;
    font-weight: 350;
    font-style: italic;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem auto 0;
    width: 120px;
}

.hero-divider span {
    display: block;
    height: 1px;
    background: var(--border);
    flex: 1;
}

.hero-divider span:first-child,
.hero-divider span:last-child {
    flex: 2;
}

.hero-divider span:nth-child(2) {
    flex: 0;
    color: var(--primary);
    font-size: 0.7rem;
    background: none;
    height: auto;
}

.hero-ornaments {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.ornament {
    position: absolute;
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.10;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
}

/* ==========================================
   ENLACES - CONTENIDO PRINCIPAL
   ========================================== */
.section-enlaces {
    padding: 2rem 0 4rem 0;
}

/* Grupos de enlaces */
.links-group {
    margin-bottom: 3rem;
}

.links-group:last-of-type {
    margin-bottom: 0;
}

.links-group-title {
    font-size: 1.8rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.links-group-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin: 0.4rem auto 0;
    border-radius: 2px;
    opacity: 0.4;
}

/* Grid de enlaces */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Tarjeta de enlace */
.link-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--primary);
    opacity: 1;
}

.link-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.link-info {
    flex: 1;
    min-width: 0;
}

.link-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.link-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

.link-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
    opacity: 0.3;
}

/* ==========================================
   COLORES POR PLATAFORMA (HOVER SUTIL)
   ========================================== */

/* Redes Sociales */
.link-instagram:hover {
    border-color: #e1306c;
}
.link-instagram:hover .link-arrow {
    color: #e1306c;
}

.link-tiktok:hover {
    border-color: #FE2C55;
}
.link-tiktok:hover .link-arrow {
    color: #FE2C55;
}

.link-youtube:hover {
    border-color: #FF0000;
}
.link-youtube:hover .link-arrow {
    color: #FF0000;
}

.link-pinterest:hover {
    border-color: #E60023;
}
.link-pinterest:hover .link-arrow {
    color: #E60023;
}

.link-twitch:hover {
    border-color: #9146FF;
}
.link-twitch:hover .link-arrow {
    color: #9146FF;
}

.link-spotify:hover {
    border-color: #1DB954;
}
.link-spotify:hover .link-arrow {
    color: #1DB954;
}

.link-steam:hover {
    border-color: #66c0f4;
}
.link-steam:hover .link-arrow {
    color: #66c0f4;
}

/* Comunidades */
.link-discord:hover {
    border-color: #5865F2;
}
.link-discord:hover .link-arrow {
    color: #5865F2;
}

/* Facebook */
.link-facebook:hover {
    border-color: #1877F2;
}
.link-facebook:hover .link-arrow {
    color: #1877F2;
}

/* Plataformas de Lectura */
.link-webtoon:hover {
    border-color: #00DC64;
}
.link-webtoon:hover .link-arrow {
    color: #00DC64;
}

.link-wattpad:hover {
    border-color: #ff500a;
}
.link-wattpad:hover .link-arrow {
    color: #ff500a;
}

.link-inkitt:hover {
    border-color: #121212;
}
.link-inkitt:hover .link-arrow {
    color: #121212;
}

.link-booknet:hover {
    border-color: #83325a;
}
.link-booknet:hover .link-arrow {
    color: #83325a;
}

.link-manga:hover {
    border-color: var(--primary);
}
.link-manga:hover .link-arrow {
    color: var(--primary);
}

/* ==========================================
   MENSAJE FINAL
   ========================================== */
.enlaces-message {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 2.5rem auto 0;
    font-style: italic;
    line-height: 1.8;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ==========================================
   LÍNEA SEPARADORA (opcional)
   ========================================== */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    max-width: 120px;
    margin: 0 auto;
    opacity: 0.4;
}

.section-divider-icon {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 25%, var(--border) 75%, transparent);
    max-width: 140px;
    margin: 0 auto;
    opacity: 0.3;
    position: relative;
}

.section-divider-icon::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 0 0.6rem;
    color: var(--primary);
    font-size: 0.6rem;
    opacity: 0.5;
}

/* ==========================================
   FOOTER SIMPLIFICADO
   ========================================== */
.footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.footer-mark {
    color: var(--primary);
    font-size: 1rem;
}

.footer-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-bottom {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================
   RESPONSIVE - ENLACES
   ========================================== */

@media (max-width: 820px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.6rem;
    }

    .links-group-title {
        font-size: 1.6rem;
    }

    .section-divider,
    .section-divider-icon {
        max-width: 80px;
    }

    .section-divider-icon::after {
        font-size: 0.5rem;
        padding: 0 0.3rem;
    }
}

@media (max-width: 640px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem;
        display: none;
        box-shadow: var(--shadow);
    }

    .nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-list a {
        text-align: center;
        padding: 0.6rem;
        border-radius: var(--radius-sm);
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-enlaces {
        padding: 1.5rem 0 3rem 0;
    }

    .links-group {
        margin-bottom: 2rem;
    }

    .links-group-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        max-width: 100%;
    }

    .link-card {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }

    .link-icon {
        font-size: 1.6rem;
        width: auto;
    }

    .link-info h3 {
        font-size: 0.8rem;
    }

    .link-info p {
        font-size: 0.65rem;
    }

    .link-arrow {
        display: none;
    }

    .link-card:hover {
        transform: translateY(-2px);
    }

    .enlaces-message {
        font-size: 0.85rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .footer {
        padding: 1.5rem 1rem 1rem;
        margin-top: 1rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }

    .footer-bottom {
        font-size: 0.6rem;
    }

    .section-divider,
    .section-divider-icon {
        max-width: 60px;
    }

    .section-divider-icon::after {
        font-size: 0.4rem;
        padding: 0 0.2rem;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .link-card {
        flex-direction: row;
        text-align: left;
        padding: 0.6rem 0.8rem;
    }

    .link-icon {
        font-size: 1.4rem;
        width: 36px;
    }

    .link-arrow {
        display: block;
    }

    .links-group-title {
        font-size: 1.2rem;
    }
}