/* Rediseño de Landing Page para TimsHub - Estilo Startup de Datos */
@import url('fonts.css');

:root {
    /* Paleta de Colores Corporativos - Tims Hortons */
    --tim-red: #C8102E;
    --tim-red-dark: #A10D24;
    --tim-beige: #FFF5E1;
    --tim-brown: #4A2511;
    --tim-brown-light: #8B4513;

    /* Paleta de Grises para un Look de Startup de Datos */
    --white: #FFFFFF;
    --black: #121212;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-500: #6C757D;
    --gray-800: #212529;

    /* Sombras y Efectos */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Radios de Borde */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transiciones */
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s ease-out;
    --transition-slow: 0.6s ease-out;

    /* Layout */
    --max-width: 1280px;
    --section-padding: 6rem 2rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sofia Pro', sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--tim-brown);
    letter-spacing: -0.5px;
}

.login-button-header {
    background: var(--tim-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.login-button-header:hover {
    background: var(--tim-red-dark);
    box-shadow: var(--shadow-sm);
}

/* Main Content */
.main {
    padding-top: 70px;
}

/* Auth Alert */
.auth-alert {
    max-width: 900px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.3);
    color: var(--tim-red);
    box-shadow: var(--shadow-sm);
}

.auth-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.auth-alert-text {
    flex: 1;
}

.auth-alert i {
    width: 32px;
    height: 32px;
}

.auth-alert-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tim-red-dark);
    margin-bottom: 0.25rem;
}

.auth-alert-message {
    font-size: 0.95rem;
    color: var(--gray-800);
    line-height: 1.4;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
    background-color: var(--tim-red-dark);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--tim-red);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: var(--gray-100);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(-1px);
}

.login-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}


/* Value Proposition Section */
.value-section {
    padding: var(--section-padding);
    background-color: var(--gray-100);
}

.value-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: left;
    border: 1px solid transparent;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(200, 16, 46, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
    width: 28px;
    height: 28px;
    color: var(--white);
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: var(--tim-red);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.chart-container,
.feature-card {
    animation: fadeInUp var(--transition-slow) ease-out;
}

.feature-card:nth-child(even) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .logo {
        height: 32px;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero-container {
        padding: 3rem 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        max-width: 100%;
    }
    
    .login-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .chart-container {
        max-width: 100%;
        padding: 2rem;
    }
    
    .comparison-chart {
        gap: 1.5rem;
    }
    
    .metric-group {
        padding: 1.25rem;
    }
    
    .comparison-bar {
        height: 100px;
        gap: 1.5rem;
    }
    
    .bar {
        width: 50px;
        height: 80px;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .value-section {
        padding: 5rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .login-button {
        width: 100%;
        justify-content: center;
        padding: 1.25rem;
    }
    
    .comparison-bar {
        height: 80px;
        gap: 1rem;
        flex-direction: column;
    }
    
    .bar-group {
        flex-direction: row;
        gap: 1rem;
    }
    
    .bar {
        width: 40px;
        height: 60px;
    }
    
    .bar-value {
        font-size: 0.75rem;
        top: -25px;
    }
    
    .vs-separator {
        align-self: center;
        writing-mode: vertical-lr;
        transform: rotate(180deg);
    }
    
    .metric-header {
        justify-content: center;
    }
    
    .improvement-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .chart-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
    }
    
    .feature-icon i {
        width: 24px;
        height: 24px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.login-button:focus {
    outline: 2px solid var(--tim-red);
    outline-offset: 2px;
}

.feature-card:focus {
    outline: 2px solid var(--tim-red);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-100: #F0F0F0;
        --gray-200: #E0E0E0;
        --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.15);
        --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
    }
    
    .value-section {
        break-inside: avoid;
    }
}
.white-icon {
    color: white;
}
