/* main.css – estilo general, moderno y limpio */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050816;
    color: #f9fafb;
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(5,8,22,0.95), rgba(5,8,22,0.5), transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 5vw;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.logo-main {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.logo-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.6);
    color: #60a5fa;
}

.main-nav {
    display: flex;
    gap: 1.25rem;
}

.main-nav a {
    font-size: 0.9rem;
    color: #e5e7eb;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: #60a5fa;
    border-color: rgba(56, 189, 248, 0.7);
}

/* Layout general */

main {
    padding: 0 5vw 4rem;
}

.section {
    padding: 4rem 0;
}

.section-header {
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.section-header p {
    margin: 0;
    color: #9ca3af;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 70px);
}

.hero-text {
    max-width: 540px;
}

.hero-kicker {
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.hero-text h1 span {
    color: #38bdf8;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    color: #9ca3af;
    max-width: 34rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #38bdf8, #6366f1);
    border: none;
    color: #f9fafb;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 25px 45px rgba(37, 99, 235, 0.5);
}

.hero-media {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.95));
    border-radius: 24px;
    padding: 1.8rem;
    max-width: 360px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.7);
}

.hero-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.hero-card p {
    margin: 0 0 0.75rem;
    color: #e5e7eb;
}

.hero-location {
    font-size: 0.85rem;
    color: #cbd5f5;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.8);
    color: #bbf7d0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.7rem;
}

/* Projects grid */

.projects-section {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(31, 41, 55, 0.9);
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transform: translateY(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.7);
    border-color: rgba(56, 189, 248, 0.5);
}

.project-image {
    padding-top: 58%;
    background-size: cover;
    background-position: center;
}

.project-content {
    padding: 1.2rem 1.4rem 1.4rem;
}

.project-content h3 {
    margin: 0 0 0.25rem;
}

.project-location {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.project-desc {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.05rem;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.link:hover {
    border-color: rgba(56, 189, 248, 0.7);
    transform: translateY(-1px);
}

/* Steps */

.steps-section {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.step-card {
    border-radius: 18px;
    padding: 1.4rem 1.3rem 1.5rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 1));
    border: 1px solid rgba(55, 65, 81, 1);
}

.step-number {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    margin: 0 0 0.4rem;
}

.step-card p {
    margin: 0;
    color: #e5e7eb;
    font-size: 0.9rem;
}

/* Project page */

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.project-hero-media {
    display: flex;
    justify-content: flex-end;
}

.project-hero-image {
    width: 100%;
    max-width: 420px;
    padding-top: 70%;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.8);
}

.project-description {
    color: #e5e7eb;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.media-card {
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(31, 41, 55, 1);
    display: flex;
    flex-direction: column;
}

.media-thumb {
    padding-top: 56%;
    background-size: cover;
    background-position: center;
}

.media-content {
    padding: 1rem 1.1rem 1.1rem;
}

.media-content h3 {
    margin: 0 0 0.35rem;
}

.media-type-label {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Lots */

.lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.lot-card {
    border-radius: 16px;
    padding: 1.1rem 1.1rem 1.2rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(55, 65, 81, 1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lot-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lot-card h3 {
    margin: 0;
}

.lot-card .lot-desc {
    margin: 0.1rem 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.lot-meta {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: #cbd5f5;
}

.lot-card--disabled {
    opacity: 0.65;
}

.badge {
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.status-disponible {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.status-reservado {
    background: rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

.status-vendido {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

/* Lot 360 */

.lot-hero-text h1 {
    margin-bottom: 0.5rem;
}

.lot-360-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1.4fr);
    gap: 2rem;
    align-items: stretch;
}

.lot-360-main {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
}

#viewer-360 {
    width: 100%;
    height: 420px;
}

.viewer-360-empty {
    padding: 2rem;
}

.lot-360-sidebar {
    border-radius: 20px;
    border: 1px solid rgba(55, 65, 81, 1);
    padding: 1.4rem 1.4rem 1.6rem;
    background: radial-gradient(circle at top, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 1));
}

.lot-360-sidebar h2 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.lot-360-sidebar p {
    margin-top: 0;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.panorama-list {
    margin-top: 1.2rem;
}

.panorama-list h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}

.panorama-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #cbd5f5;
}

.panorama-list li::before {
    content: "• ";
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding: 1.5rem 5vw 2rem;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

/* Utilidades */

.link--muted {
    color: #9ca3af;
}

/* Responsive */

@media (max-width: 900px) {
    .hero,
    .project-hero,
    .lot-360-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-media,
    .project-hero-media {
        justify-content: flex-start;
    }

    .main-nav {
        gap: 0.8rem;
        font-size: 0.85rem;
    }

    #viewer-360 {
        height: 320px;
    }
}

@media (max-width: 640px) {
    main {
        padding: 0 1.25rem 3rem;
    }

    .site-header {
        padding: 0.6rem 1.25rem;
    }

    .hero {
        gap: 2rem;
    }

    .projects-grid,
    .media-grid,
    .lots-grid,
    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
