/* ===== ESTILOS GENERALES ===== */
:root {
    --primary: #2ecc71;
    --secondary: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --sidebar-width: 250px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f9fc;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--dark);
    color: white;
    position: fixed;
    height: 100vh;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left-color: var(--primary);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
}

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

.page-title {
    font-size: 1.8rem;
    color: var(--dark);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 0.85rem;
    color: #777;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== BARRA DE ACCIONES ===== */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* ===== BOTONES ===== */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-green:hover {
    background: #27ae60;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ===== SECCIONES DE CONTENIDO ===== */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

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

.section-title {
    font-size: 1.3rem;
    color: var(--dark);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #777;
}

.view-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* ===== TABLAS ===== */
.table-responsive {
    overflow-x: auto;
}

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

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

.data-table th {
    font-weight: 600;
    color: #777;
    font-size: 0.9rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #f9f9f9;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* ===== CELDAS ESPECIALES ===== */
.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ===== BADGES ===== */
.score-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.score-high {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
}

.score-medium {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning);
}

.score-low {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent);
}

/* ===== CELDAS DE ACCIÓN ===== */
.action-cell {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #777;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
}

/* ===== PIE DE TABLA ===== */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.table-info {
    color: #777;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #777;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* ===== MODALES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal .close:hover {
    color: var(--dark);
}

/* ===== FORMULARIOS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

/* ===== DETALLES DE PRODUCTO ===== */
.product-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-detail-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
}

.product-detail-info h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.product-detail-info p {
    color: #777;
    margin-bottom: 10px;
}

.detail-row {
    margin-bottom: 15px;
}

.detail-row label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #555;
}

.detail-row p {
    color: #333;
}

.materials-list {
    list-style: none;
    padding: 0;
}

.materials-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f5f5f5;
}

.materials-list li:last-child {
    border-bottom: none;
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--accent);
}

.notification.warning {
    background: var(--warning);
}

.notification.info {
    background: var(--secondary);
}

/* ===== BOTÓN TOGGLE SIDEBAR ===== */
.toggle-sidebar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* ===== REDIRECCIÓN DE LOGIN ===== */
.login-redirect {
    display: none;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin: 50px auto;
    max-width: 500px;
}

.login-redirect i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.login-redirect h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.login-redirect p {
    color: #777;
    margin-bottom: 25px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar-header .logo span, .menu-item span {
        display: none;
    }
    
    .sidebar-header {
        justify-content: center;
        padding: 20px 10px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .menu-item {
        justify-content: center;
        padding: 15px;
    }
    
    .menu-item i {
        font-size: 1.2rem;
    }
    
    .toggle-sidebar {
        display: flex;
    }
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .user-info {
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-options {
        width: 100%;
    }
    
    .table-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .pagination {
        align-self: flex-end;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .product-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 15px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .action-cell {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
}
/* ===== MEJORAS Y ESTILOS ADICIONALES ===== */

/* Mejoras en el dashboard */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.quick-action {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.quick-action i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.quick-action h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.quick-action p {
    color: #777;
    font-size: 0.9rem;
}

/* Filtros mejorados */
.filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-options span {
    color: #777;
    font-size: 0.9rem;
}

.filter-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
}

/* Opciones de exportación */
.export-options {
    display: flex;
    gap: 10px;
}

/* Detalles de escaneo */
.scan-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.scan-detail-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
}

.scan-detail-info h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.scan-detail-info p {
    color: #777;
    margin-bottom: 10px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.1rem;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.detail-item label {
    font-weight: 600;
    color: #555;
}

.improvements-list {
    list-style: none;
    padding: 0;
}

.improvements-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 20px;
}

.improvements-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.improvements-list li:last-child {
    border-bottom: none;
}

/* Mejoras responsive */
@media (max-width: 768px) {
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-options select {
        width: 100%;
    }
    
    .export-options {
        flex-direction: column;
        width: 100%;
    }
    
    .export-options .btn {
        width: 100%;
        justify-content: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .scan-detail-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Efectos de carga */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    height: 1em;
}

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

/* Mejoras en formularios */
.form-group {
    position: relative;
}

.form-group .password-toggle {
    position: absolute;
    right: 15px;
    top: 40px;
    cursor: pointer;
    color: #777;
}

/* Mejoras en tablas */
.data-table th {
    position: relative;
    cursor: pointer;
}

.data-table th:hover {
    background: #f9f9f9;
}

.data-table th i {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Estados de carga */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #777;
}

.loading-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: #777;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #555;
}

.empty-state p {
    margin-bottom: 20px;
}
/* ===== ESTILOS PARA REPORTES ===== */

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

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

.date-inputs span {
    color: #777;
}

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

.report-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

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

.report-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.report-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
}

.report-card p {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
}

.report-card .btn {
    width: 100%;
    justify-content: center;
}

.preview-container {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    min-height: 400px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsive para reportes */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .date-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-inputs span {
        text-align: center;
    }
}
/* ===== ESTILOS PARA NUEVAS FUNCIONALIDADES ===== */

/* Badge de notificaciones */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Modo oscuro */
[data-theme="dark"] {
    --primary: #27ae60;
    --secondary: #3498db;
    --dark: #ecf0f1;
    --light: #2c3e50;
    --background: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #ffffff;
    --border-color: #444;
}

[data-theme="dark"] body {
    background-color: var(--background);
    color: var(--text-color);
}

[data-theme="dark"] .content-section,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .header {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Activity items */
.activity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

[data-theme="dark"] .activity-item {
    border-color: var(--border-color);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
}

.activity-content h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.activity-content p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

[data-theme="dark"] .activity-content p {
    color: #ccc;
}

/* Product cards */
.product-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 15px;
}

[data-theme="dark"] .product-card {
    border-color: var(--border-color);
}

.product-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1.5rem;
}

[data-theme="dark"] .product-image {
    background: #444;
}

.product-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.product-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

[data-theme="dark"] .product-info p {
    color: #ccc;
}

/* Toggle para modo oscuro */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}
/* Estilos para PayPal */
#paypal-button-container {
    margin: 20px 0;
    min-height: 50px;
}

.payment-methods {
    margin: 30px 0;
}

.plan-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dev-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.test-credentials {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9em;
}

.test-credentials ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.simulation-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.payment-success {
    text-align: center;
    padding: 20px;
    background: #f0f9f0;
    border-radius: 10px;
    border: 1px solid #d4edda;
}

.payment-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 15px;
}

.payment-success h3 {
    color: #155724;
    margin-bottom: 15px;
}

.payment-success code {
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}
/* ===== SECCIÓN CARACTERÍSTICAS ===== */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== SECCIÓN PRECIOS ===== */
.pricing {
    padding: 80px 0;
    background: white;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-plan {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.pricing-plan.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-plan h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.price span {
    font-size: 1rem;
    color: #666;
}

.pricing-plan .features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-plan .features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-plan .features li:last-child {
    border-bottom: none;
}

.pricing-plan .features li i {
    color: var(--primary);
}

/* ===== PAYPAL ===== */
.paypal-button-container {
    margin-top: 20px;
    min-height: 45px;
}

/* ===== SECCIÓN CONTACTO ===== */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3,
.contact-form h3 {
    margin-bottom: 30px;
    color: var(--dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 50px;
    height: 50px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* ===== NAVEGACIÓN ===== */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* ===== SECTION TITLE ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 20px;
    }
}
/* Estilos para el formulario de recuperación */
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.reset-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.reset-success i {
    color: var(--primary);
    margin-right: 8px;
}