/* Box.HN Modern Custom Styles */

:root {
    --bg-dark: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --accent-blue: rgb(50 150 250);
    --accent-blue-light: rgb(80 170 255);
    --accent-blue-dark: rgb(30 130 230);
}

body {
    background-color: var(--bg-dark);
    scroll-behavior: smooth;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(50, 150, 250, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

.app-info-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.app-card:hover .app-info-overlay {
    opacity: 1;
}

.btn-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.btn-pill-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-pill-primary:hover {
    background: var(--accent-blue-light);
    transform: scale(1.05);
}

.btn-pill-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-top: 0.5rem;
}

.btn-pill-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pulse-heart {
    display: inline-block;
    color: #ef4444;
    animation: pulse-heart 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    margin: 0 4px;
}

.footer-link {
    color: var(--accent-blue);
    font-weight: 600;
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--accent-blue-light);
    text-shadow: 0 0 8px rgba(50, 150, 250, 0.4);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Common Layout Components */
.page-header {
    width: 100%;
    max-width: 56rem; /* 4xl */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem; /* mb-12 */
    position: sticky;
    top: 1rem; /* top-4 */
    z-index: 50;
    padding: 0.75rem 1rem; /* p-4 */
    border-radius: 1rem; /* rounded-2xl */
}

@media (max-width: 640px) {
    .page-header {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1.5rem;
        top: 0.5rem;
    }
}

.main-container {
    width: 100%;
    max-width: 56rem; /* 4xl */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* space-y-12 */
}

.hero-section {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-size: 2.25rem; /* 4xl */
    line-height: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem; /* 6xl */
        line-height: 1;
    }
}

.layout-wide {
    max-width: 72rem; /* 6xl */
}

.section-footer {
    width: 100%;
    max-width: 56rem; /* 4xl */
    margin-left: auto;
    margin-right: auto;
    margin-top: 5rem; /* mt-20 */
    padding-bottom: 3rem; /* pb-12 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem; /* pt-8 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* gap-4 */
    color: #64748b; /* text-slate-500 */
    font-size: 0.875rem; /* text-sm */
}

@media (min-width: 768px) {
    .section-footer {
        flex-direction: row;
    }
}

.cta-section {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 2.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 3rem;
    }
}

.blur-bg-circle {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    filter: blur(64px);
    opacity: 0.1;
    z-index: 0;
}

.blur-blue { background-color: var(--accent-blue); }
.blur-indigo { background-color: #4f46e5; }
.blur-orange { background-color: #f97316; }
.blur-red { background-color: #ef4444; }
.blur-purple { background-color: #a855f7; }
.blur-violet { background-color: #8b5cf6; }
.blur-fuchsia { background-color: #d946ef; }
.blur-cyan { background-color: #06b6d4; }
.blur-yellow { background-color: #eab308; }
.blur-pink { background-color: #ec4899; }
.blur-rose { background-color: #f43f5e; }
.blur-teal { background-color: #14b8a6; }
.blur-emerald { background-color: #10b981; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .card-grid-2-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#historia {
    margin-top: 0rem !important;
}

@media (min-width: 768px) {
    .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .card-grid-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.section-title {
    font-size: 1.875rem; /* 3xl */
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: #94a3b8; /* text-slate-400 */
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.blue-bar {
    width: 5rem; /* w-20 */
    height: 0.25rem; /* h-1 */
    background-color: var(--accent-blue);
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

.gradient-text-slate {
    background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blur-slate { background-color: #64748b; }
