html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fb;
}

/* ==================================
   NAVBAR
================================== */

.navbar {
    background: rgba(10,15,25,.92) !important;
    backdrop-filter: blur(12px);
    height: 85px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
}

    .navbar .container-fluid {
        padding-left: 25px;
        padding-right: 25px;
    }

.nav-logo {
    height: 60px;
    width: auto;
}

.nav-link {
    color: white !important;
    font-weight: 600;
    margin: 0 15px;
    transition: .3s;
}

    .nav-link:hover {
        color: #00d26a !important;
    }

.btn-login {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.4);
    padding: 12px 25px;
    border-radius: 14px;
    transition: .3s;
    font-weight: 600;
}

    .btn-login:hover {
        background: white;
        color: black;
    }

/* ==================================
   HERO
================================== */

.hero {
    min-height: 100vh;
    width: 100%;
    background: url('img/hero-cali.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 30px;
}

    .hero-content h1 {
        font-size: 6rem;
        font-weight: 900;
        line-height: 1;
        margin-bottom: 25px;
        text-shadow: 0 6px 25px rgba(0,0,0,.6);
    }

    .hero-content p {
        font-size: 1.5rem;
        max-width: 850px;
        margin: auto;
        margin-bottom: 50px;
        color: rgba(255,255,255,.95);
    }

/* ==================================
   BOTONES HERO
================================== */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-google,
.btn-facebook,
.btn-cali {
    padding: 18px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: .3s;
    font-size: 1rem;
}

.btn-google,
.btn-facebook {
    background: white;
    color: black;
}

    .btn-google:hover,
    .btn-facebook:hover {
        transform: translateY(-5px);
    }

.btn-cali {
    border: 2px solid white;
    background: transparent;
    color: white;
}

    .btn-cali:hover {
        background: white;
        color: black;
    }

.btn-google img,
.btn-facebook img {
    width: 24px;
    height: 24px;
}

/* ==================================
   ESTADISTICAS
================================== */

.stats-section {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    padding: 80px 40px;
    background: #ffffff;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.stat-card {
    width: 260px;
    background: white;
    padding: 35px 25px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: .3s;
}

    .stat-card:hover {
        transform: translateY(-8px);
    }

    .stat-card h2 {
        font-size: 4rem;
        font-weight: 900;
        color: #00b140;
        margin-bottom: 10px;
    }

    .stat-card p {
        margin: 0;
        font-size: 1.15rem;
        color: #555;
    }

/* ==================================
   SECCIONES
================================== */

.places-section,
.events-section,
.food-section,
.app-section {
    padding: 120px 8%;
}

.places-section {
    padding: 100px 8%;
    background: #f8fafc;
}

    .places-section h2 {
        text-align: center;
        font-size: 4rem;
        font-weight: 900;
        margin-bottom: 15px;
    }

    .places-section .subtitle {
        text-align: center;
        color: #666;
        font-size: 1.2rem;
        margin-bottom: 60px;
    }

/* ==================================
   LUGARES EXPANDIBLES
================================== */

.places-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.place-card {
    flex: 1;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
    transition: all .5s ease;
    min-height: 650px;
}

    .place-card.active {
        flex: 3;
    }

    .place-card img {
        width: 100%;
        height: 350px;
        object-fit: cover;
    }

.place-info {
    padding: 25px;
}

    .place-info h3 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .place-info p {
        color: #666;
        line-height: 1.8;
    }

.descripcion {
    display: none;
    margin-top: 20px;
}

.place-card.active .descripcion {
    display: block;
}

.btn-vermas {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    background: #00b140;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

    .btn-vermas:hover {
        background: #009c38;
    }

    

    .place-card h3 {
        padding: 25px 25px 10px;
        margin: 0;
        font-size: 2rem;
    }

    .place-card p {
        padding: 0 25px 25px;
        color: #666;
        line-height: 1.6;
    }

.btn-place {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 12px 25px;
    background: #00b140;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

/* ==================================
   COMIDA
================================== */

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px,1fr));
    gap: 35px;
}

.food-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

    .food-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .food-card h3 {
        padding: 25px;
    }

/* ==================================
   EVENTO
================================== */

