/* ==============================
   RESET BÁSICO
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================
   BODY
================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

/* ==============================
   NAVBAR
================================ */
.navbar {
    background-color: #1f252a !important;
}

.navbar-brand {
    white-space: nowrap;
}


.navbar-brand img {
    height: 60px;
}

.nav-link {
    color: #cfd4da !important;
}

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

/* ==============================
   HERO SECTION
================================ */
.hero {
    height: 100vh; /* 🔥 ocupa toda la pantalla */

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Capa oscura sobre la imagen */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/* Contenido del hero */
.hero .container {
    position: relative;
    z-index: 2;
}

/* Texto del hero */
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* ==============================
   FOOTER
============================== */
.footer {
    background-color: #1f252a;
    color: #cfd4da;
}

.footer-text {
    font-size: 0.9rem;
    margin: 0;
}

/* Contenedor de iconos */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Iconos */
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

/* Colores */
.social-icon.whatsapp {
    background-color: #25d366;
}

.social-icon.facebook {
    background-color: #1877f2;
}

.social-icon.x {
    background-color: #000000;
}


/* ==============================
   NAVBAR MEJORADO
================================ */
.navbar {
    background-color: #1f252a;
}

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-link {
    color: #cfd4da !important;
    margin-left: 8px;
}

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

/* Botón login */
.nav-link.btn {
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Dropdown usuario */
.dropdown-menu {
    background-color: #2a3036;
    border: none;
}

.dropdown-item {
    color: #ffffff;
}

.dropdown-item:hover {
    background-color: #3a4046;
}

/* Mobile */
@media (max-width: 991px) {
    .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }

    .nav-link.btn {
        width: 100%;
        text-align: center;
    }
}

/* ==============================
   DETALLE NEGOCIO
============================== */
.carousel-img {
    height: 500px;
    object-fit: cover;
}

/* En pantallas grandes (PC) */
@media (min-width: 992px) {
    .carousel-img {
        height: 500px;
    }
}


.contacto-card {
    border-radius: 12px;
}

.gallery-img {
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* BOTONES REDES */
.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-social:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.btn-social.whatsapp {
    background-color: #25d366;
}

.btn-social.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.btn-social.facebook {
    background-color: #1877f2;
}

.btn-social.web {
    background-color: #333;
}

/* ==============================
   LOGIN
============================== */
.dropdown-item:hover {
    background-color: #f1f1f1;
}

.login-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 15px;
    background-color: #ffffff;
}

.login-card h2 {
    color: #1f252a;
}

/* Inputs */
.login-card input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-card input:focus {
    border-color: #1f252a;
    box-shadow: 0 0 0 0.15rem rgba(31, 37, 42, 0.25);
    outline: none;
}

/* Botón personalizado */
.btn-login {
    background-color: #1f252a;
    color: #ffffff;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background-color: #343a40;
    transform: translateY(-2px);
}

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

.navbar-logo {
    height: 38px;
}

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

.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* oscurece imagen */
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.search-box {
    max-width: 600px;
}

.search-box .form-control {
    border-radius: 50px 0 0 50px;
    padding: 12px 20px;
    border: none;
}

.btn-search {
    border-radius: 0 50px 50px 0;
    padding: 0 25px;
    background-color: #8B1E3F;
    color: #fff;
    border: none;
}

.btn-search:hover {
    background-color: #6e1732;
}

/* ==============================
   NAVBAR MOBILE OVERLAY
============================== */

@media (max-width: 991.98px) {

    .navbar {
        position: relative;
        z-index: 1000;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }

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

    .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 1.1rem;
    }
}

