/* ========================================
   DISEÑO ARREGLADO - CODIGOAMIGO.COM
   Archivo único que reemplaza todos los CSS conflictivos
   ======================================== */

/* Variables CSS globales */
:root {
    --primary-orange: #FF6B35;
    --dark-gray: #2C2C2C;
    --light-gray: #404040;
    --text-white: #FFFFFF;
    --text-gray: #CCCCCC;
    --gradient-bg: linear-gradient(135deg, #2C2C2C 0%, #404040 50%, #FF6B35 100%);
    --header-height: 80px;
    --mobile-header-height: 60px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Reset CSS básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-gray);
    color: var(--text-white);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* HEADER DESKTOP */
.header-modern.desktop-only {
    background-color: var(--dark-gray);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--header-height);
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    flex-shrink: 0;
}

.logo-section:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.05);
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
}

.logo-codigo {
    color: var(--text-white);
}

.logo-amigo {
    color: var(--primary-orange);
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 0.2rem;
}

/* Navegación */
.nav-modern {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 0;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-orange);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-orange);
}

/* Dropdown moderno */
.dropdown-modern {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none !important;
    border: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.dropdown-toggle:hover {
    color: var(--primary-orange);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-modern:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu-modern {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-gray);
    border: 1px solid #555;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-modern:hover .dropdown-menu-modern {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #444;
}

.dropdown-item-modern:last-child {
    border-bottom: none;
}

.dropdown-item-modern:hover {
    background-color: var(--primary-orange);
    color: var(--text-white);
}

.dropdown-item-modern img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

.dropdown-item-modern i {
    width: 20px;
    text-align: center;
    color: var(--primary-orange);
}

.dropdown-item-modern:hover i {
    color: var(--text-white);
}

/* Búsqueda */
.search-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #404040 0%, #555 100%);
    border: 2px solid transparent;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.search-input-header {
    background: transparent;
    border: none;
    color: var(--text-white);
    width: 300px;
    padding: 12px 20px 12px 45px;
    font-size: 16px;
    outline: none;
    border-radius: 30px;
    transition: var(--transition);
    height: 45px;
    box-sizing: border-box;
}

.search-input-header::placeholder {
    color: var(--text-gray);
    font-weight: 400;
}

.search-input-header:focus {
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-orange);
}

.search-btn {
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.search-btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Botones de acción */
.btn-publicar {
    background: linear-gradient(45deg, #FF6B35, #ff8c42);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-publicar:hover {
    background: linear-gradient(45deg, #E55A2B, #ff8c42);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

.btn-acceder {
    background-color: var(--primary-orange);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 45px;
    box-sizing: border-box;
}

.btn-acceder:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Menú de usuario */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 45px;
    box-sizing: border-box;
    color: white !important;
}

.user-info-card .user-profile {
    height: 75px;
}

.user-profile:hover {
    background-color: #555;
    border-color: var(--primary-orange);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-orange);
}

.user-name-small {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-profile i {
    color: var(--text-gray);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-profile.active i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark-gray);
    border: 1px solid #555;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    margin: 0.25rem;
}

.user-dropdown .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--text-white);
    text-decoration: none;
}

.user-dropdown .dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--primary-orange);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #555;
    margin: 0.5rem 0;
}

/* HEADER MÓVIL */
.header-modern.mobile-only {
    background-color: var(--dark-gray);
    padding: 8px 0;
    min-height: var(--mobile-header-height);
    max-height: var(--mobile-header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    width: 100%;
    display: none;
}

.header-container-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    height: var(--mobile-header-height);
    max-width: 100vw;
    width: 100%;
    gap: 8px;
}

.logo-section-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.logo-section-mobile:hover {
    text-decoration: none;
    color: inherit;
}

