/* ===== Variables y base ===== */
:root {
    --green: #25d366;
    --green-dark: #128c4b;
    --green-darker: #075e54;
    --ink: #1c2b26;
    --ink-soft: #4a5a54;
    --bg: #f4faf6;
    --card: #ffffff;
    --border: #dcebe2;
    --info-bg: #e8f8ee;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(7, 94, 84, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: min(960px, 92%);
    margin: 0 auto;
}

main.container {
    flex: 1;
    padding: 2.5rem 0 3.5rem;
}

a {
    color: var(--green-dark);
}

/* ===== Cabecera ===== */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-darker);
}

.site-nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
    background: var(--info-bg);
    color: var(--green-darker);
}

.nav-link.active {
    background: var(--green);
    color: #fff;
}

/* ===== Tipografía y secciones ===== */
h1 {
    font-size: 2rem;
    color: var(--green-darker);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.3rem;
    color: var(--green-darker);
    margin: 2rem 0 0.6rem;
}

p + p {
    margin-top: 0.8rem;
}

ul, ol {
    padding-left: 1.4rem;
    margin: 0.6rem 0;
}

.muted {
    color: var(--ink-soft);
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.6rem;
}

/* ===== Página de inicio ===== */
.hero {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem 0 3rem;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 320px;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-text .lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin: 1rem 0 1.8rem;
}

.hero-icon {
    width: 180px;
    height: 180px;
    border-radius: 36px;
    box-shadow: var(--shadow);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.feature h3 {
    color: var(--green-darker);
    margin-bottom: 0.4rem;
}

/* ===== Botones ===== */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.8rem 1.6rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.1s, box-shadow 0.15s;
}

.btn-primary {
    background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(18, 140, 75, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(18, 140, 75, 0.45);
}

.btn-secondary {
    background: var(--info-bg);
    color: var(--green-darker);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #d9f3e4;
}

/* ===== Página de descarga ===== */
.notice {
    background: var(--info-bg);
    border-left: 5px solid var(--green);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin: 1.2rem 0 1.6rem;
}

.share-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.share-row input {
    flex: 1 1 280px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-soft);
}

.share-row input:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
}

.qr-box {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-top: 0.8rem;
}

.qr-box img {
    display: block;
    width: 200px;
    height: 200px;
}

.copy-feedback {
    color: var(--green-dark);
    font-weight: 600;
    margin-left: 0.4rem;
}

/* ===== Páginas legales ===== */
.legal h2 {
    margin-top: 1.8rem;
}

.legal .updated {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ===== Pie de página ===== */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--green-darker);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-icon {
        width: 130px;
        height: 130px;
        border-radius: 26px;
    }
}