.search-box {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.result-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.result-item:hover {
    background-color: #f5f5f5;
}

.social-buttons {
    display: flex;
    justify-content: center; /* centra horizontalmente */
    gap: 15px; /* espacio entre botones */
    flex-wrap: wrap; /* por si en móvil se bajan */
}


/* ============================= */
/* FORMULARIO CREAR USUARIO */
/* ============================= */

.usuario-card {
    border: none;
    border-radius: 15px;
}

.usuario-titulo {
    font-weight: 700;
    color: #333;
}

.form-control {
    border-radius: 10px;
    padding: 10px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-principal {
    background-color: #0d6efd;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-principal:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* ================= NAVBAR DESKTOP FIX ================= */

@media (min-width: 992px) {

    .navbar-nav .nav-link {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.95rem;
    }

    .navbar-brand span {
        font-size: 1.1rem;
    }

    .dropdown-menu {
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
}


/* ================= CONTACTO ================= */

.contacto-card {
    border: none;
    border-radius: 15px;
}

.contacto-titulo {
    font-weight: 700;
    color: #333;
}

.form-control {
    border-radius: 10px;
    padding: 10px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.error-text {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

.btn-principal {
    background-color: #0d6efd;
    color: white;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-principal:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

/* ================= ACERCA DE ================= */

.acerca-hero {
    background-color: #1F2A33;
    color: white;
    padding: 40px 0;
}

.acerca-titulo-principal {
    font-weight: 700;
    font-size: 2.5rem;
}

.acerca-subtitulo {
    font-size: 1.1rem;
    opacity: 0.9;
}

.acerca-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.acerca-card p {
    margin-bottom: 20px;
}

.acerca-valores {
    background-color: #f8f9fa;
}

.valor-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s ease;
    height: 100%;
}

.valor-card:hover {
    transform: translateY(-5px);
}

.valor-icono {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 15px;
}

/* ================= ESTADÍSTICAS ================= */

.estadisticas {
    background: linear-gradient(135deg, #1E2D36, #243844);
}



.stat-card {
    background: white;
    padding: 15px 10px;
    border-radius: 15px;
    transition: 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E2D36;
}

.stat-card p {
    margin-top: 10px;
    font-weight: 500;
    color: #6c757d;
}

/* ================= FOOTER ================= */

.footer {
    background: linear-gradient(135deg, #19262E, #22333D);
    color: #ffffff;
}


.footer-title {
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-description {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Redes */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    font-size: 18px;
    color: white;
    transition: 0.3s ease;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.x {
    background-color: #000000;
}

.social-icon:hover {
    transform: translateY(-4px);
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 30%, 
                #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.social-icon.youtube {
    background-color: #FF0000;
}

/* ==============================
   VISITAS NEGOCIO
================================ */

.visitas-badge {
    background: #f8f9fa;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
}

.visitas-badge i {
    color: #0d6efd;
}

.visitas-badge:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

/* ==============================
   LINK NOMBRE NEGOCIO
================================ */

.negocio-link {
    color: #0d6efd; /* azul Bootstrap */
    text-decoration: none;
    transition: 0.3s ease;
}

.negocio-link:hover {
    color: #084298;
    text-decoration: underline;
}

.horario-hora {
    font-weight: 500;
    color: #0d6efd;
}

.negocio-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.negocio-img:hover {
    transform: scale(1.03);
}

/* ==============================
   CAROUSEL NEGOCIO
================================ */

.carousel-img {
    height: 450px;
    width: 100%;
    object-fit: contain;   /* 🔥 muestra la imagen completa */
    background-color: #000; /* fondo elegante si sobra espacio */
}


/* ==============================
   MENSAJE CONTACTO================================ */
#mensaje-exito-container {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.mensaje-exito {
    min-width: 320px;
    padding: 18px 22px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    background: rgba(40, 167, 69, 0.85);
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: aparecer 0.4s ease;
    transition: all 0.4s ease;
}

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

.icono-exito {
    font-size: 22px;
}

.texto-mensaje {
    font-weight: 500;
}

.barra-progreso {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255,255,255,0.7);
    width: 100%;
    animation: progreso 3s linear forwards;
}

.mensaje-exito.ocultar {
    opacity: 0;
    transform: translateY(-15px);
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progreso {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ==============================
   CAMBIAR CONTRASEÑA PRO
================================ */

.cambiar-card {
    border-radius: 16px;
    transition: 0.3s ease;
}

.cambiar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

form input {
    border-radius: 10px !important;
    padding: 12px;
}

form input:focus {
    border-color: #0d6efd;
    box-shadow: none;
}

.alert {
    border-radius: 10px;
}

/* ===== VIDEO PREMIUM ===== */

.video-container {
    border-radius: 12px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    color: white;
    opacity: 0.85;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}


/* ====== SECCIÓN SUSCRIPCIÓN ====== */

.suscripcion-section {
    background: linear-gradient(135deg, #f8f9fa, #e9f2ff);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.suscripcion-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suscripcion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.suscripcion-card input[type="text"],
.suscripcion-card input[type="email"] {
    border-radius: 10px;
    padding: 10px 15px;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #084298;
    transform: scale(1.03);
}


.invalid-feedback {
    font-size: 0.9rem;
    font-weight: 500;
}

input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.text-danger {
    font-size: 0.9rem;
}


.toast {
    min-width: 320px;
    border-radius: 15px;
    font-weight: 500;
    text-align: center;
}

/* ==============================
   BANNER PATROCINADO
================================ */

.banner-patrocinado {
    background: #f8f9fa;
}

.patrocinado-card {
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    
}

.patrocinado-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


.patrocinado-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.patrocinado-img-container {
    width: 50%;
    aspect-ratio: 4 / 5;
    background: #f1f1f1;
    border-radius: 12px;
    overflow: hidden;

    display: flex;
    align-items: center;      /* centra vertical */
    justify-content: center;  /* centra horizontal */
}

.patrocinado-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}



.reviews-container {
    max-width: 900px;
    width: 95%;
    margin: 60px auto;
}

.reviews-summary{
    text-align: center;
    margin-bottom: 40px;
}

.review-stars{
    font-size: 24px;
    margin: 10px 0;
}

.star-filled{
    color: #f5b301;
}

.star-empty{
    color: #ddd;
}

.review-form-card{
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.interactive-stars{
    font-size: 28px;
    cursor: pointer;
    margin-bottom: 15px;
}

.star-input{
    color: #ccc;
}

.star-input.active{
    color: #f5b301;
}

.btn-review{
    background: #000;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 8px;
    width: 100%;
    margin-top: 15px;
}

.review-item{
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.review-comment{
    margin: 10px 0;
}

.login-warning{
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 30px;
}



/* ========================== */
/* RATING EN TARJETAS */
/* ========================== */

.rating-box {
    margin-top: 8px;
}

.rating-stars {
    font-size: 25px;
    line-height: 1;
}

.star-filled {
    color: #f5b301;
}

.star-empty {
    color: #ddd;
}

.rating-text {
    display: block;
    font-size: 13px;
    color: #666;
}



/* ==============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .carousel-img {
        height: 250px;
    }

    .hero p {
        font-size: 1rem;
    }

    .patrocinado-img-container {
        aspect-ratio: 1 / 1;   /* cuadrada */
        max-height: 180px;     /* limita el alto */
        margin: 0 auto;

        width: 80%;
        background: #f1f1f1;
        border-radius: 12px;
        overflow: hidden;

        display: flex;
        align-items: center;      /* centra vertical */
        justify-content: center;  /* centra horizontal */
    }

    .patrocinado-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .banner-patrocinado {
        max-height: 60vh;   /* máximo 60% de la pantalla */
        overflow-y: auto;
    }


    .patrocinado-card {
        padding: 1px !important;
    }


    .reviews-container{
        padding: 15px;
    }

    .review-form-card{
        padding: 15px;
    }

    .review-stars{
        font-size: 20px;
    }

    .rating-stars {
        font-size: 18px;
    }

    .rating-text {
        font-size: 12px;
    }
    

}

@media (min-width: 992px) {

    .footer .container {
        max-width: 1100px;
    }

    .carousel-img {
        height: 350px;
    }

}

/* Ajustes para móviles pequeños */
@media (max-width: 576px) {

    .navbar-brand {
        font-size: 1rem !important;
    }

    .navbar-logo {
        height: 28px;
    }

    .patrocinado-img {
    width: 100%;
    height: 180px !important;   /* 👈 agrega !important */
    object-fit: contain;
    margin-bottom: 10px;
}

    .patrocinado-card {
        padding: 5px;
    }

    .patrocinado-img-container {
        aspect-ratio: 16 / 9;   /* más horizontal, menos alto */
    }

}


@media (max-width: 480px) {
    .navbar-title {
        font-size: 1.2rem !important;
    }
}
