/* ========================================
   📁 DIRECTORIO EMPRESARIAL - ESTILOS
   ======================================== */

/* --- Reset y Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header y Navegación --- */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

/* --- Mensajes Flash --- */
.flash-messages {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.alert {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

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

/* --- Estadísticas --- */
.stats-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.stats-section h1 {
    color: #667eea;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- Filtros y Búsqueda --- */
.filters-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Fila 1: Búsqueda */
.search-box {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.search-box form {
    width: 100%;
}

.search-inputs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-inputs input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-inputs select {
    min-width: 180px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.search-inputs button {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-inputs button:hover {
    background: #5568d3;
}

.btn-clear {
    padding: 9px 20px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-clear:hover {
    background: #5a6268;
}

/* Fila 2: Botones de Acción */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.action-buttons .btn {
    white-space: nowrap;
}

/* --- Botones --- */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* --- Tabla --- */
.table-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-section h2 {
    color: #333;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.contacts-table {
    width: 100%;
    border-collapse: collapse;
}

.contacts-table th,
.contacts-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.contacts-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.contacts-table tr:hover {
    background: #f8f9fa;
}

.contacts-table small {
    color: #888;
    font-size: 0.85rem;
}

.actions {
    display: flex;
    gap: 5px;
}

.btn-action {
    padding: 5px 10px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #5568d3;
}

/* --- Paginación --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px;
    flex-wrap: wrap;
}

.btn-page {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-page:hover {
    background: #667eea;
    color: white;
}

.page-current {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

.page-ellipsis {
    padding: 8px 10px;
    color: #888;
}

/* --- Estado Vacío --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* --- Footer --- */
.main-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   📁 DIRECTORIO PÚBLICO - ESTILOS
   ======================================== */

/* Header del Directorio */
.directorio-header {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.directorio-header h1 {
    color: #667eea;
    margin-bottom: 10px;
}

.directorio-header .subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Sección de Búsqueda */
.search-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.search-form {
    margin-bottom: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-search {
    padding: 12px 25px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #5568d3;
}

.btn-back {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #f0f0f0;
}

/* Info de Resultados */
.results-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.results-info p {
    margin: 5px 0;
    color: #555;
}

.results-info .pagination-info {
    font-size: 0.9rem;
    color: #888;
}

/* Grid de Negocios */
.negocios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Tarjeta de Negocio */
.negocio-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.negocio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
}

.card-categoria {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    padding: 20px;
}

.card-nombre {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.card-ciudad {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.card-telefono {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 5px;
    transition: background 0.3s;
}

.card-telefono:hover {
    background: #e0e0e0;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.btn-ver-sitio {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-ver-sitio:hover {
    background: #5568d3;
}

/* Paginación (ya existe, pero aseguramos compatibilidad) */
.pagination .btn-page.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input,
    .btn-search,
    .btn-clear {
        width: 100%;
    }
    
    .negocios-grid {
        grid-template-columns: 1fr;
    }
    
    .directorio-header {
        padding: 25px 20px;
    }
}

/* ========================================
   📁 CRM CONTACTO - ESTILOS
   ======================================== */

/* Header del Contacto */
.contacto-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contacto-info-principal h1 {
    color: #333;
    margin-bottom: 10px;
}

.contacto-categoria {
    color: #666;
    font-size: 1.1rem;
}

/* Sección de Información */
.info-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.info-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-card.info-full {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-value {
    display: block;
    font-size: 1.1rem;
    color: #333;
    word-break: break-word;
}

.info-value.notas {
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

.estado-activo {
    color: #28a745;
    font-weight: 600;
}

.estado-inactivo {
    color: #dc3545;
    font-weight: 600;
}

/* Formulario de Seguimiento */
.seguimiento-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.seguimiento-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.seguimiento-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botones Pequeños */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Historial de Seguimiento */
.historial-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.historial-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.historial-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.timeline-date {
    flex-shrink: 0;
}

.date-badge {
    display: inline-block;
    padding: 8px 12px;
    background: #667eea;
    color: white;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.accion-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.accion-llamada { background: #e3f2fd; color: #1565c0; }
.accion-visita { background: #e8f5e9; color: #2e7d32; }
.accion-correo { background: #fff3e0; color: #ef6c00; }
.accion-verificacion { background: #f3e5f5; color: #7b1fa2; }
.accion-whatsapp { background: #e0f2f1; color: #00796b; }
.accion-reunion { background: #fce4ec; color: #c2185b; }

.resultado {
    font-weight: 600;
    color: #333;
}

.timeline-observaciones {
    background: white;
    padding: 15px;
    border-radius: 5px;
    color: #555;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   📁 FORMULARIO EDITAR - ESTILOS
   ======================================== */

.form-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.form-header h1 {
    color: #333;
}

.form-section,
.productos-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-section h2,
.productos-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.logo-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.logo-preview img {
    max-height: 100px;
    display: block;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.producto-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.producto-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.producto-info {
    padding: 15px;
}

.producto-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
}

.producto-precio {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.producto-desc {
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

.producto-limit-info {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #ffc107;
}

.producto-form {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.producto-form h3 {
    color: #555;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   📁 MICROSITIO PÚBLICO - ESTILOS
   ======================================== */

.micrositio-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Navegación personalizada */
.micrositio-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.micrositio-nav .nav-brand a {
    font-size: 1.2rem;
}

/* Header del Negocio */
.business-header {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.business-logo {
    flex-shrink: 0;
}

.business-logo img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #eee;
}

.logo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.business-info {
    flex: 1;
}

.business-info h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2rem;
}

.business-categoria {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.business-desc {
    color: #666;
    line-height: 1.6;
}

/* Sección de Contacto */
.contact-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.contact-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.contact-card:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-text {
    font-weight: 500;
}

.contact-card.whatsapp:hover {
    background: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-card.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

.contact-card.maps:hover {
    background: #4285F4;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.direccion-full {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
}

/* Catálogo de Productos */
.catalogo-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.catalogo-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.producto-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.producto-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.producto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.producto-card:hover .producto-img {
    transform: scale(1.05);
}

.producto-img-placeholder {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #aaa;
}

.producto-info {
    padding: 20px;
}

.producto-nombre {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.producto-precio {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.producto-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.btn-pedir {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-pedir:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* Footer del Micrositio */
.micrositio-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.micrositio-footer p {
    margin: 5px 0;
}

.powered-by {
    font-size: 0.85rem;
    color: #888;
}

/* Estado Vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .business-header {
        flex-direction: column;
        text-align: center;
    }
    
    .business-logo {
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .business-info h1 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   📁 AUTENTICACIÓN (Login/Registro) - ESTILOS
   ======================================== */

.auth-header {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.auth-header h1 {
    color: #667eea;
    margin-bottom: 10px;
}

.auth-header .subtitle {
    color: #666;
}

.auth-section {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 0 auto 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
}

/* ========================================
   📁 LOGIN - ESTILOS ADICIONALES
   ======================================== */

/* Los estilos de .auth-header, .auth-section, .auth-form 
   ya están en registro.html, se comparten automáticamente */

.auth-footer p {
    margin: 10px 0;
    text-align: center;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Animación de shake para error de login (opcional) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.auth-form.error {
    animation: shake 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-section {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
}

/* ========================================
   📁 RECLAMAR NEGOCIO - ESTILOS
   ======================================== */

.reclamar-header {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}

.reclamar-header h1 {
    color: #667eea;
    margin-bottom: 10px;
}

.reclamar-header .subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Beneficios */
.beneficios-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.beneficios-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.beneficio-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.beneficio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.beneficio-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.beneficio-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.beneficio-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Formulario de Reclamo */
.reclamar-section {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.reclamar-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.readonly-field {
    background: #f0f0f0;
    cursor: not-allowed;
    color: #666;
}

.form-group input:readonly {
    background: #f5f5f5;
    border-color: #ddd;
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reclamar-section {
        padding: 30px 20px;
    }
    
    .reclamar-header {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   📁 PANEL DE AFILIADO - ESTILOS
   ======================================== */

/* Header del Panel */
.panel-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.welcome-section h1 {
    color: #667eea;
    margin-bottom: 5px;
}

.welcome-text {
    color: #666;
    font-size: 1.1rem;
}

.panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Código de Afiliado */
.codigo-section {
    margin-bottom: 30px;
}

.codigo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    text-align: center;
}

.codigo-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.codigo-valor {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    background: rgba(255,255,255,0.2);
    padding: 15px 30px;
    border-radius: 8px;
}

.btn-copy {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Estadísticas */
.stats-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.stats-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 25px 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.stat-info { background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%); }
.stat-warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Enlaces de Afiliado */
.enlaces-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.enlaces-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.enlaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.enlace-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.enlace-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enlace-icon {
    font-size: 1.5rem;
}

.enlace-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.enlace-body {
    padding: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.enlace-url {
    flex: 1;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    word-break: break-all;
    min-width: 200px;
}

.btn-copy-small {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-copy-small:hover {
    background: #5568d3;
}

.enlace-desc {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Tabla de Referidos */
.historial-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.historial-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.referidos-table {
    width: 100%;
    border-collapse: collapse;
}

.referidos-table th,
.referidos-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.referidos-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.referidos-table tr:hover {
    background: #f8f9fa;
}

.referidos-table code {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Tips para Afiliados */
.tips-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.tips-section h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 25px 20px;
    border-radius: 10px;
    position: relative;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-number {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tip-card h3 {
    color: #333;
    margin: 10px 0;
    font-size: 1.1rem;
}

.tip-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        text-align: center;
    }
    
    .panel-actions {
        justify-content: center;
    }
    
    .codigo-valor {
        font-size: 1.5rem;
        padding: 10px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .enlaces-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .referidos-table {
        font-size: 0.85rem;
    }
    
    .referidos-table th,
    .referidos-table td {
        padding: 8px 10px;
    }
}