.event-card {
    background: white;
    max-width: 900px;
    margin: auto;
    padding: 50px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

/* ==================================
   APP
================================== */

.app-section {
    background: #111827;
    color: white;
    text-align: center;
}

.app-buttons {
    margin-top: 30px;
}

    .app-buttons button {
        padding: 15px 35px;
        border: none;
        border-radius: 14px;
        margin: 10px;
        font-weight: 700;
        cursor: pointer;
    }

/* ==================================
   BOOTSTRAP FIX
================================== */

.container,
.container-fluid,
main {
    padding: 0 !important;
    max-width: 100% !important;
}

/* ==================================
   RESPONSIVE
================================== */

@media (max-width:768px) {

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .nav-logo {
        height: 45px;
    }

    .places-section h2,
    .events-section h2,
    .food-section h2,
    .app-section h2 {
        font-size: 2.5rem;
    }
}

.videos-section {
    padding: 100px 8%;
    text-align: center;
}

.video-container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

    .video-container iframe {
        display: block;
        border: none;
    }

.footer-cali {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.modal-lugar {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.modal-contenido {
    background: white;
    width: 90%;
    max-width: 1100px;
    border-radius: 25px;
    overflow: hidden;
    animation: zoom .3s ease;
}

    .modal-contenido img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }

.modal-info {
    padding: 35px;
}

    .modal-info h2 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .modal-info p {
        font-size: 1.2rem;
        line-height: 1.8;
    }

.cerrar {
    position: absolute;
    right: 40px;
    top: 20px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

@keyframes zoom {

    from {
        transform: scale(.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================================
   AJUSTES CALI VIVA
================================== */

.navbar-brand { padding: 0; }

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-sub {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.food-section { background: #ffffff; }

.food-card img { height: 340px; }
.food-card h3 { margin: 0; text-align: center; }

.events-section { background: #f8fafc; }
.event-card img { max-width: 260px; width: 100%; margin-bottom: 20px; }
.event-card p { font-size: 1.2rem; color: #555; line-height: 1.8; }

.app-section p { font-size: 1.2rem; color: rgba(255,255,255,.8); }
.app-buttons button { background: #00b140; color: white; transition: .3s; }
.app-buttons button:hover { background: #009c38; transform: translateY(-3px); }

.footer-cali h3 { font-weight: 900; margin-bottom: 10px; }
.footer-cali p { margin: 4px 0; color: rgba(255,255,255,.75); }

.place-card img { cursor: zoom-in; }
.place-card:not(.active) .place-info p:first-of-type { display: none; }

@media (max-width: 768px) {
    .section-title { font-size: 2.5rem; }
    .places-grid { flex-direction: column; }
    .place-card, .place-card.active { min-height: auto; flex: none; }
    .place-card img { height: 240px; }
    .stat-card { width: 100%; }
    .modal-contenido img { height: 260px; }
    .cerrar { right: 20px; top: 10px; }
}

/* ==================================
   SESION: MOSTRAR / OCULTAR
================================== */

.oculto { display: none !important; }

body.cargando main,
body.cargando footer { visibility: hidden; }

/* ==================================
   MENU DE USUARIO (NAVBAR)
================================== */

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    color: white;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    padding: 5px 16px 5px 5px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

    .user-btn:hover,
    .user-btn.show {
        background: rgba(255,255,255,.18);
        border-color: #00d26a;
    }

    .user-btn img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #00d26a;
    }

.user-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255,255,255,.8);
    margin-left: 2px;
    transition: .3s;
}

.user-btn.show .user-caret { transform: rotate(180deg); }

.user-dropdown {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 10px;
    min-width: 240px;
    margin-top: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.user-dropdown-head {
    padding: 8px 12px 4px;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

    .user-dropdown-head strong { color: white; }
    .user-dropdown-head small  { color: rgba(255,255,255,.6); word-break: break-all; }

.user-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

    .user-dropdown .dropdown-item:hover {
        background: rgba(0,210,106,.15);
        color: #00d26a;
    }

/* ==================================
   PAGINA: INICIAR SESION (PANEL)
================================== */



    .panel-hero-content img {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        object-fit: cover;
        border: 5px solid #00d26a;
        box-shadow: 0 10px 30px rgba(0,0,0,.5);
        margin-bottom: 25px;
    }

    .panel-hero-content h1 {
        font-size: 4.5rem;
        font-weight: 900;
        margin-bottom: 10px;
        text-shadow: 0 6px 25px rgba(0,0,0,.6);
    }

    .panel-hero-content p {
        font-size: 1.4rem;
        color: rgba(255,255,255,.95);
        margin: 0;
    }

    .cuenta-card h2 {
        font-weight: 900;
        text-align: center;
        margin-bottom: 30px;
    }

    .cuenta-fila span   { color: #777; }
    .cuenta-fila strong { text-align: right; word-break: break-all; }

.cuenta-card .btn-vermas {
    display: block;
    width: 100%;
    margin-top: 30px;
}

    .explora-card:hover { transform: translateY(-8px); color: white; }

    .explora-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .explora-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.05) 60%);
    }

    .explora-card span {
        position: absolute;
        left: 25px;
        bottom: 22px;
        z-index: 2;
        font-size: 1.8rem;
        font-weight: 800;
    }

@media (max-width: 768px) {
    .user-name { display: none; }

    .panel-hero-content h1 { font-size: 2.8rem; }
    .panel-hero-content p { font-size: 1.1rem; }
    .cuenta-section, .explora-section { padding: 60px 6%; }
}

/* ==================================
   QUIENES SOMOS
================================== */

.nosotros-section {
    position: relative;
    padding: 120px 8%;
    background: url('img/hero-cali.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

.nosotros-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.nosotros-content {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    margin: auto;
}

.nosotros-section .section-title {
    color: white;
    text-shadow: 0 6px 25px rgba(0,0,0,.6);
}

.nosotros-section .section-sub {
    color: rgba(255,255,255,.85);
}

.nosotros-devs-title {
    margin-top: 90px;
    margin-bottom: 50px;
}

/* Cajas de historia y objetivos */
.nosotros-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.nosotros-box {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 25px;
    padding: 40px 35px;
    text-align: center;
    transition: .3s;
}

.nosotros-box:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.15);
}

.nosotros-box h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #00d26a;
}

.nosotros-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,.9);
}

/* Tarjetas de desarrolladores */
.nosotros-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dev-card-cali {
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 25px;
    padding: 45px 25px 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: .35s;
}

.dev-card-cali:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,.16);
    box-shadow: 0 20px 45px rgba(0,0,0,.4);
    border-color: #00d26a;
}

.dev-avatar-cali {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b140, #00d26a);
    color: white;
    font-size: 2.2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 0 6px rgba(0,210,106,.25);
}

.dev-card-cali h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: white;
}

.dev-rol-cali {
    display: inline-block;
    background: rgba(0,210,106,.2);
    color: #00d26a;
    font-weight: 700;
    font-size: .9rem;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.dev-link-cali {
    width: 100%;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: .95rem;
    word-break: break-word;
    transition: .3s;
}

.dev-link-cali:hover {
    background: #00b140;
    border-color: #00b140;
    color: white;
}

@media (max-width: 768px) {
    .nosotros-section {
        padding: 90px 6%;
        background-attachment: scroll; /* el fondo fijo falla en celulares */
    }
    .nosotros-devs-title { margin-top: 60px; }
}

.hero .overlay {
    z-index: 1;
    pointer-events: none;   /* deja pasar los clics */
}

.hero .hero-content {
    position: relative;
    z-index: 2;
}

/* ==================================
   MENU MOVIL (hamburguesa)
================================== */

@media (max-width: 991.98px) {

    .navbar {
        height: 85px;
    }

    .navbar .container-fluid {
        height: 85px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Panel flotante a la derecha */
    .navbar-collapse {
        position: absolute;
        top: 95px;
        right: 15px;
        width: min(280px, calc(100vw - 30px));
        background: rgba(10,15,25,.97);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 20px;
        padding: 15px 20px 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,.5);
    }

    .navbar-nav {
        text-align: left;
    }

    .nav-link {
        margin: 0;
        padding: 12px 5px !important;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .btn-login {
        display: block;
        text-align: center;
        margin-top: 15px;
    }

    .user-menu {
        margin-top: 15px;
    }

    /* Botón de las rayitas */
    .navbar-toggler {
        border-color: rgba(255,255,255,.4);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0,210,106,.35);
    }
}

/* ==================================
   BIENVENIDA (MINIMALISTA)
================================== */

.bienvenida {
    position: relative;
    min-height: 100vh;
    background: url('img/hero-cali.jpg') center center no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.bienvenida .overlay {
    z-index: 1;
    pointer-events: none;
    background: rgba(10,15,25,.7);
}

.bienvenida-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

    .bienvenida-content h1 {
        font-size: clamp(3.5rem, 11vw, 9rem);
        font-weight: 900;
        line-height: 1;
        margin-bottom: 20px;
    }

    .bienvenida-content p {
        font-size: 1.3rem;
        color: rgba(255,255,255,.85);
        margin-bottom: 45px;
    }

.btn-seguir {
    display: inline-block;
    padding: 16px 48px;
    border-radius: 50px;
    background: #00b140;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: .3s;
}

    .btn-seguir:hover {
        background: #009c38;
        color: white;
        transform: translateY(-3px);
    }

/* ==================================
   BENEFICIOS
================================== */

.miembro-section {
    padding: 110px 8%;
    background: #f8fafc;
    scroll-margin-top: 85px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}

.beneficio-card {
    background: white;
    border: 1px solid #e5e9f0;
    border-radius: 20px;
    padding: 35px 28px;
    scroll-margin-top: 100px;
    transition: .3s;
}

    .beneficio-card:hover {
        border-color: #00b140;
        transform: translateY(-6px);
    }

    .beneficio-card h3 {
        font-size: 1.4rem;
        font-weight: 800;
        margin: 22px 0 8px;
    }

    .beneficio-card p {
        margin: 0;
        color: #666;
        line-height: 1.6;
    }

.beneficio-icono {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0,177,64,.1);
    color: #00b140;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .beneficio-icono svg { width: 28px; height: 28px; }

@media (max-width: 768px) {
    .miembro-section { padding: 70px 6%; }
    .bienvenida-content p { font-size: 1.1rem; }
}