:root {
    --primary-color: #ffcc00;
    --secondary-color: #333;
    --accent-color: #ff6b6b;
    --light-color: #f9f9f9;
    --dark-color: #222;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.logo i {
    color: var(--primary-color);
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--secondary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/home/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Search and Filter Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    border-right: none;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #e6b800;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background-color: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.tag a {
    display: block;
    width: 100%;
    height: 100%;
}

.tag:hover, .tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* AUMENTAR ALTO DE LAS IMÁGENES */
.card-image {
    width: 100%;
    height: 280px; /* Aumentado de 200px a 280px */
    object-fit: cover;
}

.card-image.placeholder {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
    height: 280px; /* Aumentado para coincidir */
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.card-prompt {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
    line-height: 1.4;
    flex: 1;
}

/* BOTÓN COPIAR DE ANCHO COMPLETO - ESTILOS MEJORADOS */
.btn-copy-prompt {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 204, 0, 0.3);
}

.btn-copy-prompt:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 204, 0, 0.4);
}

.btn-copy-prompt:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(255, 204, 0, 0.3);
}

.btn-copy-prompt.copied {
    background-color: #28a745;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-copy-prompt.copied:hover {
    background-color: #218838;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: auto;
}

.card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    transition: var(--transition);
    padding: 5px;
    border-radius: 4px;
}

.action-btn:hover {
    color: var(--primary-color);
    background-color: #fff9e6;
}

.action-btn.liked {
    color: var(--accent-color);
}

.likes-count {
    font-size: 0.9rem;
    color: #666;
    min-width: 20px;
    font-weight: 500;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mini-tag {
    background-color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #666;
    border: 1px solid #e0e0e0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

.view-details {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.view-details:hover {
    color: #e6b800;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.page-btn.active, .page-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.no-results h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .card-image {
        height: 250px;
    }
    
    .card-image.placeholder {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-buttons {
        display: none;
    }
    
    .nav-menu.active, .nav-buttons.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        gap: 15px;
    }
    
    .nav-buttons.active {
        gap: 10px;
        align-items: flex-start;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .card-image.placeholder {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
        border-right: 1px solid #ddd;
    }
    
    .search-btn {
        border-radius: var(--border-radius);
        padding: 12px;
    }
    
    .btn-copy-prompt {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-image.placeholder {
        height: 200px;
    }
}
.prompt-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 15px;
}