/* ========================================
   JiyaneDesign Premium Linktree
   Styles CSS - Lujo Moderno & Elegante
   ======================================== */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores principales */
    --gold-primary: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8860B;
    --gold-metallic: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #D4AF37 100%);
    --black-deep: #000000;
    --black-soft: #0a0a0a;
    --white-pure: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.9);

    /* Gradientes premium */
    --gradient-gold-black: linear-gradient(135deg, #D4AF37 0%, #1a1a1a 100%);
    --gradient-black-gold: linear-gradient(135deg, #1a1a1a 0%, #D4AF37 100%);
    --gradient-gold-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);

    /* Tipografía */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Bordes */
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 50px;

    /* Sombras */
    --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.3);
    --shadow-gold-intense: 0 0 60px rgba(212, 175, 55, 0.5);
    --shadow-gold-glow: 0 0 25px rgba(212, 175, 55, 0.6);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--black-deep);
    color: var(--white-pure);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===== FONDO ANIMADO ===== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }

    50% {
        background-position: 100% 50%, 0% 50%, 50% 0%;
    }
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0;
    line-height: 0;
}

.logo {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: logoEntrance 1s ease-out;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseStatus 2s infinite;
}

.status-text {
    font-size: 0.85rem;
    color: var(--white-pure);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes pulseStatus {
    0% {
        transform: scale(0.95);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

/* Logo glow removido - solo drop-shadow en el logo */
.btn-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== TAGLINE ===== */
.tagline {
    text-align: center;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tagline-text {
    font-size: 1.1rem;
    color: var(--white-pure);
    font-weight: 400;
}

/* Value Proposition List */
.value-prop {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
    max-width: 480px;
    /* Ancho para lectura cómoda */
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.prop-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    background: transparent;
    padding: 2px 0;
    border: none;
    transition: color 0.3s ease;
}



.prop-item:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
    color: var(--white-pure);
}



.prop-icon {
    color: var(--gold-primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    margin-top: 0;
}


.prop-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.tagline-sub {
    font-size: 0.9rem;
    color: var(--gold-primary);
    font-weight: 500;
    opacity: 0.9;
}

/* ===== CONTENEDOR DE LINKS ===== */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

/* ===== BOTONES DE LINKS ===== */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap removido para centrado absoluto */
    width: 100%;
    padding: 1rem 3.5rem;
    /* Espacio para iconos laterales */
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--border-radius-lg);
    color: var(--white-pure);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out both;
}

/* Animación escalonada de entrada */
.link-btn:nth-child(1) {
    animation-delay: 0.3s;
}

.link-btn:nth-child(2) {
    animation-delay: 0.4s;
}

.link-btn:nth-child(3) {
    animation-delay: 0.5s;
}

.link-btn:nth-child(4) {
    animation-delay: 0.6s;
}

.link-btn:nth-child(5) {
    animation-delay: 0.7s;
}

.link-btn:nth-child(6) {
    animation-delay: 0.8s;
}

.link-btn:nth-child(7) {
    animation-delay: 0.9s;
}

.link-btn:nth-child(8) {
    animation-delay: 1.0s;
}

/* Efecto brillo en hover */
/* Efecto brillo premium en hover */
.link-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.link-btn:hover::after {
    animation: shine 0.75s ease-in-out;
}

@keyframes shine {
    100% {
        left: 150%;
    }
}

.link-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold-glow);
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.link-btn:active {
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-text {
    flex: 1;
    text-align: center;
}

.btn-arrow {
    opacity: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    transition: all var(--transition-medium);
    color: var(--gold-primary);
}

.link-btn:hover .btn-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* vCard Button */
.vcard-btn {
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.95rem;
}

.vcard-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vcard-btn:hover::after {
    animation: none;
    /* No shine for this one, optional */
}

/* ===== BOTÓN CTA DESTACADO ===== */
.cta-btn {
    background: var(--gold-metallic);
    border: none;
    font-weight: 700;
    color: #000000 !important;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    padding: 1rem 2rem;
    animation: pulseGlow 2s ease-in-out infinite, fadeInUp 0.6s ease-out 0.3s both;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centrar estrella junto al texto para el CTA */
.cta-btn .btn-icon {
    position: static;
    transform: none;
    margin-right: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
}

.cta-btn .btn-text {
    width: auto;
    flex: 0 0 auto;
}

.cta-btn .btn-icon {
    animation: sparkle 1.5s ease-in-out infinite;
}

.cta-btn .btn-arrow {
    color: var(--black-deep);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-gold-intense);
}

.cta-btn::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

/* ===== SECCIÓN PORTFOLIO ===== */
.portfolio-section {
    width: 100%;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    perspective: 1000px;
}

.portfolio-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Remove slow transition for transform to make tilt snappy */
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
    transform-style: preserve-3d;
    will-change: transform;
}

.portfolio-item:hover {
    border-color: var(--gold-primary);
    /* Transform handled by JS Tilt */
    box-shadow: var(--shadow-gold-intense);
    z-index: 10;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-name {
    color: var(--white-pure);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 0.75rem;
    text-align: center;
    padding: var(--spacing-xs);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    margin-top: auto;
    padding-top: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: var(--gold-primary);
    color: var(--black-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.copyright span {
    color: var(--gold-primary);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .logo {
        width: 160px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .tagline-text {
        font-size: 1rem;
    }

    .link-btn {
        padding: 0.9rem 2.5rem 0.9rem 3rem;
        font-size: 0.95rem;
    }

    /* Ajustar posición del icono en móvil */
    .btn-icon {
        left: 12px;
        width: 20px;
        height: 20px;
    }

    /* Iconos de propuestas de valor en móvil */
    .prop-icon {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .prop-item {
        font-size: 0.85rem;
        gap: 10px;
    }

    .cta-btn {
        padding: 1rem 1.2rem;
    }

    /* El CTA mantiene su estilo centrado */
    .cta-btn .btn-icon {
        position: static;
        left: auto;
        width: 22px;
        height: 22px;
    }

    .social-icons {
        gap: var(--spacing-sm);
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .logo {
        width: 250px;
    }

    .brand-name {
        font-size: 2rem;
    }

    .link-btn {
        padding: 1.1rem 2rem;
    }

    .cta-btn {
        padding: 1.3rem 2rem;
    }
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible para accesibilidad */
.link-btn:focus-visible,
.social-icon:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 3px;
}

/* ===== UTILIDADES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}