/* Ultra Premium Design - Fogones y Parrillas */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    /* Paleta de colores ultra premium */
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --tertiary-dark: #2a2a2a;
    --accent-gold: #d4af37;
    --accent-copper: #b87333;
    --accent-fire: #ff4500;
    --accent-ember: #ff6b35;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    
    /* Gradientes premium */
    --gradient-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b87333 100%);
    --gradient-fire: linear-gradient(135deg, #ff4500 0%, #ff6b35 50%, #ffa500 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Sombras premium */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 16px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);
    --shadow-fire: 0 0 50px rgba(255, 69, 0, 0.4);
    
    /* Efectos premium */
    --blur-glass: blur(20px);
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 28px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Elementos de fondo animados */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-ember {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gradient-fire);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatEmber 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.floating-ember:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-ember:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-ember:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 14s;
}

.floating-ember:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.floating-ember:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 11s;
}

@keyframes floatEmber {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

/* Contenedor principal */
.container {
    max-width: 420px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header mejorado */
.header {
    text-align: center;
    margin-bottom: 50px;
    animation: luxuryFadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* Logo container con efectos avanzados */
.logo-container {
    position: relative;
    margin-bottom: 30px;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-gold);
    border-radius: 50%;
    opacity: 0.2;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
    filter: blur(15px);
}

.logo-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-fire)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: ringRotate 4s linear infinite;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: var(--gradient-gold);
    padding: 4px;
    box-shadow: var(--shadow-strong), var(--shadow-glow);
    transition: var(--transition-bounce);
    position: relative;
    z-index: 2;
}

.logo:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: var(--shadow-strong), var(--shadow-fire);
}

@keyframes logoGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Títulos mejorados */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.title-main {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.title-accent {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-ember);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.9;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subtitle-icon {
    font-size: 1.2rem;
    animation: flicker 2s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.header-divider {
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Links container mejorado */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    margin-bottom: 40px;
}

/* Link items ultra premium */
.link-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
    box-shadow: var(--shadow-soft);
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
.link-item:nth-child(6) { animation-delay: 0.6s; }
.link-item:nth-child(7) { animation-delay: 0.7s; }
.link-item:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.link-background {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    transition: var(--transition-smooth);
    z-index: -1;
}

.link-item:hover .link-background {
    left: 0;
}

.link-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    margin-right: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.link-icon svg {
    width: 24px;
    height: 24px;
    transition: var(--transition-smooth);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.link-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.link-item:hover .link-arrow {
    transform: translateX(5px);
    opacity: 1;
    color: var(--accent-gold);
}

/* Estilos específicos por tipo de link */
.link-item.website .link-icon {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.link-item.instagram .link-icon {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.link-item.facebook .link-icon {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.link-item.youtube .link-icon {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
}

.link-item.phone .link-icon {
    background: var(--gradient-fire);
}

.link-item.whatsapp .link-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.link-item.email .link-icon {
    background: linear-gradient(135deg, #ea4335 0%, #fbbc05 100%);
}

.link-item.location .link-icon {
    background: linear-gradient(135deg, #4285f4 0%, #0f9d58 100%);
}

/* Footer ultra premium */
.footer {
    margin-top: auto;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-copyright {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.copyright-icon {
    font-size: 1rem;
    animation: flicker 3s ease-in-out infinite;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--gradient-gold);
    border-radius: 1px;
    opacity: 0.6;
}

.footer-credits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.credits-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.credits-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.credits-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
    z-index: -1;
    opacity: 0.1;
}

.credits-link:hover::before {
    left: 0;
}

.credits-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.credits-icon {
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.credits-name {
    font-weight: 700;
}

.credits-badge {
    font-size: 0.7rem;
    background: var(--gradient-gold);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* PWA Install Prompt */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: var(--blur-glass);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.install-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

.install-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.install-icon {
    font-size: 2rem;
}

.install-text {
    flex: 1;
}

.install-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.install-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.install-btn {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.dismiss-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-smooth);
}

.dismiss-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* Animaciones principales */
@keyframes luxuryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
    
    .link-item {
        padding: 16px 20px;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
        margin-right: 15px;
    }
    
    .install-prompt {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 360px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .link-item {
        padding: 14px 16px;
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --text-muted: #a0a0a0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .link-item {
        border: 2px solid var(--accent-gold);
    }
    
    .link-item:hover {
        background: var(--accent-gold);
        color: var(--primary-dark);
    }
}

/* Print styles */
@media print {
    .background-elements,
    .install-prompt {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .link-item {
        border: 1px solid #ccc;
        background: white;
        color: black;
        margin-bottom: 10px;
    }
}