.logo-text-mobile {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.search-section-mobile {
    flex: 1;
    margin: 0 10px;
    position: relative;
}

.search-input-mobile {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    background-color: var(--light-gray);
    color: var(--text-white);
    font-size: 14px;
    height: 32px;
}

.user-section-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar-mobile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.menu-toggle-mobile {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.menu-toggle-mobile:hover {
    color: var(--primary-orange);
}

/* BOTÓN DE MENÚ HAMBURGUESA */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Mostrar botón hamburguesa solo en móviles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del botón de hamburguesa */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* MENÚ MÓVIL DESPLEGABLE */
.mobile-menu {
    position: fixed;
    top: var(--mobile-header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--mobile-header-height));
    background-color: var(--dark-gray);
    border-top: 1px solid #555;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: none;
}

/* Mostrar menú móvil solo en pantallas pequeñas */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: var(--text-white);
    text-decoration: none;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.mobile-nav-link:hover {
    background-color: var(--primary-orange);
    color: var(--text-white);
    text-decoration: none;
    transform: translateX(5px);
}

/* Overlay del menú móvil */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.mobile-menu-overlay.show {
    display: block;
}

/* HERO SECTION */
.hero-section {
    background: var(--gradient-bg);
    padding: 3rem 2rem;
    text-align: center;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 3rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.search-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    width: 100%;
}

.search-input-hero {
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-radius: 30px;
    padding: 1rem 1.5rem;
    color: var(--dark-gray);
    font-size: 1.2rem;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-input-hero::placeholder {
    color: #666;
}

.btn-buscar {
    background-color: var(--primary-orange);
    color: var(--text-white);
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-buscar:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
}

/* CONTENIDO PRINCIPAL */
.main-container {
    background: var(--dark-gray);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.codes-section {
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
}

/* TARJETAS DE CÓDIGOS */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.code-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #555;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.code-brand-image {
    width: 100%;
    height: 120px;
    background-color: #444;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.code-brand-image .brand-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.code-brand-image .brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 80%;
    max-height: 80%;
}

.code-brand-image .brand-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 2rem;
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.code-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin: 0;
}

.code-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.code-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.code-user-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.code-user-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.code-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.code-user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 1rem;
}

.code-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    flex-grow: 1;
}

.code-button {
    background-color: var(--primary-orange);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: auto;
}

.code-button:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
}

/* Estilos para información adicional de códigos */
.beneficio-destacado {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 53, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.beneficio-icono {
    font-size: 1.2rem;
}

.beneficio-contenido {
    display: flex;
    flex-direction: column;
}

.beneficio-cantidad {
    font-weight: bold;
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.beneficio-tipo {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.fecha-publicacion-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.fecha-texto {
    font-style: italic;
}

/* TARJETAS DESTACADAS */
.featured-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, #1A1A1A 100%);
    border-radius: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-card {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 2px solid var(--primary-orange);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--text-white);
    color: var(--primary-orange);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.featured-brand-logo {
    height: 120px;
    text-align: center;
    margin-bottom: 1rem;
}

.featured-brand-logo .brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-brand-logo .brand-logo-img {
    max-width: 180px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
}

.featured-brand-logo .brand-logo-placeholder {
    width: 80px;
    height: 60px;
    background: var(--primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.featured-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin: 0;
}

.featured-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-user-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-user-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.featured-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.featured-user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 1rem;
}

.featured-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    flex-grow: 1;
}

.featured-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.featured-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.featured-stat i {
    color: var(--primary-orange);
}

.featured-button {
    background: var(--primary-orange);
    color: var(--text-white);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: auto;
}

.featured-button:hover {
    background: #E55A2B;
    transform: translateY(-2px);
}

/* SECCIÓN DE MARCAS POPULARES */
.popular-brands-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    padding: 4rem 0;
    margin: 3rem 0;
}

.popular-brands-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-orange), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popular-brands-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.brands-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
    overflow: hidden;
}

.brands-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.brand-slide {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
}

.brand-card {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.1);
    height: 100%;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-orange);
}

.brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.brand-image {
    height: 120px;
    background: linear-gradient(135deg, #3c3c3c, #2c2c2c);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.brand-image img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: var(--transition);
}

.brand-card:hover .brand-image img {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2);
}

