:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2980b9;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow-medium);
}

.ip-display {
    background-color: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.card-app {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.card-app:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.card-app .card-body {
    padding: 1.5rem;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.links-section {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.link-item {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
    border-left: 4px solid var(--secondary-color);
}

.link-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo-placeholder {
    width: 300px;
    height: 160px;
    object-fit: contain;
}

.hero-icon {
    font-size: 150px;
    opacity: 0.8;
}

/* ===== CARD GRADIENT STYLES ===== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
    border: none;
    box-shadow: var(--shadow-medium);
}

.bg-gradient-primary .card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bg-gradient-primary .card-text {
    opacity: 0.9;
    font-size: 1.1rem;
}

.bg-gradient-primary .btn-light {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.bg-gradient-primary .btn-light:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ajustes específicos para el header de clientes */
.card-body.py-4 {
    padding: 2rem !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        border-radius: 0 0 15px 15px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .logo-placeholder {
        width: 200px;
        height: 120px;
    }
    
    .hero-icon {
        font-size: 120px;
    }
    
    .ip-display {
        padding: 12px;
    }
    
    .bg-gradient-primary .card-body .row {
        text-align: center;
    }
    
    .bg-gradient-primary .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .bg-gradient-primary .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .logo-placeholder {
        width: 200px;
        height: 100px;
    }
    
    .hero-icon {
        font-size: 100px;
    }
    
    .ip-display {
        padding: 10px;
    }
}

/* lista de dominios estado */
.badge-pagado { background-color: #28a745; }
.badge-pendiente { background-color: #ffc107; color: #000; }
.badge-vencido { background-color: #dc3545; }
.badge-activo { background-color: #17a2b8; }
.table-hover tbody tr:hover { background-color: rgba(0,0,0,.075); }
.stat-card { transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.correo-coincidente {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 2px 0;
    font-size: 0.85em;
}
.highlight {
    background-color: yellow;
    font-weight: bold;
}

/*dashboard*/
.stat-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.bg-gradient-success {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
.bg-gradient-warning {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
}
.bg-gradient-info {
    background: linear-gradient(135deg, #3498db 0%, #27ae60 100%);
}
.bg-gradient-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

/* estilos extras */
/* Estilo para textareas */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Mejora para los grupos de checkboxes */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-label {
    cursor: pointer;
}

/* Estilos para mensajes de ayuda contextual */
.help-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Estados de foco mejorados */
.form-control:focus, .form-select:focus, .form-check-input:focus {
    transform: translateY(-1px);
}

/* Transiciones suaves para todos los elementos interactivos */
a, button, .form-control, .form-select, .form-check-input, .card {
    transition: var(--transition);
}

/* botones azules*/
.btn-primary.w-100 {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
}

.btn-primary.w-100:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    transform: translateY(-2px);
}

/* botones amarillo*/
.btn-warning.w-100 {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%) !important;
    border: none !important;
    color: rgb(107, 18, 18) !important;
    font-weight: 600;
}

.btn-warning.w-100:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    transform: translateY(-2px);
}

.required-label::after {
    content: " *";
    color: #dc3545;
}

.rut-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 280px;
    max-width: 200px;
}

.rut-content {
    flex: 1;
    min-width: 0; /* Permite que se ajuste */
}

.rut-text {
    background-color: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    display: block;
    word-break: break-all;
    line-height: 1.3;
}

.rut-copy-hint {
    font-size: 0.7em;
    display: block;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rut-container:hover .rut-copy-hint {
    opacity: 1;
}

.btn-copy {
    flex-shrink: 0;
    padding: 4px 8px;
    margin-top: 2px;
}