:root {
    /* Navy & Cyan Theme - Consistente con noesisdat.com */
    --primary-color: #1a2332;
    --primary-dark: #0f1419;
    --secondary-color: #00d4ff;
    --accent-color: #00a8cc;
    --dark-bg: #1a2332;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-light: #6b7280;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #1a2332 0%, #2a3544 50%, #3a2f5d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    min-height: 100vh;
    position: relative;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(26, 35, 50, .5) 35px, rgba(26, 35, 50, .5) 70px);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navbar */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.btn-back {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Main Content */
main {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.select-header {
    text-align: center;
    margin-bottom: 3rem;
}

.select-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.select-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Fallas Grid */
.fallas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.falla-card {
    background-color: var(--white);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.falla-card:not(.coming-soon):hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.falla-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.falla-card.coming-soon:hover {
    transform: none;
}

.falla-image {
    background: var(--gradient);
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.falla-image img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.coming-soon-icon {
    font-size: 5rem;
    opacity: 0.5;
}

.falla-info {
    padding: 2rem;
}

.falla-info h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.falla-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.falla-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.falla-contact {
    margin-top: 1rem;
}

.falla-contact p {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.falla-contact a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.falla-contact a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.falla-action {
    padding: 0 2rem 2rem;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Info Box */
.info-box {
    background-color: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-content p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 2rem 0;
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .select-header h1 {
        font-size: 2rem;
    }

    .select-header p {
        font-size: 1rem;
    }

    .fallas-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
    }
}

/* Loading State */
.loading-state, .error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid #e5e7eb;
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p, .error-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.error-state p {
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.error-state a {
    color: var(--secondary-color);
    font-weight: 600;
}
