/* ========================================
   PETS-FACE - DISEÑO INSTAGRAM MODERNO
   Versión 2.0 - Diciembre 2025
======================================== */

/* ========================================
   VARIABLES CSS
======================================== */
:root {
    /* Colores principales */
    --primary: #FF6B9D;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #262626;
    --light: #FAFAFA;
    --white: #FFFFFF;
    
    /* Text colors */
    --text-primary: #262626;
    --text-secondary: #8E8E8E;
    --text-link: #00376B;
    
    /* Borders */
    --border-color: #DBDBDB;
    --border-color-dark: #363636;
    
    /* Backgrounds */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --bg-hover: #F5F5F5;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-indexes */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Mode */
body.dark-mode {
    --dark: #E4E4E4;
    --light: #000000;
    --white: #121212;
    --text-primary: #F5F5F5;
    --text-secondary: #A8A8A8;
    --border-color: #363636;
    --bg-primary: #121212;
    --bg-secondary: #1A1A1A;
    --bg-hover: #2A2A2A;
}

/* ========================================
   RESET & BASE
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 60px; /* Bottom nav space */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

a {
    color: var(--text-link);
    text-decoration: none;
}

/* ========================================
   HEADER MODERNO
======================================== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: var(--z-fixed);
    transition: transform var(--transition-base);
}

.modern-header.hide {
    transform: translateY(-100%);
}

.header-container {
    max-width: 975px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.app-logo {
    font-family: 'Fredoka', cursive;
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.icon-btn {
    background: none;
    border: none;
    padding: var(--spacing-sm);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    position: relative;
}

.icon-btn:hover {
    background: var(--bg-hover);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search Expandible */
.search-expandable {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.search-expandable.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.search-input-group {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input-group input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}

.search-input-group input:focus {
    border-color: var(--text-secondary);
    background: var(--bg-primary);
}

.search-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

/* ========================================
   STORIES CAROUSEL
======================================== */
.stories-container {
    margin-top: 54px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
}

.stories-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.story-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring.seen {
    background: var(--border-color);
}

.story-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    overflow: hidden;
    background: var(--bg-secondary);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-username {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   FILTER CHIPS
======================================== */
.filter-chips-wrapper {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-sm) 0;
}

/* Sticky solo en móvil */
@media (max-width: 768px) {
    .filter-chips-wrapper {
        position: sticky;
        top: 54px;
        z-index: 999;
    }
}

/* En desktop: sin sticky */
@media (min-width: 769px) {
    .filter-chips-wrapper {
        position: relative;
    }
}

.filter-chips {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    padding: 7px 16px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.chip:hover {
    background: var(--bg-hover);
}

.chip.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* ========================================
   FEED
======================================== */
.feed-container {
    max-width: 630px;
    margin: 0 auto;
    padding: var(--spacing-md) 0;
}

/* Feed Card */
.feed-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}

/* Card Header */
.card-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-user-info {
    display: flex;
    flex-direction: column;
}

.card-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.card-more {
    background: none;
    border: none;
    padding: var(--spacing-sm);
    color: var(--text-primary);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.perdido {
    background: #FFEBEE;
    color: #C62828;
}

.status-badge.encontrado {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-badge.en_adopcion {
    background: #E3F2FD;
    color: #1565C0;
}

.status-badge.adoptado {
    background: #F3E5F5;
    color: #6A1B9A;
}

.status-badge.necesita_ayuda {
    background: #FFF3E0;
    color: #E65100;
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    background: #000;
    cursor: pointer;
    user-select: none;
}

.card-image img {
    width: 100%;
    display: block;
}

/* Double Tap Like Animation */
.like-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 100px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-animation.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
}

.like-animation.exit {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* Card Actions */
.card-actions {
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    padding: var(--spacing-sm);
    cursor: pointer;
    color: var(--text-primary);
    transition: opacity var(--transition-fast);
}

.action-btn:hover {
    opacity: 0.6;
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

.action-btn.liked svg {
    fill: var(--primary);
    stroke: var(--primary);
    animation: likeScale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes likeScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
}

.save-btn svg {
    fill: none;
}

.save-btn.saved svg {
    fill: var(--text-primary);
}

/* Likes Count */
.likes-count {
    padding: 0 16px 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Caption */
.card-caption {
    padding: 0 16px;
    font-size: 14px;
    line-height: 1.4;
}

.card-caption .username {
    font-weight: 600;
    margin-right: 6px;
}

.caption-text {
    display: inline;
}

.caption-more {
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: 4px;
}

/* Comments */
.comments-preview {
    padding: 0 16px 8px;
}

.view-comments {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.view-comments:hover {
    text-decoration: underline;
}

/* Timestamp */
.card-timestamp {
    padding: 0 16px 16px;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Comment Form */
.comment-form {
    padding: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-sm);
}

.comment-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
    resize: none;
    max-height: 80px;
}

.comment-submit {
    background: none;
    border: none;
    color: var(--text-link);
    font-weight: 600;
    font-size: 14px;
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-submit.active {
    opacity: 1;
    cursor: pointer;
}

/* ========================================
   BOTTOM NAVIGATION
======================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 49px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: var(--z-fixed);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-primary);
    position: relative;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.nav-item:hover {
    opacity: 0.6;
}

.nav-item.active svg {
    fill: var(--text-primary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: none;
}

.nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 20px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Add Button (Central) */
.nav-item.add-post {
    position: relative;
    margin-top: -20px;
}

.add-post-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-base);
}

.add-post-btn:active {
    transform: scale(0.95);
}

.add-post-btn svg {
    stroke: white;
    fill: none;
}

/* ========================================
   LOADING SKELETON
======================================== */
.skeleton {
    animation: skeleton 1.5s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-hover) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.skeleton-header {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

/* ========================================
   MODALS
======================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    z-index: var(--z-modal);
    opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-body {
    padding: var(--spacing-lg);
    max-height: calc(90vh - 60px);
    overflow-y: auto;
}

/* ========================================
   PULL TO REFRESH
======================================== */
.pull-to-refresh {
    position: absolute;
    top: 54px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    transition: transform var(--transition-base);
}

.pull-to-refresh.pulling {
    transform: translateX(-50%) translateY(0);
}

.pull-to-refresh-icon {
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   UTILITIES
======================================== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .show-mobile {
        display: block;
    }
    
    .feed-container {
        padding: 0;
    }
    
    .feed-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }
    
    .stories-container {
        margin-top: 54px;
    }
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: 600;
}

.text-muted {
    color: var(--text-secondary);
}

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================== */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 735px) {
    .header-container {
        padding: 0 16px;
    }
    
    .stories-scroll,
    .filter-chips {
        padding: 0 16px;
    }
}

/* ========================================
   DARK MODE SPECIFIC ADJUSTMENTS
======================================== */
body.dark-mode {
    --shadow-sm: 0 1px 3px rgba(255,255,255,0.05);
    --shadow-md: 0 3px 6px rgba(255,255,255,0.08);
    --shadow-lg: 0 10px 20px rgba(255,255,255,0.12);
}

body.dark-mode .feed-card,
body.dark-mode .stories-container,
body.dark-mode .filter-chips-wrapper,
body.dark-mode .bottom-nav,
body.dark-mode .modern-header {
    box-shadow: 0 0 0 1px var(--border-color);
}

/* Dark Mode - Bottom Navigation Fix */
body.dark-mode .bottom-nav .nav-item {
    color: var(--text-secondary);
}

body.dark-mode .bottom-nav .nav-item:hover {
    color: var(--text-primary);
    opacity: 1;
}

body.dark-mode .bottom-nav .nav-item.active {
    color: var(--primary);
}

body.dark-mode .bottom-nav .nav-item svg {
    stroke: var(--text-secondary);
    stroke-width: 2px;
}

body.dark-mode .bottom-nav .nav-item:hover svg {
    stroke: var(--text-primary);
}

body.dark-mode .bottom-nav .nav-item.active svg {
    stroke: var(--primary);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .modern-header,
    .bottom-nav,
    .stories-container,
    .filter-chips-wrapper,
    .card-actions,
    .comment-form {
        display: none !important;
    }
}
/* ========================================
   BOTÓN AGREGAR EN HEADER (Desktop)
   ======================================== */

.icon-btn-add {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.icon-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.icon-btn-add svg {
    stroke: white !important;
}

/* Responsive: Ocultar algunos botones en tablets pequeñas */
@media (max-width: 900px) and (min-width: 768px) {
    /* En tablets, podríamos ocultar el botón de agregar para ahorrar espacio */
    /* Descomentar si quieres:
    .icon-btn-add {
        display: none;
    }
    */
}


/* ========================================
   MENÚ EXPLORA MÁS (Sidebar)
   ======================================== */

.sidebar {
    display: none; /* Oculto, solo para clonar al móvil */
}

.sidebar-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: var(--bg-hover);
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
    padding-top: 12px;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 4px 0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    position: relative;
}

.community-link:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.link-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.link-badge {
    position: absolute;
    right: 12px;
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
/* ========================================
   CORRECCIONES CRÍTICAS
   ======================================== */

/* 1. FAB visible en TODOS los dispositivos (móvil Y desktop) */
/* FAB removido - botón ahora en header */
.filter-fab-DISABLED {
    position: fixed;
    bottom: 80px; /* Por encima del bottom nav en móvil */
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-fab-DISABLED:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.filter-fab-DISABLED:active {
    transform: scale(0.95);
}

/* En desktop, ajustar posición */
@media (min-width: 768px) {
    /* FAB removido - botón ahora en header */
.filter-fab-DISABLED {
        bottom: 20px; /* Sin bottom nav en desktop */
        display: flex !important; /* Forzar visibilidad en desktop */
        z-index: 9999 !important; /* Por encima de todo */
    }
}

/* 2. Scrollbar VISIBLE en filtros (desktop) */
.filter-chips {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary) var(--bg-secondary); /* Firefox */
}

/* Webkit (Chrome, Safari, Edge) */
.filter-chips::-webkit-scrollbar {
    height: 8px;
}

.filter-chips::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.filter-chips::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
}

.filter-chips::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 3. Sidebar móvil también visible en desktop */
.sidebar-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
}

.sidebar-mobile.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sidebar-mobile-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.sidebar-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

#mobileSidebarContent {
    padding: 20px;
}

/* ========================================
   styles-pets.css
======================================== */
        .logo { font-family: 'Fredoka', sans-serif; font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, #FF6B9D, #4ECDC4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
        .search-bar { flex: 1; max-width: 500px; position: relative; min-width: 0; }
        .search-bar input { width: 100%; padding: 10px 40px 10px 15px; border: 1px solid #E4E6EB; border-radius: 25px; font-family: 'Quicksand', sans-serif; font-size: 1rem; background: #F0F2F5; }
        .search-bar input:focus { outline: none; border-color: #FF6B9D; background: white; }
        .search-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #65676B; cursor: pointer; }
        .clear-search { position: absolute; right: 45px; top: 50%; transform: translateY(-50%); color: #999; cursor: pointer; display: none; font-size: 1.2rem; }
        .clear-search.show { display: block; }
        .search-results-info { background: #E7F3FF; color: #0C5460; padding: 10px 20px; border-radius: 8px; margin-bottom: 20px; display: none; }
        .search-results-info.show { display: block; }
        .header-actions { display: flex; gap: 10px; align-items: center; }
        .user-info { display: flex; align-items: center; gap: 10px; color: #2D3142; font-weight: 600; }
        .btn-header { padding: 8px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s; white-space: nowrap; display: inline-block; }
        .btn-primary { background: linear-gradient(135deg, #FF6B9D, #FF8FAB); color: white; }
        .btn-secondary { background: white; color: #FF6B9D; border: 2px solid #FF6B9D; }
        .btn-info { background: linear-gradient(135deg, #4ECDC4, #6DD5CD); color: white; border: none; }
        .btn-header:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
        
        .container { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 280px 1fr; gap: 20px; width: 100%; overflow-x: hidden; }
        .sidebar { position: sticky; top: 80px; height: fit-content; overflow-x: hidden; }
        .sidebar-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); margin-bottom: 20px; }

        /* Estilos para los enlaces de navegación de la comunidad */
        .community-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 15px;
            background: #F7F8FA;
            border-radius: 8px;
            text-decoration: none;
            color: #2D3142;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }

        .community-link:hover {
            background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(78, 205, 196, 0.1));
            border-left-color: #FF6B9D;
            transform: translateX(5px);
        }

        .link-icon {
            font-size: 1.3rem;
            flex-shrink: 0;
        }

        .link-text {
            flex-grow: 1;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .link-arrow {
            font-size: 1.2rem;
            color: #4ECDC4;
            transition: transform 0.3s ease;
        }

        .community-link:hover .link-arrow {
            transform: translateX(5px);
        }

        /* Animación de los enlaces de navegación */
        .accordion-content .community-link {
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s;
        }

        .accordion-content.active .community-link {
            opacity: 1;
            transform: translateX(0);
        }

        /* Retraso escalonado para animación de enlaces */
        .accordion-content.active .community-link:nth-child(1) { transition-delay: 0.05s; }
        .accordion-content.active .community-link:nth-child(2) { transition-delay: 0.1s; }
        .accordion-content.active .community-link:nth-child(3) { transition-delay: 0.15s; }
        .accordion-content.active .community-link:nth-child(4) { transition-delay: 0.2s; }
        .accordion-content.active .community-link:nth-child(5) { transition-delay: 0.25s; }
        .accordion-content.active .community-link:nth-child(6) { transition-delay: 0.3s; }
        .accordion-content.active .community-link:nth-child(7) { transition-delay: 0.35s; }



        .filter-option { padding: 10px; border-radius: 8px; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; gap: 10px; margin-bottom: 5px; text-decoration: none; color: #2D3142; }
        .filter-option:hover { background: #F0F2F5; }
        .filter-option.active { background: linear-gradient(135deg, rgba(255,107,157,0.1), rgba(78,205,196,0.1)); font-weight: 600; }
        .filter-icon { font-size: 1.5rem; }
        .filter-count { margin-left: auto; color: #65676B; font-size: 0.9rem; }
        
        .feed { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 100%; overflow-x: hidden; }
        .post-card { background: white; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); overflow: hidden; width: 100%; max-width: 100%; }
        .post-header { padding: 15px 20px; display: flex; align-items: center; gap: 12px; }
        .post-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #4ECDC4, #6DD5CD); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; overflow: hidden; flex-shrink: 0; }
        .post-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .post-name { font-weight: 700; font-size: 1.1rem; word-break: break-word; }
        .post-image { width: 100%; max-height: 500px; object-fit: cover; cursor: pointer; display: block; }
        .post-content { padding: 15px 20px; }
        
        /* Información de la mascota */
        .pet-info { padding: 15px 20px; background: #F8F9FA; border-top: 1px solid #E4E6EB; }
        .pet-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
        .pet-info-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border-radius: 8px; font-size: 0.95rem; }
        .pet-info-icon { font-size: 1.3rem; }
        .pet-info-label { color: #65676B; font-weight: 600; }
        .pet-info-value { color: #2D3142; font-weight: 700; }
        
        .post-stats { padding: 10px 20px; border-top: 1px solid #E4E6EB; border-bottom: 1px solid #E4E6EB; display: flex; justify-content: space-around; }
        .post-actions { padding: 8px 20px; display: flex; justify-content: space-around; }
        .action-btn { flex: 1; padding: 8px; text-align: center; color: #65676B; font-weight: 600; border-radius: 6px; cursor: pointer; transition: background 0.3s; display: flex; align-items: center; justify-content: center; gap: 5px; border: none; background: transparent; font-family: 'Quicksand', sans-serif; font-size: 1rem; }
        .action-btn:hover { background: #F0F2F5; }
        .action-btn.liked { color: #FF6B9D; }
        .action-btn.disabled { opacity: 0.5; cursor: not-allowed; }
        
        .comments-section { padding: 15px 20px; border-top: 1px solid #E4E6EB; display: none; }
        .comments-section.show { display: block; }
        .comment-form { margin-bottom: 15px; }
        .comment-input { width: 100%; padding: 10px; border: 1px solid #E4E6EB; border-radius: 8px; font-family: 'Quicksand', sans-serif; resize: vertical; min-height: 60px; }
        .btn-comment { background: linear-gradient(135deg, #4ECDC4, #6DD5CD); color: white; padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; }
        .btn-contacto:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4); }
        .comments-list { margin-top: 15px; }
        .comment-item { background: #F0F2F5; padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; }
        .comment-author { font-weight: 600; color: #2D3142; margin-bottom: 5px; }
        
        /* Galería de fotos */
        .photo-gallery-section { border-top: 1px solid #E4E6EB; padding: 15px 0; }
        .gallery-header { padding: 0 20px 10px; font-weight: 600; color: #2D3142; font-size: 1.1rem; }
        .photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; padding: 0 20px; width: 100%; max-width: 100%; }
        .gallery-item { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; max-width: 100%; }
        .gallery-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
        .gallery-image-wrapper { position: relative; cursor: pointer; overflow: hidden; }
        .gallery-item img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; max-width: 100%; }
        .gallery-image-wrapper:hover img { transform: scale(1.05); }
        .photo-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 30px 10px 10px; font-size: 0.85rem; }
        
        /* Botones de acción en galería */
        .gallery-actions { display: flex; justify-content: space-around; padding: 10px; background: #F8F9FA; border-top: 1px solid #E4E6EB; }
        .gallery-btn { background: none; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 1rem; transition: all 0.2s; color: #65676B; font-family: 'Quicksand', sans-serif; font-weight: 600; }
        .gallery-btn:hover:not(.disabled) { background: #E4E6EB; transform: scale(1.05); }
        .gallery-btn.disabled { opacity: 0.5; cursor: not-allowed; }
        .gallery-btn.liked { color: #FF6B9D; }
        .gallery-btn span { font-size: 1.2rem; }
        .gallery-btn .count { font-size: 0.9rem; color: #2D3142; }
        
        /* Modal de foto con interacciones */
        .photo-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); overflow-y: auto; align-items: start; padding: 20px; }
        .photo-modal.active { display: flex; justify-content: center; }
        .photo-modal-content { background: white; max-width: 900px; width: 100%; border-radius: 12px; position: relative; margin: auto; }
        .photo-modal-image { width: 100%; max-height: 500px; object-fit: contain; background: #000; display: block; }
        .photo-modal-info { padding: 20px; }
        .photo-modal-caption { font-size: 1.1rem; color: #2D3142; margin-bottom: 10px; font-weight: 600; }
        .photo-modal-date { color: #65676B; font-size: 0.9rem; }
        .photo-modal-actions { display: flex; justify-content: space-around; padding: 15px 20px; border-top: 1px solid #E4E6EB; border-bottom: 1px solid #E4E6EB; }
        
        .login-prompt { background: #FFF3CD; border: 1px solid #FFE69C; color: #856404; padding: 10px 15px; border-radius: 8px; margin-bottom: 10px; text-align: center; }
        .login-prompt a { color: #FF6B9D; font-weight: 600; text-decoration: none; }
        
        /*.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
        .modal.active { display: flex; }*/
        
        /* Botón flotante de filtros (solo móvil) */
        .filter-fab {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #FF6B9D, #4ECDC4);
            border-radius: 50%;
            box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 999;
            transition: all 0.3s ease;
            align-items: center;
            justify-content: center;
        }
        
        .filter-fab:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
        }
        
        .filter-fab:active {
            transform: scale(0.95);
        }
        
        /* Overlay oscuro */
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .sidebar-overlay.active {
            display: block;
            opacity: 1;
        }
        
        /* Sidebar móvil deslizante */
        .sidebar-mobile {
            position: fixed;
            top: 0;
            left: -100%;
            width: 85%;
            max-width: 350px;
            height: 100vh;
            background: #F7F8FA;
            z-index: 1001;
            overflow-y: auto;
            transition: left 0.3s ease;
            padding: 20px;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        }
        
        .sidebar-mobile.active {
            left: 0;
        }
        
        /* Header del sidebar móvil */
        .sidebar-mobile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #E4E6EB;
        }
        
        .sidebar-mobile-header h2 {
            color: #2D3142;
            font-size: 1.3rem;
            margin: 0;
        }
        
        .sidebar-close-btn {
            background: none;
            border: none;
            font-size: 2rem;
            color: #666;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s;
        }
        
        .sidebar-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: #FF6B9D;
        }
        
        /* Header clonado en sidebar móvil */
        #mobileHeaderContent .header-content {
            flex-direction: column;
            gap: 10px;
            padding: 0;
        }
        
        #mobileHeaderContent .logo {
            font-size: 1.3rem;
            justify-content: center;
        }
        
        #mobileHeaderContent .search-bar {
            width: 100%;
            max-width: 100%;
        }
        
        #mobileHeaderContent .header-actions {
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
        }
        
        #mobileHeaderContent .btn-header {
            font-size: 0.85rem;
            padding: 8px 15px;
        }
        
        @media (max-width: 968px) { 
            .container { grid-template-columns: 1fr; padding: 10px; }
            .sidebar { display: none !important; } /* Ocultar sidebar en móvil */
            .filter-fab { display: flex; } /* Mostrar botón flotante */
            .main-content { order: 1; }
            body, html, .header, .container, .feed, .post-card { max-width: 100vw !important; overflow-x: hidden !important; }
            
            /* En móvil, ocultar búsqueda y acciones del header superior, mostrar solo logo */
            .header .search-bar { display: none !important; }
            .header .header-actions { display: none !important; }
            .header .header-content { justify-content: center; }
        }
        @media (max-width: 768px) { 
            .photo-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 15px; }
            .logo { font-size: 1.5rem; }
            .post-header, .post-content, .pet-info, .post-stats, .post-actions { padding-left: 15px; padding-right: 15px; }
            .pet-info-grid { gap: 8px; }
            body, html, .header, .container, .feed, .post-card, .sidebar-card, img { max-width: 100vw !important; }
        }
        @media (max-width: 480px) { 
            .photo-gallery { grid-template-columns: 1fr; gap: 10px; padding: 0 10px; }
            .pet-info-grid { grid-template-columns: 1fr !important; }
            .btn-header { padding: 6px 15px; font-size: 0.9rem; }
            .container { padding: 5px; }
            .post-header, .post-content, .pet-info, .post-stats, .post-actions { padding-left: 10px; padding-right: 10px; }
            .logo { font-size: 1.3rem; }
            .header { padding: 8px 0; }
            .header-content { padding: 0 5px; }
            .post-card { margin: 0 2px; }
            body, html, .header, .container, .feed, .post-card, .sidebar-card, .pet-info-grid, img, .post-image { max-width: 100vw !important; overflow-x: hidden !important; }
            * { word-wrap: break-word; }
        }



        /* Acordeón de Filtros */
        .accordion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 5px 0;
            transition: all 0.3s;
            user-select: none;
        }

        .accordion-header:hover {
            color: #FF6B9D;
        }

        .accordion-header h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 600;
        }

        .accordion-icon {
            font-size: 1.2rem;
            transition: transform 0.3s;
            color: #FF6B9D;
        }

        .accordion-icon.active {
            transform: rotate(180deg);
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .accordion-content.active {
            max-height: 900px; /* Aumentado para acomodar todos los tipos */
            margin-top: 15px;
            overflow-y: auto; /* Agregar scroll si es necesario */
        }

        /* Animación de las opciones */
        .filter-option {
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s;
        }

        .accordion-content.active .filter-option {
            opacity: 1;
            transform: translateX(0);
        }

        /* Retraso escalonado para animación */
        .accordion-content.active .filter-option:nth-child(1) { transition-delay: 0.05s; }
        .accordion-content.active .filter-option:nth-child(2) { transition-delay: 0.1s; }
        .accordion-content.active .filter-option:nth-child(3) { transition-delay: 0.15s; }
        .accordion-content.active .filter-option:nth-child(4) { transition-delay: 0.2s; }
        .accordion-content.active .filter-option:nth-child(5) { transition-delay: 0.25s; }
        .accordion-content.active .filter-option:nth-child(6) { transition-delay: 0.3s; }
        .accordion-content.active .filter-option:nth-child(7) { transition-delay: 0.35s; }
        .accordion-content.active .filter-option:nth-child(8) { transition-delay: 0.4s; }
        .accordion-content.active .filter-option:nth-child(9) { transition-delay: 0.45s; }
        .accordion-content.active .filter-option:nth-child(10) { transition-delay: 0.5s; }
        .accordion-content.active .filter-option:nth-child(11) { transition-delay: 0.55s; }
        .accordion-content.active .filter-option:nth-child(12) { transition-delay: 0.6s; }
        .accordion-content.active .filter-option:nth-child(13) { transition-delay: 0.65s; }
        .accordion-content.active .filter-option:nth-child(14) { transition-delay: 0.7s; }
        .accordion-content.active .filter-option:nth-child(15) { transition-delay: 0.75s; }
        .accordion-content.active .filter-option:nth-child(16) { transition-delay: 0.8s; }

        /* Scrollbar personalizada para el acordeón */
        .accordion-content::-webkit-scrollbar {
            width: 6px;
        }

        .accordion-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .accordion-content::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #FF6B9D, #4ECDC4);
            border-radius: 10px;
        }

        .accordion-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #4ECDC4, #FF6B9D);
        }



        /* Acordeón de Información Adicional */
        .info-toggle-section {
            border-top: 1px solid #E4E6EB;
            margin-top: 15px;
        }

        .btn-toggle-info {
            width: 100%;
            padding: 12px 20px;
            background: white;
            border: none;
            border-top: 1px solid #E4E6EB;
            color: #65676B;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
            font-family: 'Quicksand', sans-serif;
        }

        .btn-toggle-info:hover {
            background: #F0F2F5;
            color: #FF6B9D;
        }

        .btn-toggle-info .toggle-icon {
            font-size: 1.1rem;
            transition: transform 0.3s;
        }

        .btn-toggle-info .toggle-icon.active {
            transform: rotate(180deg);
        }

        .additional-info {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
        }

        .additional-info.show {
            max-height: 1000px;
            transition: max-height 0.5s ease-in;
        }

        .additional-info-content {
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.3s;
        }

        .additional-info.show .additional-info-content {
            opacity: 1;
            transform: translateY(0);
            transition-delay: 0.1s;
        }



/* Estilos para el botón de expandir galería */
.gallery-expand-btn-container {
    text-align: center;
    margin-top: 15px;
    padding: 10px 0;
}

.btn-expand-gallery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FF6B9D, #4ECDC4);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.btn-expand-gallery:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
}

.btn-expand-gallery:active {
    transform: translateY(0);
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.btn-expand-gallery.expanded .expand-icon {
    transform: rotate(180deg);
}

.hidden-gallery {
    margin-top: 10px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

    
        /* Estilos para breadcrumb y navegación SPA */
        #breadcrumb button {
            transition: all 0.3s ease;
        }
        
        #breadcrumb button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
        }
        
        #breadcrumb button:active {
            transform: translateY(0);
        }
        
        #externalSectionFrame {
            transition: opacity 0.3s ease;
        }
        
        /* Animación de fade para transiciones */
        .fade-in {
            animation: fadeIn 0.4s ease-in;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        
        /* Responsive para iframe */
        @media (max-width: 768px) {
            #breadcrumb {
                padding: 10px !important;
            }
            
            #breadcrumb button {
                padding: 8px 16px !important;
                font-size: 0.85rem !important;
            }
            
            #breadcrumbTitle {
                font-size: 0.95rem !important;
                display: block;
                margin-top: 8px;
            }
            
            #breadcrumb span {
                display: none;
            }
        }



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#backToTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B9D, #4ECDC4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    display: none;
    z-index: 998;
    transition: all 0.3s;
}

#backToTop:hover {
    transform: scale(1.1);
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
}