/* ===== PÁGINA INDEX - GALERIO ===== */
/* Estilos específicos para la página de inicio */

/* Layout principal de la página index con sticky footer */
.index-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

@supports (height: 100dvh) {
    .index-page {
        min-height: 100dvh;
    }
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sección hero */
section.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0.8rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--surface-variant-color) 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

section.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo SVG styling */
.logo-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo-svg-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#logo-svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    user-select: none;
    -webkit-user-select: none;
}

/* Legacy canvas styling (fallback) */
#logo-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

#logo-canvas:active {
    cursor: grabbing;
}

/* Logo image styling (fallback) */
section.hero .logo-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

section.hero .logo-image:hover {
    transform: scale(1.05);
}

section.hero p {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Botones en hero - heredan de buttons.css y agregan estilos específicos */
section.hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

section.hero .btn-primary .material-icons {
    font-size: 1.3rem;
    vertical-align: middle;
}

section.hero .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color-dark), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

/* Sección de características */
.features-section {
    margin-top: 4rem;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sección de estadísticas */
.stats-section {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background-color: var(--surface-variant-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Footer del index */
.footer {
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: 8px;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Animaciones específicas del index */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

/* Efectos de parallax suave */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Spotlight effect styling */
.spotlight-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

/* Responsive para la página index */
@media (max-width: 1024px) {
    section.hero h1 {
        font-size: 2.5rem;
    }
    
    .logo-container, #logo-svg-container {
        max-width: 350px;
        height: 350px;
    }
    
    section.hero .logo-image {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
    section.hero h1 {
        font-size: 1.75rem;
    }
    
    .logo-container, #logo-svg-container {
        max-width: 280px;
        height: 280px;
    }
    
    section.hero .logo-image {
        max-width: 180px;
    }
    
    section.hero .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}
