﻿/* ==========================================================================
   SITE.CSS - PASEANDOO (VERSIÓN FINAL COMPLETA)
   ========================================================================== */

/* 1. Variables de Marca */
:root {
    --primary: #f4623a; /* Naranja Paseandoo */
    --secondary: #4E5F4D; /* Verde musgo */
    --bg-light: #f8f9fa;
    --bg-soft: #fcfcfc;
    --text-main: #555;
    --whatsapp: #25d366;
    --whatsapp-hover: #128c7e;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Merriweather Sans', sans-serif;
}

/* 2. Global */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #212529;
}

/* 3. Layout & Secciones */
.page-section {
    padding: 5rem 0;
}

.page-details {
    padding-top: 2rem !important;
}

.bg-soft-gray {
    background-color: var(--bg-soft);
}

.divider {
    background-color: var(--primary);
    height: 3px;
    width: 60px;
    margin: 1.5rem auto;
    border: none;
    opacity: 1;
}

/* 4. Navegación */
#mainNav {
    background-color: var(--secondary) !important;
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: white !important;
    text-transform: lowercase;
    letter-spacing: 1px;
}

/* 5. Botones */
.btn-servicio {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-servicio:hover {
        background-color: #d1502d;
        color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

.btn-outline-naranja-personalizado {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-outline-naranja-personalizado:hover {
        background: var(--primary);
        color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    border: none;
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-whatsapp:hover {
        background-color: var(--whatsapp-hover);
        color: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: translateY(-1px);
    }

/* 6. Componentes */
.custom-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: none;
}

.galeria-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.portfolio-box {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

    .portfolio-box:hover img {
        transform: scale(1.05);
    }

.icon-servicio {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 7. Footer */
footer {
    background-color: var(--secondary);
    color: white;
    padding: 3rem 0;
}

.footer-link {
    color: #d1d1d1;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

    .footer-link:hover {
        color: white;
    }

.social-icon {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: transform 0.2s ease;
}

    .social-icon:hover {
        color: var(--primary);
        transform: scale(1.1);
    }

.footer h5 {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 800;
    color: white !important;
    text-transform: lowercase;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer .footer-link {
    color: #e6e6e6;
}

/* 8. Utilidades */
.text-primary {
    color: var(--primary) !important;
}

.container-reading {
    max-width: 900px;
    margin: 2rem auto;
}

.truncated-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 6.4rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* --- UI OPTIMIZADA Y COMPONENTES FEED --- */
.social-post-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 12px;
}

    .social-post-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
    }

.feed-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
    }

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: #212529;
}

.thumb-container {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.thumb-placeholder {
    font-size: 0.75rem;
    color: #adb5bd;
    text-align: center;
    padding: 5px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-post-list-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .social-post-list-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
    }

.list-truncated-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* Galería y Fotos */
.gallery-photo-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 14px rgba(11,14,18,0.04);
}

    .gallery-photo-card:hover, .gallery-photo-card:focus-within {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 10px 30px rgba(11,14,18,0.08);
    }

    .gallery-photo-card img.placeholder {
        background: #f6f7f8;
        padding: 0.75rem;
        object-fit: contain !important;
        height: 220px !important;
        display: block;
        margin: 0 auto;
    }

    .gallery-photo-card img {
        transition: opacity .2s ease-in-out;
    }

.image-ratio {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background-color: #f6f7f8;
}

    .image-ratio img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        .image-ratio img.placeholder {
            object-fit: contain;
        }

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
    color: #fff;
    opacity: 0;
    transition: opacity .18s ease-in-out;
    padding: 1rem;
}

.gallery-photo-card:hover .photo-overlay, .gallery-photo-card:focus-within .photo-overlay {
    opacity: 1;
}

.photo-overlay .meta {
    font-size: .9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.photo-overlay .btn-view {
    background: rgba(255,255,255,0.95);
    color: #222;
    border-radius: 999px;
    padding: .4rem .85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Skeleton / Shimmer */
.skeleton-card .skeleton-rect {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    position: absolute;
    inset: 0;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg,#e9ecef 25%,#f8f9fa 50%,#e9ecef 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s linear infinite;
    border-radius: 4px;
}

    .skeleton-line.short {
        width: 45%;
        height: 14px;
        margin: .6rem auto 0;
    }

@keyframes shimmer {
    0% {
        background-position: -200% 0
    }

    100% {
        background-position: 200% 0
    }
}

.card .btn-warning {
    background-color: #f6a85a !important;
    border-color: #f6a85a !important;
    color: #1f1f1f !important;
    box-shadow: 0 6px 18px rgba(246,168,90,0.14);
}

    .card .btn-warning:hover {
        filter: brightness(0.98);
    }

/* Área Administrativa */
.admin-panel .card {
    background-color: #263229;
    color: #e9ecef;
    border: 0;
}

    .admin-panel .card .card-body {
        background: transparent;
    }

.admin-panel .list-group {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
}

.admin-panel .list-group-item {
    background: transparent;
    color: #e9ecef;
    border: none;
}

    .admin-panel .list-group-item:hover {
        background: rgba(255,255,255,0.03);
    }

    .admin-panel .list-group-item.active {
        background: rgba(0,0,0,0.25);
        color: #fff;
        border-radius: 6px;
        border: 1px solid rgba(255,255,255,0.08);
    }

.btn-admin {
    background-color: var(--secondary);
    color: white;
    border: none;
}

    .btn-admin:hover {
        background-color: #3f6a52;
        color: white;
    }

.btn-admin-dark {
    background-color: #0d0d0d;
    color: white;
    border: none;
}

    .btn-admin-dark:hover {
        background-color: #000000;
    }

.admin-panel .img-thumb {
    max-width: 56px !important;
    max-height: 56px !important;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
}

.admin-panel table.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.04);
}

.admin-panel .section-title {
    color: #212529;
    font-size: 1.75rem;
    margin: 0;
}

.admin-panel .card-body {
    background: #fff;
}

.admin-main .card-header.bg-dark {
    background-color: var(--secondary) !important;
    color: #fff;
}

.admin-main .btn-dark {
    background-color: var(--secondary) !important;
    border-color: rgba(0,0,0,0.05) !important;
    color: #fff !important;
}

    .admin-main .btn-dark:hover {
        background-color: #3f6a52 !important;
    }

.admin-sidebar {
    background: var(--secondary) !important;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    z-index: 1020;
    padding: 2.25rem 1.25rem;
}

    .admin-sidebar .list-group-item {
        background: transparent;
        border: none;
        color: #fff;
        padding-left: 0.75rem;
    }

        .admin-sidebar .list-group-item:hover {
            background: rgba(255,255,255,0.04);
            color: #fff;
        }

.admin-main {
    background: #ffffff;
    color: #212529;
    min-height: calc(100vh - 76px);
    margin-left: 240px;
    padding-top: 1.25rem;
    overflow-x: hidden;
}

    .admin-main .card,
    .admin-panel .card {
        background: #ffffff !important;
        color: #212529 !important;
        border: none;
    }

        .admin-main .card .card-body,
        .admin-panel .card .card-body {
            background: #ffffff !important;
            color: #212529 !important;
        }

.stat-card {
    background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.98));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.stat-title {
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 8px;
}

.stat-card.stat-dark {
    background: #1f2a2f;
    color: #fff;
}

.stat-card.stat-blue {
    background: linear-gradient(90deg,#1e73ff,#0ea5e9);
    color: #fff;
}

.stat-card.stat-cyan {
    background: linear-gradient(90deg,#00c2a8,#00a3ff);
    color: #fff;
}

.stat-card.stat-gray {
    background: #6c757d;
    color: #fff;
}

.stat-card .stat-title {
    color: rgba(255,255,255,0.85);
}

.stat-card .stat-value {
    color: #ffffff;
}

.navbar, .admin-sidebar {
    background-color: var(--secondary) !important;
}

.img-thumb {
    max-width: 56px !important;
    max-height: 56px !important;
}

.table .img-thumb {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
    border-radius: 6px;
}

.post-message {
    font-weight: 400 !important;
    color: #212529;
    line-height: 1.5;
}

.table {
    font-size: 0.92rem;
}

    .table td .btn-group {
        display: inline-flex;
        gap: 6px;
        align-items: center;
        white-space: nowrap;
    }

    .table .btn-group .btn,
    .table .btn {
        padding: 4px 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .table .btn .bi {
            font-size: 0.9rem;
        }

    .table td.text-end {
        min-width: 180px;
        padding-right: 0.5rem;
    }

@media (max-width: 768px) {
    .table td.text-end {
        min-width: 120px;
    }

    .table .btn {
        padding: 4px 5px;
    }

        .table .btn .bi {
            font-size: 0.85rem;
        }
}

/* Paginación */
.pagination .page-link {
    color: #333;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

    .pagination .page-link:hover {
        color: #fff;
        background-color: #555;
        border-color: #555;
    }

.pagination .page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item:first-child .page-link {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.pagination .page-item:last-child .page-link {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* --- ESTILOS ESPECÍFICOS DE LA VISTA DE DETALLES DE LUGAR (NUEVOS) --- */
.place-carousel-img {
    height: 480px;
    object-fit: cover;
}

.place-no-photos {
    height: 400px;
}

.place-map-container {
    height: 250px;
    width: 100%;
}

.divider-sm {
    max-width: 100px;
}

.text-naranja-custom {
    color: #ff6600 !important;
}

.border-left-naranja {
    border-left: 4px solid #ff6600 !important;
}

.btn-naranja-custom {
    background-color: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
}

    .btn-naranja-custom:hover,
    .btn-naranja-custom:focus {
        background-color: #d1502d;
        border-color: #d1502d;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .btn-naranja-custom:disabled {
        background-color: var(--primary);
        border-color: var(--primary);
        opacity: .5;
    }

.time-icon-box {
    width: 32px;
    height: 32px;
    color: #ff6600;
}

.time-label-small {
    font-size: 0.75rem;
    line-height: 1;
}

.pre-line-text {
    white-space: pre-line;
}

.experience-badge-fs {
    font-size: 0.85rem;
}

.post-thumb-img {
    width: 75px;
    height: 75px;
    object-fit: cover;
}

.post-message-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

#map-desktop, #map-mobile {
    height: 320px !important;
    width: 100% !important;
}

/* 1. Asegurar que las imágenes de posts no se deformen */
.post-thumb-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

/* 2. Alineación de tarjetas de experiencias (Flexbox) */
.experience-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .experience-card .card-body {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .experience-card .experience-text {
        flex-grow: 1;
        font-style: normal !important; /* Cambia la cursiva por texto plano legible */
        color: #4a5568;
    }

    .experience-card .experience-footer {
        margin-top: auto; /* Empuja los botones hacia el fondo para que queden alineados */
    }

/* 3. Limitar descripción de posts a 2 líneas con puntos suspensivos */
.post-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. Espaciado en redes sociales del footer */
.footer-social-icons {
    display: flex;
    gap: 12px;
}

/* 1. Imagen cuadrada y recortada de forma limpia */
.post-thumb-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    flex-shrink: 0;
}

/* 2. Control de texto de 2 líneas sin cortarse */
.post-message-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    max-height: 2.6em; /* Evita que muestre texto parcialmente cortado */
}

/* Estilos específicos para las tarjetas de posts */
.post-thumb-img {
    width: 65px !important;
    height: 65px !important;
    object-fit: cover;
    flex-shrink: 0;
}

.post-message-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    max-height: 2.7em; /* Limita estrictamente la altura a 2 líneas */
    font-size: 0.82rem;
    word-break: break-word;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.post-message-clamp {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* Evita que el contenedor estire o muestre texto de más */
    line-height: 1.3em !important;
    max-height: 2.6em !important;
    margin-bottom: 0 !important;
}

 
/* Estilos estrictos para evitar letras cortadas a la mitad */
.post-thumb-img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.post-message-clamp {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3em !important;
    max-height: 2.6em !important; /* Corta físicamente cualquier sobrante de la 3ª línea */
    margin-bottom: 0 !important;
    word-break: break-word !important;
    font-size: 0.82rem !important;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* Registro */
.auth-card { border: 0; border-top: 6px solid var(--secondary); box-shadow: 0 10px 30px rgba(78,95,77,.15); overflow: hidden; }
.auth-card .auth-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--secondary); }
.auth-card .plan-badge { display: inline-block; background: rgba(244,98,58,.12); color: var(--primary); font-weight: 600; border-radius: 50rem; padding: .15rem .75rem; font-size: .85rem; }
.auth-card .form-label { font-size: .9rem; color: var(--secondary); }
.auth-card .form-control, .auth-card .form-select { background-color: var(--bg-light); border-radius: .75rem; padding: .6rem .9rem; }
.auth-card .form-control:focus, .auth-card .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(244,98,58,.2); background-color: #fff; }
.btn-paseandoo { background-color: var(--primary); color: #fff; font-family: 'Baloo 2', sans-serif; letter-spacing: .05em; padding: .55rem 1.5rem; border: 0; }
.btn-paseandoo:hover { background-color: #d9502b; color: #fff; }
.auth-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(78,95,77,.12); color: var(--secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }
