/* ============================= */
/* BASE */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #071f16;
    color: #ffffff;
}

/* ============================= */
/* HEADER */
/* ============================= */

.site-header {
    background: rgba(5, 21, 15, 0.86);
    border-bottom: 1px solid rgba(10, 255, 157, 0.25);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
}

.header-container {
    width: 92%;
    max-width: 1200px;
    height: 50px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo,
.logo-link {
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-link {
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.logo-text span {
    color: #0aff9d;
}

.main-nav {
    display: flex;
    gap: 18px;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.main-nav a:hover {
    color: #0aff9d;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-publicar {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-login {
    color: #0aff9d;
    border: 1px solid rgba(10, 255, 157, 0.45);
}

.btn-publicar {
    background: #0aff9d;
    color: #05150f;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero-premium {
    position: relative;
    padding: 80px 20px;
    background:
        radial-gradient(circle at top, rgba(10, 255, 157, 0.15), transparent 35%),
        linear-gradient(180deg, #082418 0%, #071f16 100%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(10, 255, 157, 0.22), transparent 70%);
    filter: blur(90px);
    z-index: 0;
}

.hero-content-premium {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(10, 255, 157, 0.35);
    background: rgba(5, 21, 15, 0.55);
    color: #0aff9d;
    font-size: 12px;
    font-weight: 700;
}

.hero-content-premium h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.hero-content-premium p {
    max-width: 720px;
    margin: 0 auto 34px;
    color: #b7d8c8;
    font-size: 17px;
    line-height: 1.5;
}

/* ============================= */
/* HERO SEARCH */
/* ============================= */

.hero-search-card {
    max-width: 780px;
    margin: 0 auto 26px;
    padding: 12px;
    display: flex;
    gap: 12px;
    border-radius: 18px;
    background: rgba(5, 21, 15, 0.88);
    border: 1px solid rgba(10, 255, 157, 0.22);
}

.hero-search-card input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(10, 255, 157, 0.14);
    background: #061a12;
    color: #ffffff;
    outline: none;
}

.hero-search-btn {
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    background: #0aff9d;
    color: #05150f;
    font-weight: 800;
    cursor: pointer;
}

/* ============================= */
/* HERO BUTTONS */
/* ============================= */

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero {
    min-width: 170px;
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.btn-hero-primary {
    background: #0aff9d;
    color: #05150f;
}

.btn-hero-outline {
    background: rgba(5, 21, 15, 0.65);
    color: #ffffff;
    border: 1px solid rgba(10, 255, 157, 0.35);
}

/* ============================= */
/* BUSCADOR PRINCIPAL */
/* ============================= */

.buscador-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, #09291d, #071f16);
}

.buscador-header {
    text-align: center;
    margin-bottom: 25px;
}

.buscador-header h2 {
    color: #0aff9d;
    margin-bottom: 8px;
}

.buscador-header p {
    color: #b7d8c8;
}

.buscador-box {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    border-radius: 14px;
    background: rgba(5, 21, 15, 0.7);
    border: 1px solid rgba(10, 255, 157, 0.15);
}

.buscador-box input,
.buscador-box select {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #05150f;
    color: #ffffff;
}

.buscador-box button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

#btnBuscar {
    background: #0aff9d;
    color: #05150f;
}

.btn-ubicacion {
    background: transparent;
    color: #0aff9d;
    border: 1px solid #0aff9d !important;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.section {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    padding: 42px 0;
}

.section h2 {
    color: #0aff9d;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title-row p {
    margin-top: 6px;
    color: #b7d8c8;
}

.section-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: rgba(10, 255, 157, 0.15);
    color: #0aff9d;
    font-weight: 800;
    cursor: pointer;
}

.section-btn:hover {
    background: rgba(10, 255, 157, 0.25);
}

/* ============================= */
/* CARRUSEL NETFLIX */
/* ============================= */

.carousel-wrapper,
.carousel-shell {
    position: relative;
    width: 100%;
    overflow: visible;
}

.cards-carousel {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px 60px 22px;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cards-carousel.dragging,
.cards-carousel:active {
    cursor: grabbing;
}

.cards-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-shadow {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.carousel-shadow.left {
    left: 0;
    background: linear-gradient(
        to right,
        #071f16 0%,
        rgba(7, 31, 22, 0.92) 35%,
        transparent 100%
    );
}

.carousel-shadow.right {
    right: 0;
    background: linear-gradient(
        to left,
        #071f16 0%,
        rgba(7, 31, 22, 0.92) 35%,
        transparent 100%
    );
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(10, 255, 157, 0.28);
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 34px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0.92;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        opacity 0.22s ease;
}

.carousel-btn:hover {
    background: #0aff9d;
    color: #05150f;
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.94);
}

.carousel-btn.left,
.carousel-prev {
    left: 12px;
}

.carousel-btn.right,
.carousel-next {
    right: 12px;
}

/* ============================= */
/* CARDS NETFLIX */
/* ============================= */

.premium-card {
    flex: 0 0 240px;
    width: 240px;
    height: 330px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(5, 21, 15, 0.9);
    border: 1px solid rgba(10, 255, 157, 0.16);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: scale(1.045);
    border-color: rgba(10, 255, 157, 0.5);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.36);
}

.premium-card:active {
    transform: scale(0.98);
}

.card-image {
    position: relative;
    width: 100%;
    height: 116px;
    flex: 0 0 116px;
    overflow: hidden;
    background: #05150f;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.premium-card:hover .card-image img {
    transform: scale(1.08);
}

.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: #0aff9d;
    color: #05150f;
}

.badge-destacado,
.badge-oferta {
    background: #0aff9d;
    color: #05150f;
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.25;
    min-height: 38px;
}

.card-body p {
    margin-bottom: 10px;
    color: #b7d8c8;
    font-size: 13px;
    line-height: 1.35;
    min-height: 52px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: #8fb7a5;
    font-size: 11px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(10, 255, 157, 0.12);
}

.card-btn {
    width: 100%;
    margin-top: auto;
    padding: 9px 12px;
    border-radius: 10px;
    border: none;
    background: #0aff9d;
    color: #05150f;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

/* ============================= */
/* MAPA */
/* ============================= */

.mapa-section {
    padding-top: 42px;
}

.mapa-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 22px;
}

.mapa-box {
    height: 360px;
    border-radius: 16px;
    border: 1px solid #0aff9d;
    overflow: hidden;
}

/* ============================= */
/* NEGOCIO PERFIL */
/* ============================= */

.negocio-perfil {
    padding-top: 30px;
}

.negocio-header h1 {
    font-size: 32px;
    margin: 10px 0;
}

.negocio-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.negocio-main,
.negocio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.negocio-card-box {
    padding: 20px;
    border-radius: 14px;
    background: #0b2b20;
    border: 1px solid #145c42;
}

.negocio-card-box h2 {
    margin-bottom: 10px;
    color: #0aff9d;
}

.negocio-cover-placeholder {
    height: 200px;
    border-radius: 12px;
    background: #05150f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0aff9d;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #05150f;
    border: 1px solid #0aff9d;
    font-size: 13px;
}

.negocio-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.card-link,
.section-link {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
}

.card-link {
    background: #0aff9d;
    color: #05150f;
}

.section-link {
    border: 1px solid #0aff9d;
    color: #0aff9d;
}

.oferta-mini {
    background: #05150f;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.site-footer {
    margin-top: 50px;
    background: #05150f;
    border-top: 1px solid rgba(10, 255, 157, 0.18);
}

.footer-container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
    padding: 38px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.footer-brand h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 24px;
}

.footer-brand h3 span {
    color: #0aff9d;
}

.footer-brand p {
    color: #b7d8c8;
    line-height: 1.5;
    max-width: 420px;
}

.footer-links h4 {
    color: #0aff9d;
    margin-bottom: 12px;
}

.footer-btn {
    display: block;
    background: transparent;
    border: none;
    color: #b7d8c8;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 14px;
    text-align: left;
}

.footer-btn:hover {
    color: #0aff9d;
}

.footer-bottom {
    border-top: 1px solid rgba(10, 255, 157, 0.12);
    text-align: center;
    padding: 16px;
    color: #8fb7a5;
    font-size: 13px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
    .header-container {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .buscador-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .mapa-layout,
    .negocio-layout {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-premium {
        padding: 60px 16px;
    }

    .hero-search-card {
        flex-direction: column;
    }

    .hero-search-btn,
    .btn-hero {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .buscador-box {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-btn {
        display: none;
    }

    .premium-card {
        flex: 0 0 230px;
        width: 230px;
        height: 320px;
    }

    .card-image {
        height: 108px;
        flex: 0 0 108px;
    }
}