/* ========================================
   PROPERTY SCRAPER — LANDING PAGE STYLES
   ======================================== */

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2128;
    --border: #21262d;
    --text-primary: #ffffff;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;
    --accent: #E8505B;
    --accent-hover: #c93e48;
    --accent-light: rgba(232, 80, 91, 0.15);
    --green: #3fb950;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.nav__icon {
    font-size: 1.4rem;
}

.nav__icon-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__cta {
    background: var(--accent);
    color: var(--text-primary) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.2s !important;
}

.nav__cta:hover {
    background: var(--accent-hover);
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 40px 80px;
    gap: 60px;
    background: linear-gradient(rgba(13, 17, 23, 0.75), rgba(13, 17, 23, 0.88)), url('../assets/img/fondoHero.jpg') center/cover no-repeat;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
}

.hero__content {
    flex: 1;
    max-width: 560px;
}

.hero__badge {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero__screenshot {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: var(--text-primary);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn--secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* MOCKUP */
.mockup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}

.mockup__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.mockup__dot:first-child { background: #ff5f57; }
.mockup__dot:nth-child(2) { background: #ffbd2e; }
.mockup__dot:nth-child(3) { background: #28c840; }

.mockup__title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup__body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 24px;
    min-width: 340px;
}

.mockup__badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.mockup__btn {
    background: var(--accent);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.mockup__card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}

.mockup__card-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.mockup__card-price {
    font-size: 1rem;
    color: var(--green);
    font-weight: 700;
    margin-bottom: 6px;
}

.mockup__card-details {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mockup__exports {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.mockup__export {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* SECTIONS */
section {
    padding: 100px 40px;
}

.section__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 12px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* Extra padding for titles */
.how .section__title,
.features .section__title,
.privacy .section__title {
    margin-bottom: 56px;
}

/* PORTALS */
.portals {
    background: var(--bg-secondary);
}

.portals__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.portal__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.portal__card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(232, 80, 91, 0.15);
}

.portal__card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.portal__tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* HOW */
.how__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.how__step {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
}

.how__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.how__step h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.how__step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FEATURES */
.features {
    background: var(--bg-secondary);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: transform 0.2s;
}

.feature__card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(232, 80, 91, 0.15);
}

.feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature__card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature__card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SCREENSHOTS */
.screenshots__wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.screenshots__img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* PRIVACY */
.privacy {
    background: var(--bg-secondary);
}

.privacy__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.privacy__item {
    display: flex;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.privacy__icon {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy__item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.privacy__item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.privacy__link {
    display: block;
    text-align: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.privacy__link:hover {
    text-decoration: underline;
}

/* DOWNLOAD */
.download {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.download h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.download p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.download__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 40px 32px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 32px;
}

.footer__brand span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__icon-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav {
        padding: 14px 20px;
    }

    .nav__links {
        gap: 16px;
    }

    .nav__links a:not(.nav__cta) {
        display: none;
    }

    .hero {
        flex-direction: column;
        padding: 120px 20px 60px;
        text-align: center;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        margin: 0 auto 32px;
    }

    .hero__ctas {
        justify-content: center;
    }

    section {
        padding: 60px 20px;
    }

    .section__title {
        font-size: 1.7rem;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        justify-content: center;
    }
}
