    :root{
      --marron:#8b6f47;
      --marron-dark:#6e5432;
      --beige:#f4ede4;
      --beige-card:#fff9f3;
      --accent:#b29366;
      --muted:#5a4326;
    }

    body{
      background:var(--beige);
      font-family: 'Poppins', system-ui, Arial;
      color:#4b3b2b;
      margin:0;
    }

    /* Sidebar */
    .sidebar{
      position: fixed;
      left:0; top:0; bottom:0;
      width:220px;
      background: linear-gradient(180deg,var(--marron) 0%, #b48a5a 100%);
      color:white;
      padding:18px 12px;
      box-shadow: 2px 0 12px rgba(0,0,0,0.12);
      transition: transform 0.3s ease;
      z-index:1000;
    }

    .cta-link {
            display: inline-block;
            width: fit-content;
            margin: 30px auto 0;
            padding: 14px 28px;
            background: #b48a5a;
            color: #fff;
            text-decoration: none;
            border-radius: 10px;
            font-weight: bold;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .cta-link:hover {
            background: #99734e;
            transform: scale(1.05);
        }


    .sidebar .logo{ width:48px; display:block; margin:0 auto 10px;}
    .sidebar nav ul{ list-style:none; padding:0; margin:12px 0 0 0;}
    .sidebar nav a{ color:white; text-decoration:none; display:block; padding:10px 8px; border-radius:8px; margin-bottom:6px; font-weight:600;}
    .sidebar nav a:hover{ background: rgba(255,255,255,0.08); }

    /* Toggle button */
    #menu-toggle {
      display:none;
      font-size:1.8rem;
      cursor:pointer;
      position:fixed;
      top:12px; left:12px;
      z-index:1100;
      color:var(--marron-dark);
    }

    .main-content{
      margin-left:220px;
      padding:28px;
      min-height:100vh;
      transition: margin-left 0.3s ease;
      background-color: transparent;
    }

    .card-form{
      background:var(--beige-card);
      border-radius:12px;
      padding:18px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .section-title{
      font-weight:700; 
      font-size:1.3rem; 
      color:#2d2d2d; 
      margin-bottom:12px; 
      border-bottom:2px solid var(--accent); 
      display:inline-block; 
      padding-bottom:6px; 
    }

    

    table thead{ background:var(--accent); color:white; }
    .no-data{ text-align:center; color:#666; padding:28px; background:#fff; border-radius:10px; }

    .btn{
      font-weight:bold;
      border-radius:8px;
      color:white;
      background: var(--accent);
    }

    .btn:hover{ background: #9b7447; }

    /* Fondo animado de patitas */
#paw-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.paw-bg {
    position: absolute;
    width: 8vw;  /* ancho relativo a pantalla */
    height: auto;
    max-width: 56px;
    opacity: 0.3;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(.4,2,.6,1);
}

   
    /* Responsive */
    @media(max-width:768px){
      .sidebar { 
        transform: translateX(-100%); 
        position:fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        width: 220px;
      }
      .sidebar.active { 
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
      }
      
      #menu-toggle { 
        display: flex !important;
        position: fixed;
        top: 18px;
        left: 18px;
        z-index: 1100;
        background: rgba(255, 255, 255, 0.9);
        width: 45px;
        height: 45px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        color: var(--marron-dark);
        font-size: 1.8rem;
        cursor: pointer;
        border: none;
        padding: 0;
      }

      #menu-toggle:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.05);
      }
      
      .main-content { 
        margin-left:0; 
        padding: 70px 20px 20px 20px; 
      }
    }

    /* Adopt button */
.adopt-button {
    margin-top: 10px;
    width: 100%;
    background: var(--verde);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.adopt-button:hover {
    background: var(--verde-dark);
    transform: translateY(-2px);
}

.adopt-button.adopted {
    background: gray;
    cursor: not-allowed;
}

/* Comment section */
.comment-section {
    margin-top: 10px;
    display: none;
}

.comment-input-container {
    display: flex;
    gap: 10px;
}

.comment-input {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid #8b4513;
    border-radius: 6px;
    font-size: 0.85rem;
}

.comment-btn {
    background: #d2691e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

    /* Header */
.header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--marron);
    border-radius: 15px;
    padding: 20px;
    gap: 10px;
    color: var(--beige);
    text-align: center;
    position: relative;
    z-index: 10;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}

.header-subtitle {
    font-size: 1rem;
}

/* Cards Grid */
.cards-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: start;
    margin: 2.5rem auto;
    padding: 0 20px;
    max-width: 1200px;
    width: 100%;
}

/* Cards */
.card {
    background: #b48a5a;
    border-radius: 18px;
    box-shadow: 0 2px 12px #b48a5a55;
    width: 320px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 
        transform 0.35s cubic-bezier(.4,1.5,.6,1),
        box-shadow 0.35s cubic-bezier(.4,1.5,.6,1);
    transform-origin: center center;
    will-change: transform;
}

.card:hover {
    transform: translateY(-16px) scale(1.035) rotate(-2deg);
    box-shadow: 0 8px 32px #b48a5a88;
    z-index: 100;
}

.card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 8px 14px 0 14px;
    font-size: 1.2rem;
    color: #5a4326;
}

.card-bookmark {
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5a4326;
}

.card-bookmark:hover {
    color: #f4a261;
    transform: scale(1.1);
}

.card-bookmark.saved {
    color: #f4a261;
    transform: scale(1.15);
}

.card-actions {
    display: none;
}

.card-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin: 12px auto;
    display: block;
    background: #fff;
    box-shadow: 0 2px 8px #fff8;
}

.card-body {
    padding: 10px 18px 18px 18px;
    width: 100%;
    text-align: center;
}

.card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card-title {
    font-size: 1.3rem;
    color: #2d2d2d;
    margin: 8px 0;
    font-weight: bold;
}

.card-desc {
    font-size: 0.95rem;
    color: #222;
    margin-top: 6px;
}

.card-details {
    display: none;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: left;
    background: #fffbe6;
    border-radius: 8px;
    padding: 8px;
}

.card:hover .card-details {
    display: block;
}

/* Estado de Adopción */
.adoption-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 5px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.adoption-status.available {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.adoption-status.adopted {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

/* Botón Ver en Inicio */
.view-button {
    background: linear-gradient(135deg, #b48a5a 0%, #8b6f47 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(180, 138, 90, 0.3);
    width: 100%;
    text-decoration: none;
}

.view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(180, 138, 90, 0.4);
    background: linear-gradient(135deg, #8b6f47 0%, #6e5432 100%);
}

.view-button:active {
    transform: translateY(0);
}

/* Mensaje sin mascotas */
.no-pets-message {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    margin: 50px auto;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 15px;
    max-width: 500px;
    grid-column: 1 / -1;
    position: relative;
    z-index: 10;
}

.no-pets-message h3 {
    color: #8b4513;
    margin: 15px 0;
    font-size: 1.5rem;
}

.no-pets-message p {
    color: #666;
    margin: 10px 0 20px;
}

/* Patitas de fondo */
#paw-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.paw-bg {
    position: absolute;
    user-select: none;
    animation: floatar 6s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes floatar {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-15px) rotate(8deg); 
        opacity: 0.9; 
    }
    100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.6; 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 1.5rem;
        max-width: 400px;
    }

    .card {
        width: 100%;
        max-width: 350px;
    }
}