.brand-info {
    padding: 1.5rem;
    text-align: center;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.brand-category {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.codes-count {
    background: linear-gradient(45deg, var(--primary-orange), #ff8c42);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Controles del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-orange);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.slider-btn:hover {
    background: #E55A2B;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Indicadores de puntos */
.slider-dots {
    text-align: center;
    margin-top: 2rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background-color: var(--primary-orange);
    transform: scale(1.2);
}

/* PAGINACIÓN */
.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination-btn {
    padding: 10px 15px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #e55a2b;
    color: white;
    text-decoration: none;
}

.pagination-btn.active {
    background: #e55a2b;
    font-weight: bold;
}

/* FOOTER */
.footer-modern {
    background-color: #1A1A1A;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
    margin-top: 3rem;
}

.rewards-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: var(--transition);
}

.rewards-link:hover {
    color: #E55A2B;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.8rem;
    }
    
    .search-input-header {
        width: 250px;
    }
    
    .nav-modern {
        gap: 0rem;
        margin: 0 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .brand-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .header-modern.desktop-only {
        display: none !important;
    }
    
    .header-modern.mobile-only {
        display: block !important;
    }
    
    body {
        margin-top: var(--mobile-header-height) !important;
    }
    
    .main-container {
        margin-top: 0;
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        min-height: 30vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .search-hero {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .search-input-hero {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        padding: 12px 18px;
    }
    
    .btn-buscar {
        width: 100%;
        max-width: 200px;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .codes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .brand-slide {
        flex: 0 0 calc(100% - 0.5rem);
    }
    
    .popular-brands-section {
        padding: 2rem 0;
        margin: 2rem 0;
    }
    
    .popular-brands-section .section-title {
        font-size: 2rem;
    }
    
    .brands-slider-container {
        padding: 0 1rem;
    }
    
    .brand-card {
        border-radius: 15px;
    }
    
    .brand-image {
        height: 100px;
    }
    
    .brand-image img {
        max-height: 60px;
    }
    
    .brand-info {
        padding: 1rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .footer-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-text-mobile {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .code-card {
        padding: 1rem;
    }
    
    .brand-card {
        padding: 0;
    }
}

/* UTILIDADES */
.text-center {
    text-align: center;
}

.text-orange {
    color: var(--primary-orange);
}

.bg-dark {
    background-color: var(--dark-gray);
}

.bg-light {
    background-color: var(--light-gray);
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Header search input: visible text + extra right padding */
.search-input-header,
.easy-autocomplete input.search-input-header {
    color: #fff !important;
    caret-color: #fff;
}
.search-input-header::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Estilos para códigos destacados */
.featured-badge {
    background-color: #c1a309 !important;
    color: white !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.card_real.destacado .btn.ir_codigo,
.card_real.destacado .btn_codigo_amigo {
    color: white !important;
    border: 1px solid #c1a309 !important;
    background: #c1a309 !important;
    text-shadow: 1px 1px 3px black;
    font-weight: bold;
    white-space: break-spaces;
}

.card_real.destacado .span_descuento {
    color: #c1a309 !important;
}

.card_real.destacado .fa-star {
    color: #c1a309 !important;
}

/* Estilos para modales */
.modal {
    z-index: 1050;
    display: none;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    z-index: 1040;
}

.modal-dialog {
    margin: 30px auto;
}

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: #2C2C2C !important;
    color: #FFFFFF !important;
}

.modal-header {
    border-bottom: 1px solid #404040 !important;
    border-radius: 10px 10px 0 0;
    background-color: #2C2C2C !important;
    color: #FFFFFF !important;
}

.modal-header .close {
    color: #FFFFFF !important;
    opacity: 0.8;
    font-size: 28px;
    font-weight: normal;
}

.modal-header .close:hover {
    color: #FF6B35 !important;
    opacity: 1;
}

.modal-header .modal-title {
    color: #FFFFFF !important;
}

.modal-body {
    padding: 30px;
    background-color: #2C2C2C !important;
    color: #FFFFFF !important;
}

.modal-footer {
    background-color: #2C2C2C !important;
    border-top: 1px solid #404040 !important;
    color: #FFFFFF !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    height: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    padding: 10px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #3466FF;
    box-shadow: 0 0 0 0.2rem rgba(52, 102, 255, 0.25);
}

.btn_codigo_amigo {
    font-size: 18px;
    background-color: #3466FF !important;
    color: white !important;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.btn_codigo_amigo:hover {
    background-color: #2c5ce6 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 102, 255, 0.3);
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .form-control {
        height: 40px;
        font-size: 14px;
    }
    
    .btn_codigo_amigo {
        font-size: 16px;
        padding: 10px 25px;
    }
}

/* Estilos adicionales para compatibilidad */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    /*display: flex;
    flex-wrap: wrap;*/
    margin: 0 -15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* Estilos para elementos específicos que podrían estar en otros CSS */
.cd-home-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 2rem;
    text-align: center;
}

.titulo_zona_home {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.bloque_publica_nuevo_codigo {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.listado_codigos {
    margin-bottom: 2rem;
}

/* Estilos para botones de paginación existentes */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 15px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a:hover {
    background: #e55a2b;
    color: white;
    text-decoration: none;
}

.pagination .active span {
    background: #e55a2b;
    font-weight: bold;
}

/* Estilos para elementos de formulario */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-white);
    background-color: var(--light-gray);
    border: 1px solid #555;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Estilos para alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Estilos para texto */
.text {
    color: var(--text-gray);
    line-height: 1.6;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Estilos para enlaces */
a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* Estilos para botones genéricos */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-primary {
    color: white;
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    color: var(--text-white);
    background-color: var(--light-gray);
    border-color: #555;
}

.btn-secondary:hover {
    background-color: #555;
    border-color: #666;
    color: var(--text-white);
    text-decoration: none;
}

/* Estilos para iconos */
.fa, .fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro";
    font-weight: 900;
}

/* Estilos para elementos ocultos */
.hide {
    display: none !important;
}

.show {
    display: block !important;
}

/* Estilos para elementos de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Estilos para elementos de error */
.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Estilos para elementos de éxito */
.success {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================
   TARJETAS DE CÓDIGOS MODERNAS
   ======================================== */

.code-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-orange);
}

.code-card.destacado {
    border-color: #f1c40f;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.code-card.destacado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f1c40f, #f39c12);
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.destacado-badge {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.code-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.code-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-orange);
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--primary-orange);
    text-align: center;
    letter-spacing: 1px;
    word-break: break-all;
}

.copy-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

.copy-btn:hover {
    background: #E55A2B;
    transform: scale(1.05);
}

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

.code-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.code-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.like-btn.liked {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.no-codes-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    color: #666;
}

.no-codes-message p {
    font-size: 1.2rem;
    margin: 0;
}

/* TARJETA VACÍA DESTACADA - EFECTO "DESPEGADO" */
.empty-featured-card {
    border: 3px dashed var(--primary-orange) !important;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.empty-featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    animation: shimmer 2s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(0.5deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-0.5deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.empty-featured-card:hover {
    transform: translateY(-12px) rotate(1deg) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3) !important;
    border-color: #ff8c5a !important;
}

.empty-badge {
    background: linear-gradient(135deg, #ff8c5a, #ff6b35) !important;
    color: white !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
        transform: scale(1.05);
    }
}

.empty-logo .empty-placeholder {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 140, 90, 0.3)) !important;
    border: 2px dashed var(--primary-orange) !important;
    animation: bounce 2s ease-in-out infinite;
}

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

.empty-user {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 140, 90, 0.3)) !important;
    border: 2px dashed var(--primary-orange) !important;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

.empty-name {
    color: var(--primary-orange) !important;
    font-style: italic;
    animation: glow-text 2s ease-in-out infinite alternate;
}

@keyframes glow-text {
    from { text-shadow: 0 0 5px rgba(255, 107, 53, 0.5); }
    to { text-shadow: 0 0 10px rgba(255, 107, 53, 0.8); }
}

.empty-description {
    color: rgba(255, 255, 255, 0.8) !important;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

.empty-stat {
    background: rgba(255, 107, 53, 0.2) !important;
    border: 1px dashed var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.empty-button {
    background: linear-gradient(135deg, var(--primary-orange), #ff8c5a) !important;
    border: 2px solid var(--primary-orange) !important;
    animation: button-glow 2s ease-in-out infinite;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes button-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
    }
}

.empty-button:hover {
    background: linear-gradient(135deg, #ff8c5a, var(--primary-orange)) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.8) !important;
}

/* Responsive para tarjetas de códigos */
@media (max-width: 768px) {
    .code-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .code-main {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .code-text {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .copy-btn {
        width: 100%;
        padding: 0.75rem;
    }
    
    .code-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .code-actions {
        justify-content: center;
    }
}
