@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-gray: #f4f4f4;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --border-color: #e5e5e5;
    --brand-color: #111; /* Default brand color fallback */
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Secciones Generales */
section {
    padding: 100px 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 60px;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.collab-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
}

.instructor-link {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructor-link::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background-color: var(--medium-gray);
    transition: width 0.3s ease;
}

.instructor-link:hover {
    color: var(--text-color);
}

.instructor-link:hover::before {
    width: 30px;
    background-color: var(--text-color);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--dark-gray);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* Iconos de Redes Sociales */
.social-icons-container {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--medium-gray);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    position: relative;
    z-index: 2;
    transition: fill 0.3s ease;
}

.social-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-color);
    z-index: 1;
    transform: translateY(110%);
    border-radius: 50% 50% 0 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    border-color: transparent;
}

.social-icon:hover svg {
    fill: #ffffff;
}

.social-icon:hover::before {
    transform: translateY(0%);
    border-radius: 0;
}

.social-icon.github { --brand-color: #24292e; }
.social-icon.instagram { --brand-color: #E1306C; }
.social-icon.facebook { --brand-color: #1877F2; }
.social-icon.linkedin { --brand-color: #0A66C2; }

/* Grid y Tarjetas */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: var(--accent-gray);
    padding: 40px;
    border-radius: 4px;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 5%;
}

/* Sección Reality Check */
.reality-check {
    background: var(--text-color);
    color: var(--bg-color);
}

.reality-check h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.reality-check p {
    color: #cccccc;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.stat-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.example-box {
    border-left: 2px solid #fff;
    padding-left: 20px;
    margin-top: 20px;
}

/* Sección de Comentarios Bloqueada */
.comments-section {
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
}

.comments-content {
    filter: blur(5px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.comment-card {
    background: var(--accent-gray);
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-text h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.locked-message-box {
    background: var(--text-color);
    color: var(--bg-color);
    padding: 30px 50px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 90%;
}

.locked-message-box svg {
    width: 32px;
    height: 32px;
    fill: var(--bg-color);
    margin-bottom: 15px;
}

.locked-message-box p {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

/* Contador */
.countdown-container {
    text-align: center;
    padding: 100px 0;
    background: var(--accent-gray);
}

.countdown-title {
    margin-bottom: 40px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    font-feature-settings: "tnum";
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit-label {
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 10px;
    color: var(--dark-gray);
    text-transform: uppercase;
}

footer {
    padding: 50px 5%;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero {
         align-items: center;
         text-align: center;
    }
    .badges-container {
        justify-content: center;
    }
    .social-icons-container {
        justify-content: center;
    }
}


