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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #eef5f1;
    color: #1f2d28;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 640px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 90, 60, 0.08);
    border-top: 6px solid #2e9c6e;
}

h1 {
    color: #1c7a4f;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    overflow-wrap: break-word;
}

.description p {
    margin-bottom: 20px;
    line-height: 1.6;
}

h2 {
    color: #1c7a4f;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

ol {
    margin: 0 0 20px 20px;
    line-height: 1.8;
}

/* Pasos de uso */

.steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    counter-reset: paso;
}

.steps li {
    position: relative;
    counter-increment: paso;
    padding: 4px 0 18px 52px;
    line-height: 1.6;
}

.steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1c7a4f;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    line-height: 34px;
}

/* Línea que une cada paso con el siguiente */
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 38px;
    bottom: 4px;
    width: 2px;
    background: #cfe6da;
}

.highlight {
    background: #e4f5ec;
    border-left: 4px solid #2e9c6e;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #235c42;
    margin-bottom: 24px;
}

/* Aviso de ayuda: mismo bloque que .highlight, en tono ámbar para distinguirlo */

.highlight-aviso {
    background: #fff6e0;
    border-left-color: #e0a31a;
    color: #6b4a07;
}

.highlight-aviso p {
    margin: 8px 0 0;
}

.highlight-aviso ol {
    margin: 8px 0 12px 20px;
}

code {
    background: #dcefe4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.video-demo {
    margin-bottom: 24px;
    text-align: center;
}

.video-demo video {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #cfe6da;
}

.screenshot {
    margin-bottom: 24px;
    text-align: center;
}

.screenshot img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #cfe6da;
}

/* Hero */

.hero {
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #dcefe4;
}

.hero h1 {
    font-size: 2.6rem;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.lead {
    max-width: 46ch;
    margin: 0 auto 28px;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #355a49;
}

.file-info {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 14px;
    font-size: 0.9rem;
    color: #355a49;
}

.file-info span + span {
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid #cfe6da;
}

.download-counter {
    text-align: center;
    color: #235c42;
    font-size: 0.95rem;
    margin: 8px 0 0;
}

.download-counter strong {
    font-size: 1.4rem;
    color: #1c7a4f;
}

.download-btn {
    display: inline-block;
    text-align: center;
    background: #1c7a4f;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 16px 40px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.download-btn:hover {
    background: #165f3d;
}

.download-btn:focus-visible {
    outline: 3px solid #1c7a4f;
    outline-offset: 3px;
}

/* Páginas de resultado (éxito / error) */

.status-card {
    text-align: center;
}
 
.status-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: #ffffff;
}
 
.status-success .status-icon {
    background: #2e9c6e;
}
 
.status-success {
    border-top-color: #2e9c6e;
}
 
.status-error .status-icon {
    background: #c0392b;
}
 
.status-error {
    border-top-color: #c0392b;
}
 
.status-text {
    margin-bottom: 24px;
    line-height: 1.6;
}
 
.status-text a {
    color: #1c7a4f;
    font-weight: 600;
}
 
.status-error .status-text a {
    color: #c0392b;
}

@media (max-width: 480px) {
    .card {
        padding: 24px;
    }

    h1,
    .hero h1 {
        font-size: 1.9rem;
    }

    .download-btn {
        display: block;
        padding: 16px 0;
    }
}

/* Lightbox de la captura */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 999;
    cursor: zoom-out;
}

#lightbox.activo {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.screenshot-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 8px;
    cursor: zoom-in;
}

.screenshot-btn:focus-visible {
    outline: 3px solid #1c7a4f;
    outline-offset: 3px;
}

/* Accesibilidad */

a:focus-visible {
    outline: 3px solid #1c7a4f;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}