/* Liberty Dreams — apps landing
 * Static stylesheet, no build step. CSS variables extracted from
 * libertydreams.co.uk's Elementor palette (consistency with main brand).
 */

:root {
    --blue: #003399;       /* LD primary, used in buttons, accents */
    --blue-light: #2e86c1;
    --blue-dark: #0e2f44;
    --blue-50: #e6ebf5;   /* tint for soft backgrounds */
    --green: #27ae60;
    --orange: #e67e22;
    --red: #c0392b;
    --text: #1c2833;
    --text-muted: #5d6d7e;
    --bg: #ffffff;
    --bg-alt: #f7f9fb;
    --border: #e5e9ed;
    --max-width: 1100px;
    --header-h: 64px;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* === Header === */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.site-header .header-left,
.site-header .header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 6px;
    transition: background 0.15s;
}
.logo-link:hover { background: var(--blue-50); }
.logo-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.logo-link .logo-back-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}
.logo-link:hover .logo-back-arrow { color: var(--blue); }
.logo { height: 32px; width: auto; display: block; }
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.lang-link:hover { color: var(--blue); }
.lang-link.active {
    color: var(--blue);
    font-weight: 600;
}
.lang-sep { color: var(--border); }

/* === Hero CTA buttons (inside hero, prominent) === */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.hero-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s,
                transform 0.1s, box-shadow 0.15s;
    border: 2px solid var(--blue);
}
.hero-cta a[href^="#web-apps"],
.hero-cta a[href^="#android-apps"] {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 51, 153, 0.18);
}
.hero-cta a[href^="#web-apps"]:hover,
.hero-cta a[href^="#web-apps"]:focus-visible,
.hero-cta a[href^="#android-apps"]:hover,
.hero-cta a[href^="#android-apps"]:focus-visible {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.28);
    outline: none;
}
.hero-cta a:focus-visible {
    box-shadow: 0 0 0 3px var(--blue-50), 0 4px 12px rgba(0, 51, 153, 0.28);
}
/* About / Sobre nosotros — secondary CTA */
.hero-cta a[data-variant="secondary"] {
    background: var(--bg);
    color: var(--blue);
    border-color: var(--blue);
}
.hero-cta a[data-variant="secondary"]:hover,
.hero-cta a[data-variant="secondary"]:focus-visible {
    background: var(--blue-50);
    color: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* === Hero === */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--bg) 100%);
    text-align: left;
}

.hero-eyebrow {
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--blue-dark);
    margin: 0 0 1rem;
    max-width: 820px;
    letter-spacing: -0.02em;
}

.hero-lede {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 700px;
}

/* === Sections === */
.apps-section {
    padding: 3rem 0;
}
.apps-section-android {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1.5rem;
}

/* === App grid === */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.app-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.app-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(0, 51, 153, 0.15);
    transform: translateY(-2px);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.app-icon {
    font-size: 1.85rem;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

.app-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--blue);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    align-self: flex-start;
}

.app-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0;
    line-height: 1.25;
}

.app-desc {
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    flex-grow: 1;
}

.app-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0 0 1rem;
}

.app-cta {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}
.app-cta:hover {
    border-bottom-color: var(--blue);
}

/* === Google Play badge === */
.play-badge-link {
    display: inline-block;
    margin-top: 0.5rem;
    transition: opacity 0.15s;
    max-width: 100%;
}
.play-badge-link:hover { opacity: 0.85; }
.play-badge {
    height: 48px;
    width: auto;
    max-width: 100%;
    display: block;
}
.app-card-android {
    align-items: stretch;
}

.coming-soon {
    color: var(--text-muted);
    font-style: italic;
    margin: 1.5rem 0 0;
}

/* === About === */
.about-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}
.about-text {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0;
}

/* === Footer === */
.site-footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}
.site-footer a:hover { color: #ffffff; }
.footer-meta {
    margin: 0.5rem 0 0;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* === Cookie banner (Complianz-aware fallback) === */
.sc-cookie-fallback {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: #1a1a2e;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.sc-cookie-fallback .sc-cookie-text {
    flex: 1 1 320px;
    max-width: 720px;
}
.sc-cookie-fallback .sc-cookie-text a {
    color: #6cb4ff;
    text-decoration: underline;
    margin-left: 4px;
}
.sc-cookie-fallback button {
    background: #4CAF50;
    color: #fff;
    border: 0;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}
.sc-cookie-fallback button:hover { background: #45a049; }
.sc-cookie-fallback button.sc-reject {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}
.sc-cookie-fallback button.sc-reject:hover { background: rgba(255, 255, 255, 0.1); }
.sc-cookie-fallback .sc-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.sc-cookie-fallback.hidden { display: none; }

/* === Mobile === */
@media (max-width: 768px) {
    .site-header .container { flex-wrap: wrap; }
    .section-nav { top: var(--header-h); }
}
@media (max-width: 640px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-lede { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta a { justify-content: center; }
    .apps-section { padding: 2rem 0; }
    .app-grid { grid-template-columns: 1fr; }
    .app-icon { font-size: 1.5rem; }
    .app-title { font-size: 1.15rem; }
    .sc-cookie-fallback { font-size: 0.8rem; padding: 12px 16px; }
    .play-badge { height: 40px; }
}